Browse Source

(+)问题处理表脚本

master
peng.peng 2 years ago
parent
commit
e496857fcd
  1. 54
      script/1.0.3/schema/8.create_patrol_record_issue_handle.sql

54
script/1.0.3/schema/8.create_patrol_record_issue_handle.sql

@ -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…
Cancel
Save