drop table if exists article_category_langdefs cascade;
create table article_category_langdefs(
	article_category_id integer references article_categories( article_category_id ) not null,
	site_language_id integer references site_languages( site_language_id ) not null,
	article_category_title varchar(128),
	article_category_aliasname varchar(128),
	constraint article_category_langdefs_pkey primary key( article_category_id , site_language_id )
);

comment on table article_category_langdefs is 'storage of article category langdefs';
comment on column article_category_langdefs.article_category_id is 'reference id to article_categories table';
comment on column article_category_langdefs.site_language_id is 'reference id to site_languages table';
comment on column article_category_langdefs.article_category_title is 'title of the article category in the selected language';
comment on column article_category_langdefs.article_category_aliasname is 'aliasname of the article category in the selected language';

comment on constraint article_category_langdefs_pkey on article_category_langdefs is 'unique constraint of table';
comment on constraint article_category_langdefs_article_category_id_fkey on article_category_langdefs is 'foreign constraint to article_categories table';
comment on constraint article_category_langdefs_site_language_id_fkey on article_category_langdefs is 'foreign constrint to site_languages table';
