create table report_file ( -- Only integer types can be auto increment id serial not null, file_name varchar(255) not null, project_id int not null, url varchar(1024) not null, start_time timestamp not null, report_type varchar(255) not null ); comment on table report_file is '报表文件'; comment on column report_file.file_name is '报表文件名'; comment on column report_file.project_id is '运维项目id'; comment on column report_file.url is '文件路径'; comment on column report_file.start_time is '产生时间'; comment on column report_file.report_type is '报表类型'; create unique index report_file_id_uindex on report_file (id); alter table report_file add constraint report_file_pk primary key (id);