Line # Revision Author
1 234 ahitrov create table blog_records
2 (
3 id integer not null primary key default nextval('public.documents_id_seq'::text),
4 class text not null,
5 ctime timestamp not null default now(),
6 mtime timestamp not null default now(),
7 dtime timestamp not null default now(),
8 status smallint not null default 0,
9 uid integer not null,
10 blog_id integer not null,
11 sections integer[],
12 name text,
13 comments integer default 0,
14 tags text,
15 data text
16 );
17 create index blog_records_sections on blog_records using gist ( "sections" "gist__int_ops" );
18 create index blog_records_dtime on blog_records (dtime);
19 create index blog_records_uid on blog_records (uid);
20 create index blog_records_blog_id on blog_records (blog_id);