1 |
296 |
ahitrov |
create table news |
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 |
|
|
sections integer[], |
10 |
|
|
ext_id integer, |
11 |
|
|
name text, |
12 |
|
|
data text |
13 |
|
|
); |
14 |
|
|
create index news_sections on news using gist ( "sections" "gist__int_ops" ); |
15 |
|
|
create index news_dtime on news (dtime); |