peng.peng
2 years ago
1 changed files with 54 additions and 0 deletions
@ -0,0 +1,54 @@ |
|||
DROP TABLE IF EXISTS "public"."patrol_record_issue_handle"; |
|||
create table patrol_record_issue_handle |
|||
( |
|||
id serial |
|||
constraint patrol_record_issue_handle_pk |
|||
primary key, |
|||
patrol_record_id integer, |
|||
repair_person jsonb, |
|||
repair_unit varchar(255), |
|||
start_time timestamp(6) with time zone, |
|||
end_time timestamp(6) with time zone, |
|||
repair_ask integer, |
|||
check_person jsonb, |
|||
state integer, |
|||
approve_person jsonb, |
|||
approve_date timestamp(6) with time zone, |
|||
approve_opinion varchar(255), |
|||
repair_desc varchar(255), |
|||
repair_image jsonb |
|||
); |
|||
|
|||
comment on column patrol_record_issue_handle.patrol_record_id is '巡检记录id'; |
|||
|
|||
comment on column patrol_record_issue_handle.repair_person is '维修人'; |
|||
|
|||
comment on column patrol_record_issue_handle.repair_unit is '维修单位'; |
|||
|
|||
comment on column patrol_record_issue_handle.repair_ask is '维修要求'; |
|||
|
|||
comment on column patrol_record_issue_handle.check_person is '质检验收人'; |
|||
|
|||
comment on column patrol_record_issue_handle.state is '流程状态 |
|||
1 待制定计划 |
|||
2 待审核 |
|||
3 计划驳回 |
|||
4 待维修 |
|||
5 待验收 |
|||
6 验收通过 |
|||
7 验收不通过'; |
|||
|
|||
comment on column patrol_record_issue_handle.approve_person is '审批人'; |
|||
|
|||
comment on column patrol_record_issue_handle.approve_date is '审批日期'; |
|||
|
|||
comment on column patrol_record_issue_handle.approve_opinion is '审批意见'; |
|||
|
|||
comment on column patrol_record_issue_handle.repair_desc is '维修情况描述'; |
|||
|
|||
alter table patrol_record_issue_handle |
|||
owner to "FashionAdmin"; |
|||
|
|||
create unique index patrol_record_issue_handle_id_uindex |
|||
on patrol_record_issue_handle (id); |
|||
|
Loading…
Reference in new issue