create table news
(
	id integer not null primary key default nextval('public.documents_id_seq'::text),
	class text not null,
	ctime timestamp not null default now(),
	mtime timestamp not null default now(),
	dtime timestamp not null default now(),
	status smallint not null default 0,
	sections integer[],
	ext_id integer,
	name text,
	data text
);
create index news_sections on news using gist ( "sections" "gist__int_ops" );
create index news_dtime on news (dtime);
