|
|
@ -596,6 +596,12 @@ INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_ |
|
|
|
INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414874722367716, 1810414848933404673, 'hazard_station_type', '3', '水电站', 3, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); |
|
|
|
INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414874722367716, 1810414848933404673, 'hazard_station_type', '3', '水电站', 3, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); |
|
|
|
INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414974824267715, 1810414848933404673, 'hazard_station_type', '2', '闸门', 1, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); |
|
|
|
INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414974824267715, 1810414848933404673, 'hazard_station_type', '2', '闸门', 1, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); |
|
|
|
INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414974824467714, 1810414848933404673, 'hazard_station_type', '1', '水库', 2, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); |
|
|
|
INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414974824467714, 1810414848933404673, 'hazard_station_type', '1', '水库', 2, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); |
|
|
|
|
|
|
|
INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1810401848933404699, 0, 'inner_danger_type', '-1', '隐患类别', 4, '', 0, 0, 1, -1, 'hzims_safeproduct'); |
|
|
|
|
|
|
|
INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767766, 1810401848933404699, 'inner_danger_type', '1', '人的不安全行为', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); |
|
|
|
|
|
|
|
INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767767, 1810401848933404699, 'inner_danger_type', '2', '环境的不安全行为', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); |
|
|
|
|
|
|
|
INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767768, 1810401848933404699, 'inner_danger_type', '3', '物的不安全行为', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); |
|
|
|
|
|
|
|
INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767769, 1810401848933404699, 'inner_danger_type', '4', '管理因素', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); |
|
|
|
|
|
|
|
INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767770, 1810401848933404699, 'inner_danger_type', '5', '其他', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); |
|
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `hzims_inner_danger_info`; |
|
|
|
DROP TABLE IF EXISTS `hzims_inner_danger_info`; |
|
|
|
CREATE TABLE `hzims_inner_danger_info` ( |
|
|
|
CREATE TABLE `hzims_inner_danger_info` ( |
|
|
@ -655,4 +661,385 @@ CREATE TABLE `hzims_inner_danger_info` ( |
|
|
|
PRIMARY KEY (`id`) USING BTREE |
|
|
|
PRIMARY KEY (`id`) USING BTREE |
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; |
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_risk_hazard_category` ( |
|
|
|
|
|
|
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
|
|
|
|
|
|
`STATION_TYPE` tinyint(4) DEFAULT NULL COMMENT '站点类别 :闸门、水库', |
|
|
|
|
|
|
|
`CATEGORY` tinyint(4) DEFAULT NULL COMMENT '类别 :构筑物类、金属结构类、设备设施类', |
|
|
|
|
|
|
|
`PERIL_POINT` varchar(255) DEFAULT NULL COMMENT '危险点', |
|
|
|
|
|
|
|
`STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', |
|
|
|
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_hidden_danger_plan` ( |
|
|
|
|
|
|
|
`id` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`plan_name` varchar(50) NOT NULL COMMENT '计划名称', |
|
|
|
|
|
|
|
`check_type` varchar(2) DEFAULT NULL COMMENT '排查类型,字典:hd_check_type', |
|
|
|
|
|
|
|
`check_start_date` datetime NOT NULL COMMENT '排查日期(开始日期)', |
|
|
|
|
|
|
|
`check_end_date` datetime NOT NULL COMMENT '排查日期(结束日期)', |
|
|
|
|
|
|
|
`cycle` varchar(2) DEFAULT NULL COMMENT '排查周期,字典:hd_check_cycle', |
|
|
|
|
|
|
|
`category_id` bigint(20) NOT NULL COMMENT '风险点Id', |
|
|
|
|
|
|
|
`category_name` varchar(50) DEFAULT NULL COMMENT '风险点名称', |
|
|
|
|
|
|
|
`plan_type` varchar(50) NOT NULL COMMENT '计划类型:1为定时计划,2为临时计划,字典:hd_plan_type', |
|
|
|
|
|
|
|
`enable` tinyint(4) DEFAULT NULL COMMENT '是否启用:0为停用,1为启用', |
|
|
|
|
|
|
|
`last_generate_task_time` datetime DEFAULT NULL COMMENT '计划近期生成任务最后时间', |
|
|
|
|
|
|
|
`status` tinyint(4) DEFAULT '1', |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) DEFAULT NULL, |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL, |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) DEFAULT NULL, |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL, |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL, |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL, |
|
|
|
|
|
|
|
`check_user_id` bigint(20) DEFAULT NULL COMMENT '排查人员ID', |
|
|
|
|
|
|
|
`next_generate_task_time` datetime DEFAULT NULL COMMENT '下一次任务生成时间', |
|
|
|
|
|
|
|
`station_code` varchar(20) NOT NULL DEFAULT '' COMMENT '站点编号', |
|
|
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_hidden_danger_plan_item` ( |
|
|
|
|
|
|
|
`id` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`plan_id` bigint(20) NOT NULL COMMENT '隐患排查计划ID', |
|
|
|
|
|
|
|
`area_id` bigint(20) DEFAULT NULL COMMENT '区域/位置ID', |
|
|
|
|
|
|
|
`area_name` varchar(50) DEFAULT NULL COMMENT '区域/位置', |
|
|
|
|
|
|
|
`category_id` bigint(20) DEFAULT NULL COMMENT '风险点Id', |
|
|
|
|
|
|
|
`category_name` varchar(50) DEFAULT NULL COMMENT '风险点名称', |
|
|
|
|
|
|
|
`risk_type` varchar(50) DEFAULT NULL COMMENT '风险点类型', |
|
|
|
|
|
|
|
`check_item_id` bigint(20) DEFAULT NULL COMMENT '检查项ID', |
|
|
|
|
|
|
|
`check_item_name` varchar(50) NOT NULL COMMENT '检查项', |
|
|
|
|
|
|
|
`status` tinyint(4) DEFAULT NULL, |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) DEFAULT NULL, |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL, |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) DEFAULT NULL, |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL, |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL, |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL, |
|
|
|
|
|
|
|
`accident_incentive` varchar(255) DEFAULT NULL COMMENT '事故诱因', |
|
|
|
|
|
|
|
`cause_consequence` varchar(255) DEFAULT NULL COMMENT '导致后果', |
|
|
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_risk_hazard_estimate` ( |
|
|
|
|
|
|
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
|
|
|
|
|
|
`TASK_ID` bigint(20) DEFAULT NULL COMMENT '风险任务排查Id', |
|
|
|
|
|
|
|
`CATEGORY_ID` bigint(20) DEFAULT NULL COMMENT '风险点Id', |
|
|
|
|
|
|
|
`LEVEL_ID` bigint(20) DEFAULT NULL COMMENT '风险等级ID', |
|
|
|
|
|
|
|
`LEVEL_DESC` varchar(255) DEFAULT NULL COMMENT '等级描述', |
|
|
|
|
|
|
|
`SOURCE_ID` bigint(20) DEFAULT NULL COMMENT '危险源Id', |
|
|
|
|
|
|
|
`HAZARD_NAME` varchar(255) DEFAULT NULL COMMENT '危险源', |
|
|
|
|
|
|
|
`ACCIDENT_INCENTIVE` varchar(1024) DEFAULT NULL COMMENT '事故诱因', |
|
|
|
|
|
|
|
`CAUSE_CONSEQUENCE` varchar(1024) DEFAULT NULL COMMENT '导致后果', |
|
|
|
|
|
|
|
`EVALUATION_METHOD` tinyint(4) DEFAULT NULL COMMENT '评价方法 :LS、LEC', |
|
|
|
|
|
|
|
`L_VALUE` double(10,2) DEFAULT NULL COMMENT 'L值', |
|
|
|
|
|
|
|
`E_VALUE` double(10,2) DEFAULT NULL COMMENT 'E值', |
|
|
|
|
|
|
|
`C_S_VALUE` double(10,2) DEFAULT NULL COMMENT 'C/S值', |
|
|
|
|
|
|
|
`R_D_VALUE` double(10,2) DEFAULT NULL COMMENT 'R/D计算值', |
|
|
|
|
|
|
|
`LEVEL` tinyint(4) DEFAULT NULL COMMENT '风险等级', |
|
|
|
|
|
|
|
`RECTIFICATION_DESC` varchar(1024) DEFAULT NULL COMMENT '整改描述', |
|
|
|
|
|
|
|
`RECTIFICATION_ATTACHMENT` varchar(1024) DEFAULT NULL COMMENT '整改附件', |
|
|
|
|
|
|
|
`STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', |
|
|
|
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_risk_hazard_level` ( |
|
|
|
|
|
|
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
|
|
|
|
|
|
`CATEGORY_ID` bigint(20) DEFAULT NULL COMMENT '风险点编号', |
|
|
|
|
|
|
|
`SOURCE_ID` bigint(20) DEFAULT NULL COMMENT '危险源编号', |
|
|
|
|
|
|
|
`HAZARD_NAME` varchar(255) DEFAULT NULL COMMENT '危险源名称', |
|
|
|
|
|
|
|
`R_MAX_VALUE` double(10,2) DEFAULT NULL COMMENT 'R值上限值', |
|
|
|
|
|
|
|
`R_MIN_VALUE` double(10,2) DEFAULT NULL COMMENT 'R值下限值', |
|
|
|
|
|
|
|
`RISK` tinyint(4) DEFAULT NULL COMMENT '危险程度 : 极其危险、高度危险、中度危险、轻度危险', |
|
|
|
|
|
|
|
`RISK_LEVEL` tinyint(4) DEFAULT NULL COMMENT '风险等级 : 重大风险、较大风险、一般风险、低风险', |
|
|
|
|
|
|
|
`COLOUR` tinyint(4) DEFAULT NULL COMMENT '颜色标识 : 红、橙、黄、蓝', |
|
|
|
|
|
|
|
`STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', |
|
|
|
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_risk_hazard_source` ( |
|
|
|
|
|
|
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
|
|
|
|
|
|
`CATEGORY_ID` bigint(20) DEFAULT NULL COMMENT '危险源项目类别ID', |
|
|
|
|
|
|
|
`HAZARD_NAME` varchar(255) DEFAULT NULL COMMENT '危险源', |
|
|
|
|
|
|
|
`ACCIDENT_INCENTIVE` varchar(1024) DEFAULT NULL COMMENT '事故诱因', |
|
|
|
|
|
|
|
`CAUSE_CONSEQUENCE` varchar(1024) DEFAULT NULL COMMENT '导致后果', |
|
|
|
|
|
|
|
`EVALUATION_METHOD` tinyint(4) DEFAULT NULL COMMENT '评价方法 :LS、LEC', |
|
|
|
|
|
|
|
`L_UP_LIMIT` double(10,2) DEFAULT NULL COMMENT 'L上限值', |
|
|
|
|
|
|
|
`L_DOWN_LIMIT` double(10,2) DEFAULT NULL COMMENT 'L下限值', |
|
|
|
|
|
|
|
`E_UP_LIMIT` double(10,2) DEFAULT NULL COMMENT 'E上限值', |
|
|
|
|
|
|
|
`E_DOWN_LIMIT` double(10,2) DEFAULT NULL COMMENT 'E下限值', |
|
|
|
|
|
|
|
`C_S_UP_LIMIT` double(10,2) DEFAULT NULL COMMENT 'C/S上限值', |
|
|
|
|
|
|
|
`C_S_DOWN_LIMIT` double(10,2) DEFAULT NULL COMMENT 'C/S下限值', |
|
|
|
|
|
|
|
`STATUS` tinyint(4) DEFAULT NULL COMMENT '状态', |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', |
|
|
|
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_risk_hazard_task` ( |
|
|
|
|
|
|
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
|
|
|
|
|
|
`PROCESS_INSTANCE_ID` varchar(64) CHARACTER SET utf8 DEFAULT '' COMMENT '工作流实例', |
|
|
|
|
|
|
|
`STATION_CODE` varchar(64) DEFAULT NULL COMMENT '站点编码', |
|
|
|
|
|
|
|
`STATION_NAME` varchar(255) DEFAULT NULL COMMENT '站点名称', |
|
|
|
|
|
|
|
`TASK_NAME` varchar(255) DEFAULT NULL COMMENT '任务名称', |
|
|
|
|
|
|
|
`WORK_ID` bigint(20) DEFAULT NULL COMMENT '作业区域', |
|
|
|
|
|
|
|
`HEAD` bigint(20) DEFAULT NULL COMMENT '任务排查负责人', |
|
|
|
|
|
|
|
`PLAN_START_TIME` datetime DEFAULT NULL COMMENT '排查任务计划开始时间', |
|
|
|
|
|
|
|
`PLAN_END_TIME` datetime DEFAULT NULL COMMENT '排查任务计划完成时间', |
|
|
|
|
|
|
|
`ACT_START_TIME` datetime DEFAULT NULL COMMENT '任务实际开始时间', |
|
|
|
|
|
|
|
`ACT_END_TIME` datetime DEFAULT NULL COMMENT '任务实际完成时间', |
|
|
|
|
|
|
|
`PROCESS_STEPS` varchar(500) DEFAULT NULL COMMENT '流程步骤名称', |
|
|
|
|
|
|
|
`NEXT_STEP_OPERATOR` varchar(255) DEFAULT NULL COMMENT '流程步骤人员名称', |
|
|
|
|
|
|
|
`STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', |
|
|
|
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_risk_hazard_work` ( |
|
|
|
|
|
|
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
|
|
|
|
|
|
`STATION_CODE` varchar(64) DEFAULT NULL COMMENT '站点编码', |
|
|
|
|
|
|
|
`STATION_NAME` varchar(612) DEFAULT NULL COMMENT '站点名称', |
|
|
|
|
|
|
|
`REGION_NAME` varchar(255) DEFAULT NULL COMMENT '作业区域名称', |
|
|
|
|
|
|
|
`LONGITUDE` double(15,6) DEFAULT NULL COMMENT '经度', |
|
|
|
|
|
|
|
`LATITUDE` double(15,6) DEFAULT NULL COMMENT '纬度', |
|
|
|
|
|
|
|
`HEAD` bigint(20) DEFAULT NULL COMMENT '负责人', |
|
|
|
|
|
|
|
`REGULATOR` varchar(64) DEFAULT NULL COMMENT '监管部门', |
|
|
|
|
|
|
|
`MANAGE` bigint(20) DEFAULT NULL COMMENT '分管领导', |
|
|
|
|
|
|
|
`STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', |
|
|
|
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_risk_work_source_correlation` ( |
|
|
|
|
|
|
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
|
|
|
|
|
|
`WORK_ID` bigint(20) DEFAULT NULL COMMENT '作业区域ID', |
|
|
|
|
|
|
|
`CATEGORY_ID` bigint(20) DEFAULT NULL COMMENT '风险点ID', |
|
|
|
|
|
|
|
`SOURCE_ID` bigint(20) DEFAULT NULL COMMENT '危险源ID', |
|
|
|
|
|
|
|
`STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', |
|
|
|
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_safe_check_company` ( |
|
|
|
|
|
|
|
`ID` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) NOT NULL COMMENT '租户ID', |
|
|
|
|
|
|
|
`START_TIME` datetime DEFAULT NULL COMMENT '开始时间', |
|
|
|
|
|
|
|
`END_TIME` datetime DEFAULT NULL COMMENT '结束时间', |
|
|
|
|
|
|
|
`PROBLEM` text COMMENT '检查问题补充', |
|
|
|
|
|
|
|
`ORG_ID` varchar(500) DEFAULT NULL COMMENT '检查机构', |
|
|
|
|
|
|
|
`STATUS` tinyint(4) DEFAULT NULL COMMENT '业务状态', |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建单位', |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT '0', |
|
|
|
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='公司检查'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_safe_check_item` ( |
|
|
|
|
|
|
|
`ID` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) NOT NULL COMMENT '租户ID', |
|
|
|
|
|
|
|
`PARENT_ITEM` bigint(20) DEFAULT NULL COMMENT '父级检查项', |
|
|
|
|
|
|
|
`ITEM` varchar(255) DEFAULT NULL COMMENT '检查项', |
|
|
|
|
|
|
|
`TOTAL_SCORE` double(5,1) DEFAULT NULL COMMENT '总分', |
|
|
|
|
|
|
|
`SORT` varchar(20) DEFAULT NULL COMMENT '排序', |
|
|
|
|
|
|
|
`FIXED` tinyint(4) DEFAULT NULL COMMENT '是否为固定检查项', |
|
|
|
|
|
|
|
`STATUS` tinyint(4) DEFAULT NULL COMMENT '业务状态(启用/停用)', |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建单位', |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT '0', |
|
|
|
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='检查项管理'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_safe_check_item_instance` ( |
|
|
|
|
|
|
|
`ID` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) NOT NULL COMMENT '租户ID', |
|
|
|
|
|
|
|
`OID` bigint(20) DEFAULT NULL COMMENT '原始ID,用于维持父子结构', |
|
|
|
|
|
|
|
`PARENT_ITEM` bigint(20) DEFAULT NULL COMMENT '父级检查项', |
|
|
|
|
|
|
|
`ITEM` varchar(255) DEFAULT NULL COMMENT '检查项', |
|
|
|
|
|
|
|
`TOTAL_SCORE` double(5,1) DEFAULT NULL COMMENT '总分', |
|
|
|
|
|
|
|
`SORT` varchar(20) DEFAULT NULL COMMENT '排序', |
|
|
|
|
|
|
|
`SYSTEM_SITUATION` varchar(800) DEFAULT NULL COMMENT '系统检查情况', |
|
|
|
|
|
|
|
`SITUATION` varchar(800) DEFAULT NULL COMMENT '检查情况', |
|
|
|
|
|
|
|
`SCORE` double(5,1) DEFAULT NULL COMMENT '评分', |
|
|
|
|
|
|
|
`CHECK_ID` bigint(20) DEFAULT NULL COMMENT '检查ID', |
|
|
|
|
|
|
|
`ORG_ID` bigint(20) DEFAULT NULL COMMENT '机构ID', |
|
|
|
|
|
|
|
`FIXED` tinyint(4) DEFAULT NULL COMMENT '是否为固定检查项', |
|
|
|
|
|
|
|
`STATUS` tinyint(4) DEFAULT NULL COMMENT '业务状态', |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建单位', |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT '0', |
|
|
|
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='检查项实例'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_hidden_danger_task` ( |
|
|
|
|
|
|
|
`id` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`plan_id` bigint(20) NOT NULL COMMENT '隐患排查计划ID', |
|
|
|
|
|
|
|
`plan_name` varchar(50) NOT NULL COMMENT '计划名称', |
|
|
|
|
|
|
|
`category_id` bigint(20) NOT NULL COMMENT '风险点Id', |
|
|
|
|
|
|
|
`category_name` varchar(50) DEFAULT NULL COMMENT '风险点名称', |
|
|
|
|
|
|
|
`plan_type` varchar(50) NOT NULL COMMENT '计划类型:1为定时计划,2为临时计划,字典:hd_plan_type', |
|
|
|
|
|
|
|
`cycle` varchar(2) DEFAULT NULL COMMENT '排查周期,字典:hd_check_cycle', |
|
|
|
|
|
|
|
`start_time` datetime NOT NULL COMMENT '开始时间', |
|
|
|
|
|
|
|
`end_time` datetime NOT NULL COMMENT '结束时间', |
|
|
|
|
|
|
|
`process_instance_id` varchar(50) DEFAULT NULL COMMENT '流程ID', |
|
|
|
|
|
|
|
`check_user_id` bigint(20) NOT NULL COMMENT '排查人员ID', |
|
|
|
|
|
|
|
`status` tinyint(4) DEFAULT NULL, |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) DEFAULT NULL, |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL, |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) DEFAULT NULL, |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL, |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL, |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL, |
|
|
|
|
|
|
|
`station_code` varchar(20) NOT NULL DEFAULT '' COMMENT '站点编号', |
|
|
|
|
|
|
|
`category_type` tinyint(2) DEFAULT NULL COMMENT '风险点类别', |
|
|
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_hidden_danger_task_item` ( |
|
|
|
|
|
|
|
`id` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`task_id` bigint(20) NOT NULL COMMENT '隐患排查任务ID', |
|
|
|
|
|
|
|
`category_id` bigint(20) DEFAULT NULL COMMENT '风险点Id', |
|
|
|
|
|
|
|
`category_name` varchar(50) DEFAULT NULL COMMENT '风险点名称', |
|
|
|
|
|
|
|
`risk_type` varchar(50) DEFAULT NULL COMMENT '风险点类型', |
|
|
|
|
|
|
|
`check_item_id` bigint(20) DEFAULT NULL COMMENT '检查项ID', |
|
|
|
|
|
|
|
`check_item_name` varchar(50) NOT NULL COMMENT '检查项', |
|
|
|
|
|
|
|
`area_id` bigint(20) DEFAULT NULL COMMENT '区域/位置ID', |
|
|
|
|
|
|
|
`area_name` varchar(50) DEFAULT NULL COMMENT '区域/位置', |
|
|
|
|
|
|
|
`check_user_id` bigint(20) DEFAULT NULL COMMENT '排查人ID', |
|
|
|
|
|
|
|
`check_time` datetime DEFAULT NULL COMMENT '排查时间', |
|
|
|
|
|
|
|
`accident_incentive` varchar(255) DEFAULT NULL COMMENT '事故诱因', |
|
|
|
|
|
|
|
`cause_consequence` varchar(255) DEFAULT NULL COMMENT '导致后果', |
|
|
|
|
|
|
|
`status` tinyint(4) DEFAULT NULL, |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) DEFAULT NULL, |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL, |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) DEFAULT NULL, |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL, |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL, |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL, |
|
|
|
|
|
|
|
`remark` varchar(255) DEFAULT NULL COMMENT '排查备注', |
|
|
|
|
|
|
|
`attachment` varchar(255) DEFAULT NULL COMMENT '上传附件', |
|
|
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_risk_estimate` ( |
|
|
|
|
|
|
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
|
|
|
|
|
|
`STATION_CODE` varchar(64) DEFAULT NULL COMMENT '站点编码', |
|
|
|
|
|
|
|
`STATION_NAME` varchar(255) DEFAULT NULL COMMENT '站点名称', |
|
|
|
|
|
|
|
`STATION_TYPE` tinyint(4) DEFAULT NULL COMMENT '站点类别 :闸门、水库', |
|
|
|
|
|
|
|
`ESTIMATE_YEAR` varchar(10) DEFAULT NULL COMMENT '风险评估年度', |
|
|
|
|
|
|
|
`STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', |
|
|
|
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_risk_estimate_point` ( |
|
|
|
|
|
|
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
|
|
|
|
|
|
`ESTIMATE_ID` bigint(20) DEFAULT NULL COMMENT '风险评估Id', |
|
|
|
|
|
|
|
`CATEGORY_ID` bigint(20) DEFAULT NULL COMMENT '风险点Id', |
|
|
|
|
|
|
|
`CATEGORY` tinyint(4) DEFAULT NULL COMMENT '风险点类别', |
|
|
|
|
|
|
|
`PERIL_POINT` varchar(255) DEFAULT NULL COMMENT '危险点', |
|
|
|
|
|
|
|
`LEVEL_ID` bigint(20) DEFAULT NULL COMMENT '风险等级Id', |
|
|
|
|
|
|
|
`LEVEL_DESC` varchar(255) DEFAULT NULL COMMENT '等级描述', |
|
|
|
|
|
|
|
`SOURCE_ID` bigint(20) DEFAULT NULL COMMENT '危险源Id', |
|
|
|
|
|
|
|
`HAZARD_NAME` varchar(255) DEFAULT NULL COMMENT '危险源', |
|
|
|
|
|
|
|
`ACCIDENT_INCENTIVE` varchar(1024) DEFAULT NULL COMMENT '事故诱因', |
|
|
|
|
|
|
|
`CAUSE_CONSEQUENCE` varchar(1024) DEFAULT NULL COMMENT '导致后果', |
|
|
|
|
|
|
|
`EVALUATION_METHOD` tinyint(4) DEFAULT NULL COMMENT '评价方法 :LS、LEC', |
|
|
|
|
|
|
|
`L_UP_LIMIT` double(10,2) DEFAULT NULL COMMENT 'L上限值', |
|
|
|
|
|
|
|
`L_DOWN_LIMIT` double(10,2) DEFAULT NULL COMMENT 'L下限值', |
|
|
|
|
|
|
|
`E_UP_LIMIT` double(10,2) DEFAULT NULL COMMENT 'E上限值', |
|
|
|
|
|
|
|
`E_DOWN_LIMIT` double(10,2) DEFAULT NULL COMMENT 'E下限值', |
|
|
|
|
|
|
|
`C_S_UP_LIMIT` double(10,2) DEFAULT NULL COMMENT 'C/S上限值', |
|
|
|
|
|
|
|
`C_S_DOWN_LIMIT` double(10,2) DEFAULT NULL COMMENT 'C/S下限值', |
|
|
|
|
|
|
|
`L_VALUE` double(10,2) DEFAULT NULL COMMENT 'L值', |
|
|
|
|
|
|
|
`E_VALUE` double(10,2) DEFAULT NULL COMMENT 'E值', |
|
|
|
|
|
|
|
`C_S_VALUE` double(10,2) DEFAULT NULL COMMENT 'C/S值', |
|
|
|
|
|
|
|
`R_D_VALUE` double(10,2) DEFAULT NULL COMMENT 'R/D计算值', |
|
|
|
|
|
|
|
`LEVEL` tinyint(4) DEFAULT NULL COMMENT '风险等级', |
|
|
|
|
|
|
|
`STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', |
|
|
|
|
|
|
|
PRIMARY KEY (`ID`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `hzims_risk_check` ( |
|
|
|
|
|
|
|
`id` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`category_id` bigint(20) NOT NULL COMMENT '风险点Id', |
|
|
|
|
|
|
|
`category_name` varchar(50) NOT NULL COMMENT '风险点名称', |
|
|
|
|
|
|
|
`check_item` varchar(255) NOT NULL COMMENT '检查项', |
|
|
|
|
|
|
|
`status` tinyint(4) DEFAULT NULL, |
|
|
|
|
|
|
|
`TENANT_ID` varchar(12) DEFAULT NULL, |
|
|
|
|
|
|
|
`CREATE_DEPT` bigint(20) DEFAULT NULL, |
|
|
|
|
|
|
|
`IS_DELETED` tinyint(4) DEFAULT NULL, |
|
|
|
|
|
|
|
`CREATE_USER` bigint(20) NOT NULL, |
|
|
|
|
|
|
|
`CREATE_TIME` datetime NOT NULL, |
|
|
|
|
|
|
|
`UPDATE_USER` bigint(20) DEFAULT NULL, |
|
|
|
|
|
|
|
`UPDATE_TIME` datetime DEFAULT NULL, |
|
|
|
|
|
|
|
`type` varchar(2) DEFAULT NULL COMMENT '排查项类型', |
|
|
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE |
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; |
|
|
|
|
|
|
|
|
|
|
|
alter table `hzims_inner_danger_info` add COLUMN `task_id` VARCHAR(100) comment '平台任务Id'; |
|
|
|
alter table `hzims_inner_danger_info` add COLUMN `task_id` VARCHAR(100) comment '平台任务Id'; |