Browse Source

维修处理增加制定人制定日期

master
peng.peng 2 years ago
parent
commit
d8f71bf9f8
  1. 20
      api/app/lib/models/patrol_record_issue_handle.js
  2. 8
      script/1.0.3/schema/8.create_patrol_record_issue_handle.sql

20
api/app/lib/models/patrol_record_issue_handle.js

@ -132,7 +132,25 @@ module.exports = dc => {
primaryKey: false,
field: "repair_image",
autoIncrement: false
}
},
creator: {
type: DataTypes.JSONB,
allowNull: true,
defaultValue: null,
comment: "审批人",
primaryKey: false,
field: "creator",
autoIncrement: false
},
createTime: {
type: DataTypes.DATE,
allowNull: true,
defaultValue: null,
comment: "制定日期",
primaryKey: false,
field: "approve_date",
autoIncrement: false
},
}, {
tableName: "patrol_record_issue_handle",
comment: "",

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

@ -16,7 +16,9 @@ create table patrol_record_issue_handle
approve_date timestamp(6) with time zone,
approve_opinion varchar(255),
repair_desc varchar(255),
repair_image jsonb
repair_image jsonb,
creator jsonb,
create_time timestamp(6) with time zone,
);
comment on column patrol_record_issue_handle.patrol_record_id is '巡检记录id';
@ -46,6 +48,10 @@ comment on column patrol_record_issue_handle.approve_opinion is '审批意见';
comment on column patrol_record_issue_handle.repair_desc is '维修情况描述';
comment on column patrol_record_issue_handle.creator is '制定人';
comment on column patrol_record_issue_handle.create_time is '制定日期';
alter table patrol_record_issue_handle
owner to "FashionAdmin";

Loading…
Cancel
Save