|
@@ -166,8 +166,6 @@ create table b_incident_task
|
|
|
id bigint not null primary key,
|
|
|
incident_id bigint,
|
|
|
task_name varchar(255),
|
|
|
- task_des varchar(2550),
|
|
|
- source int,
|
|
|
create_time timestamp(0),
|
|
|
create_by varchar(64),
|
|
|
del_flag char default '0'
|
|
@@ -177,8 +175,6 @@ comment on table b_incident_task is '事件处置任务';
|
|
|
comment on column b_incident_task.id is '主键id';
|
|
|
comment on column b_incident_task.incident_id is '所属事件id';
|
|
|
comment on column b_incident_task.task_name is '事件任务名称';
|
|
|
-comment on column b_incident_task.task_des is '任务内容';
|
|
|
-comment on column b_incident_task.source is '任务内容来源。1-内置。2-新增';
|
|
|
comment on column b_incident_task.create_time is '过程创建时间';
|
|
|
comment on column b_incident_task.create_by is '过程创建人';
|
|
|
|
|
@@ -216,6 +212,8 @@ alter table b_incident_task alter column incident_id type varchar(36) using inci
|
|
|
alter table b_plan_file alter column plan_id type varchar(36) using plan_id::varchar(36);
|
|
|
alter table b_plan_task alter column plan_id type varchar(36) using plan_id::varchar(36);
|
|
|
alter table b_resource_detail alter column resource_id type varchar(36) using resource_id::varchar(36);
|
|
|
+alter table b_incident alter column madin_dept type varchar(36) using madin_dept::varchar(36);
|
|
|
+
|
|
|
|
|
|
INSERT INTO sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time) VALUES (138, 0, '皮卡', '皮卡', 'zhdd_car_type', null, 'default', 'N', '0', 'admin', '2021-09-28 15:57:23', 'admin', '2021-09-28 15:57:23');
|
|
|
INSERT INTO sys_dict_data (dict_code, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, status, create_by, create_time, update_by, update_time) VALUES (139, 0, '轿车', '轿车', 'zhdd_car_type', null, 'default', 'N', '0', 'admin', '2021-09-28 15:57:23', 'admin', '2021-09-28 15:57:23');
|
|
@@ -225,7 +223,7 @@ INSERT INTO sys_dict_type (dict_id, dict_name, dict_type, status, create_by, cre
|
|
|
create table b_incident_task_person
|
|
|
(
|
|
|
id varchar(36),
|
|
|
- incident_id varchar(36),
|
|
|
+ incident_task_id varchar(36),
|
|
|
position varchar(20),
|
|
|
person varchar(10),
|
|
|
create_time timestamp(0),
|
|
@@ -233,8 +231,21 @@ create table b_incident_task_person
|
|
|
);
|
|
|
comment on table b_incident_task_person is '事件处置方案人员';
|
|
|
comment on column b_incident_task_person.id is '主键';
|
|
|
-comment on column b_incident_task_person.incident_id is '事件id';
|
|
|
+comment on column b_incident_task_person.incident_task_id is '事件id';
|
|
|
comment on column b_incident_task_person.position is '人员职位';
|
|
|
comment on column b_incident_task_person.person is '人员姓名';
|
|
|
|
|
|
+create table b_incident_task_command
|
|
|
+(
|
|
|
+ id varchar(36),
|
|
|
+ incident_task_id varchar(36),
|
|
|
+ command varchar(300),
|
|
|
+ create_time timestamp(0),
|
|
|
+ create_by varchar(64)
|
|
|
+);
|
|
|
+comment on table b_incident_task_command is '事件处置方案指令';
|
|
|
+comment on column b_incident_task_command.id is '主键';
|
|
|
+comment on column b_incident_task_command.incident_task_id is '事件方案id';
|
|
|
+comment on column b_incident_task_command.command is '指令';
|
|
|
+
|
|
|
|