1 |
198 |
ahitrov |
CREATE TABLE adresses ( |
2 |
|
|
id integer DEFAULT nextval(('public.documents_id_seq'::text)::regclass) NOT NULL, |
3 |
|
|
ctime timestamp without time zone DEFAULT now() NOT NULL, |
4 |
|
|
mtime timestamp without time zone DEFAULT now() NOT NULL, |
5 |
|
|
dtime timestamp without time zone DEFAULT now() NOT NULL, |
6 |
|
|
class text DEFAULT 'webshop::Address'::text NOT NULL, |
7 |
|
|
status smallint default 0 NOT NULL, |
8 |
|
|
sections integer, |
9 |
|
|
uid integer not null, |
10 |
727 |
ahitrov |
delivery_id integer references webshop_delivery(id) ON DELETE RESTRICT, |
11 |
198 |
ahitrov |
name text, |
12 |
|
|
data text |
13 |
|
|
); |
14 |
|
|
|
15 |
|
|
CREATE INDEX adresses_sections ON adresses USING btree (sections); |
16 |
|
|
CREATE INDEX adresses_uid ON adresses USING btree (uid); |