1 |
358 |
ahitrov |
create table payments_operations |
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 0, |
8 |
|
|
name text, |
9 |
|
|
order_id integer not null, |
10 |
|
|
uid integer not null, |
11 |
563 |
ahitrov |
uuid integer, |
12 |
358 |
ahitrov |
sum float, |
13 |
|
|
data text |
14 |
|
|
); |
15 |
|
|
CREATE INDEX payments_operations_order ON payments_operations USING btree (order_id); |