1 |
|
-- ====================================================================== |
2 |
+ |
create sequence seq_block_status; |
3 |
|
create sequence seq_block; |
4 |
|
create sequence seq_file_status; |
5 |
|
create sequence seq_file_type; |
12 |
|
name varchar (1000) not null, |
13 |
|
created_at float not null, |
14 |
|
created_by integer not null, |
15 |
< |
modified_at float not null, |
16 |
< |
modified_by integer not null); |
15 |
> |
modified_at float, |
16 |
> |
modified_by integer); |
17 |
|
|
18 |
|
create table t_block |
19 |
|
(id integer not null, |
23 |
|
bytes integer not null, |
24 |
|
created_at float not null, |
25 |
|
created_by integer not null, |
26 |
< |
modified_at float not null, |
27 |
< |
modified_by integer not null); |
26 |
> |
modified_at float, |
27 |
> |
modified_by integer); |
28 |
|
|
29 |
|
create table t_file_status |
30 |
|
(id integer not null, |
31 |
|
name varchar (1000) not null, |
32 |
|
created_at float not null, |
33 |
|
created_by integer not null, |
34 |
< |
modified_at float not null, |
35 |
< |
modified_by integer not null); |
34 |
> |
modified_at float, |
35 |
> |
modified_by integer); |
36 |
|
|
37 |
|
create table t_file_type |
38 |
|
(id integer not null, |
39 |
|
name varchar (1000) not null, |
40 |
|
created_at float not null, |
41 |
|
created_by integer not null, |
42 |
< |
modified_at float not null, |
43 |
< |
modified_by integer not null); |
42 |
> |
modified_at float, |
43 |
> |
modified_by integer); |
44 |
|
|
45 |
|
create table t_file |
46 |
|
(id integer not null, |
53 |
|
inblock integer not null, |
54 |
|
created_at float not null, |
55 |
|
created_by integer not null, |
56 |
< |
modified_at float not null, |
57 |
< |
modified_by integer not null); |
56 |
> |
modified_at float, |
57 |
> |
modified_by integer); |
58 |
|
|
59 |
|
create table t_evcoll_file |
60 |
|
(id integer not null, |
62 |
|
fileid integer not null, |
63 |
|
created_at float not null, |
64 |
|
created_by integer not null, |
65 |
< |
modified_at float not null, |
66 |
< |
modified_by integer not null); |
65 |
> |
modified_at float, |
66 |
> |
modified_by integer); |
67 |
|
|
68 |
|
-- ====================================================================== |
69 |
|
alter table t_block_status |