You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
741 B
28 lines
741 B
create table report_automatic
|
|
(
|
|
id serial not null,
|
|
report_name varchar(255) not null,
|
|
project_id int not null,
|
|
project_Name varchar(255) not null,
|
|
report_type varchar(255) not null,
|
|
reportpic_path varchar(255) not null,
|
|
framer varchar(255) not null,
|
|
auditor varchar(255) not null,
|
|
ratifier varchar(255) not null,
|
|
struct_id int not null,
|
|
report_start_time timestamp not null,
|
|
report_end_time timestamp not null,
|
|
factors json not null,
|
|
time timestamp not null,
|
|
project_overview varchar not null
|
|
);
|
|
|
|
create unique index report_automatic_id_uindex
|
|
on report_automatic (id);
|
|
|
|
alter table report_automatic
|
|
add constraint report_automatic_pk
|
|
primary key (id);
|
|
|
|
|
|
alter table report_automatic alter column time drop not null;
|
|
|