四好公路
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.

30 lines
870 B

1 year ago
create table report_spot_check_preview
(
id serial not null,
percentage int not null,
department_id int not null
constraint report_spot_check_preview_department_id_fk
references department (id),
date timestamp with time zone,
report_count int not null,
checked bool default false
);
comment on table report_spot_check_preview is '抽查的预览结果 ';
comment on column report_spot_check_preview.percentage is '抽查比例';
comment on column report_spot_check_preview.department_id is '幸运乡镇';
comment on column report_spot_check_preview.date is '预览时间';
comment on column report_spot_check_preview.report_count is '当时上报总数';
create unique index report_spot_check_preview_id_uindex
on report_spot_check_preview (id);
alter table report_spot_check_preview
add constraint report_spot_check_preview_pk
primary key (id);