1 |
270 |
ahitrov |
create table webshop_coupon_links |
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 |
|
|
status smallint not null default 1, |
8 |
|
|
source_id integer not null, |
9 |
|
|
source_class text not null default 'webshop::Coupon', |
10 |
|
|
dest_id integer not null, |
11 |
|
|
dest_class text not null, |
12 |
|
|
data text |
13 |
|
|
); |
14 |
|
|
create index webshop_coupon_links_source on webshop_coupon_links (source_id); |
15 |
|
|
create index webshop_coupon_links_dest on webshop_coupon_links (dest_id); |