liwen
7 months ago
24 changed files with 1740 additions and 1896 deletions
@ -0,0 +1,269 @@ |
|||||||
|
CREATE TABLE IF NOT EXISTS `blade_module_version` ( |
||||||
|
`MODULE_NAME` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, |
||||||
|
`VERSION` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, |
||||||
|
`HISTORY` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, |
||||||
|
PRIMARY KEY (`MODULE_NAME`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for hzims_alarm |
||||||
|
-- ---------------------------- |
||||||
|
CREATE TABLE IF NOT EXISTS `hzims_alarm` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编码', |
||||||
|
`STATION_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', |
||||||
|
`DEVICE_CODE` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编码', |
||||||
|
`DEVICE_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备名称', |
||||||
|
`ALARM_ID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警ID', |
||||||
|
`ALARM_SOURCE` tinyint(4) NULL DEFAULT NULL COMMENT '告警类型 :0- HZ3000告警 1 -等级告警 2 -条件告警 3-FDP智能预警', |
||||||
|
`ALARM_TYPE` tinyint(4) NULL DEFAULT NULL COMMENT '告警子类', |
||||||
|
`ALARM_SIGNAGE` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警属性标识', |
||||||
|
`ALARM_CONTEXT` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警内容', |
||||||
|
`ALARM_STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '告警状态', |
||||||
|
`ALARM_LEVEL` tinyint(4) NULL DEFAULT NULL COMMENT '告警等级', |
||||||
|
`ALARM_VALUE` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警动作数值', |
||||||
|
`ALARM_COUNT` tinyint(10) NULL DEFAULT NULL COMMENT '告警数量', |
||||||
|
`ALARM_TIME` datetime NULL DEFAULT NULL COMMENT '告警时间', |
||||||
|
`DIAG_REASON` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '初步分析原因', |
||||||
|
`DIAG_SOLUTION` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '建议处置方式', |
||||||
|
`REAL_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '监测点', |
||||||
|
`IS_RIGHT_TABULATION` tinyint(4) NULL DEFAULT NULL COMMENT '是否集中监控右侧列表展示 : 0-展示 1-不展示', |
||||||
|
`IS_SHOW_ALERT` tinyint(4) NULL DEFAULT NULL COMMENT '是否集中监控弹窗展示 : 0-展示 1-不展示', |
||||||
|
`IS_SMALL_BELL` tinyint(4) NULL DEFAULT NULL COMMENT '是否集中监控铃铛展示 : 0-展示 1-不展示', |
||||||
|
`IS_MASK` tinyint(4) NULL DEFAULT NULL COMMENT '是否集中监控遮罩展示 : 0-展示 1-不展示', |
||||||
|
`IS_BROADCAST` tinyint(4) NULL DEFAULT NULL COMMENT '是否语音播报 : 0-播报 1-不播报', |
||||||
|
`IS_PLATFORM_MESSAGE` tinyint(4) NULL DEFAULT NULL COMMENT '是否进行平台消息推送 : 0-推送 1-不推送', |
||||||
|
`IS_SHORT_MESSAGE` tinyint(4) NULL DEFAULT NULL COMMENT '是否短信推送 :0-推送 1-不推送', |
||||||
|
`IS_WX_MESSAGE` tinyint(4) NULL DEFAULT NULL COMMENT '是否微信公众号消息推送 :0-推送 1-不推送', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门ID', |
||||||
|
`CREATE_TIME` datetime NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
||||||
|
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for hzims_alarm_config |
||||||
|
-- ---------------------------- |
||||||
|
CREATE TABLE IF NOT EXISTS `hzims_alarm_config` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点编码', |
||||||
|
`STATION_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门ID', |
||||||
|
`CREATE_TIME` datetime NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
||||||
|
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态(0 待值班 1 值班中 2 已完成)', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for hzims_alarm_config_detail |
||||||
|
-- ---------------------------- |
||||||
|
CREATE TABLE IF NOT EXISTS `hzims_alarm_config_detail` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`STRATEGY_ID` bigint(20) NULL DEFAULT NULL COMMENT '告警配置ID', |
||||||
|
`ALARM_TYPE` bigint(4) NULL DEFAULT NULL COMMENT '告警类型', |
||||||
|
`ALARM_CHILED_TYPE` bigint(4) NULL DEFAULT NULL COMMENT '告警子类', |
||||||
|
`ALARM_CONTEXT` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警内容', |
||||||
|
`ALARM_POINT` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警监测点', |
||||||
|
`IS_RIGHT_TABULATION` tinyint(4) NULL DEFAULT NULL COMMENT '是否集中监控右侧列表展示 : 0-展示 1-不展示', |
||||||
|
`IS_SHOW_ALERT` tinyint(4) NULL DEFAULT NULL COMMENT '是否集中监控弹窗展示 : 0-展示 1-不展示', |
||||||
|
`IS_SMALL_BELL` tinyint(4) NULL DEFAULT NULL COMMENT '是否集中监控铃铛展示 : 0-展示 1-不展示', |
||||||
|
`IS_MASK` tinyint(4) NULL DEFAULT NULL COMMENT '是否集中监控遮罩展示 : 0-展示 1-不展示', |
||||||
|
`IS_BROADCAST` tinyint(4) NULL DEFAULT NULL COMMENT '是否语音播报 : 0-播报 1-不播报', |
||||||
|
`IS_PLATFORM_MESSAGE` tinyint(4) NULL DEFAULT NULL COMMENT '是否进行平台消息推送 : 0-推送 1-不推送', |
||||||
|
`IS_SHORT_MESSAGE` tinyint(4) NULL DEFAULT NULL COMMENT '是否短信推送 :0-推送 1-不推送', |
||||||
|
`IS_WX_MESSAGE` tinyint(4) NULL DEFAULT NULL COMMENT '是否微信公众号消息推送 :0-推送 1-不推送', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门ID', |
||||||
|
`CREATE_TIME` datetime NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
||||||
|
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态(0 待值班 1 值班中 2 已完成)', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for hzims_alarm_defaul_config |
||||||
|
-- ---------------------------- |
||||||
|
CREATE TABLE IF NOT EXISTS `hzims_alarm_defaul_config` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`SOURCE` bigint(4) NULL DEFAULT NULL COMMENT '告警来源', |
||||||
|
`ALARM_CHILED_TYPE` bigint(4) NULL DEFAULT NULL COMMENT '告警子类', |
||||||
|
`IS_RIGHT_TABULATION` tinyint(4) NULL DEFAULT NULL COMMENT '是否集中监控右侧列表展示 : 0-展示 1-不展示', |
||||||
|
`IS_SHOW_ALERT` tinyint(4) NULL DEFAULT NULL COMMENT '是否集中监控弹窗展示 : 0-展示 1-不展示', |
||||||
|
`IS_SMALL_BELL` tinyint(4) NULL DEFAULT NULL COMMENT '是否集中监控铃铛展示 : 0-展示 1-不展示', |
||||||
|
`IS_MASK` tinyint(4) NULL DEFAULT NULL COMMENT '是否集中监控遮罩展示 : 0-展示 1-不展示', |
||||||
|
`IS_BROADCAST` tinyint(4) NULL DEFAULT NULL COMMENT '是否语音播报 : 0-播报 1-不播报', |
||||||
|
`IS_PLATFORM_MESSAGE` tinyint(4) NULL DEFAULT NULL COMMENT '是否进行平台消息推送 : 0-推送 1-不推送', |
||||||
|
`IS_SHORT_MESSAGE` tinyint(4) NULL DEFAULT NULL COMMENT '是否短信推送 :0-推送 1-不推送', |
||||||
|
`IS_WX_MESSAGE` tinyint(4) NULL DEFAULT NULL COMMENT '是否微信公众号消息推送 :0-推送 1-不推送', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门ID', |
||||||
|
`CREATE_TIME` datetime NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
||||||
|
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for hzims_alarm_handle |
||||||
|
-- ---------------------------- |
||||||
|
CREATE TABLE IF NOT EXISTS `hzims_alarm_handle` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`ALARM_ID` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警主键ID', |
||||||
|
`STATION_CODE` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点编号', |
||||||
|
`ALARM_TYPE` smallint(6) NULL DEFAULT NULL COMMENT '告警类型', |
||||||
|
`ALARM_TIME` datetime NULL DEFAULT NULL COMMENT '告警时间', |
||||||
|
`ALARM_CONTENT` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警内容', |
||||||
|
`TYPE` tinyint(1) NULL DEFAULT NULL COMMENT '类型:0-系统告警 1-智能告警', |
||||||
|
`HANDLE_WAY` smallint(6) NULL DEFAULT NULL COMMENT '处理方式', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除', |
||||||
|
`STATUS` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
||||||
|
`HANDLE_USER` bigint(20) NULL DEFAULT NULL COMMENT '通知处理人', |
||||||
|
`PHENOMENON_ID` bigint(20) NULL DEFAULT NULL COMMENT '现象ID', |
||||||
|
`ACCESS_ID` bigint(20) NULL DEFAULT NULL COMMENT '检修ID', |
||||||
|
`DELAY_TIME` datetime NULL DEFAULT NULL COMMENT '延后时间', |
||||||
|
`DELAY_CAUSE` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '延后原因', |
||||||
|
`FALSE_ALARM_DESC` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '误报描述', |
||||||
|
`FILE_PATH` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件路径', |
||||||
|
`CREATE_USER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建用户姓名', |
||||||
|
`CREATE_DEPT_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建机构名称', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for hzims_alarm_handle_flow |
||||||
|
-- ---------------------------- |
||||||
|
CREATE TABLE IF NOT EXISTS `hzims_alarm_handle_flow` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`ALARM_ID` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警主键ID', |
||||||
|
`STATION_CODE` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点编号', |
||||||
|
`ALARM_TYPE` smallint(6) NULL DEFAULT NULL COMMENT '告警类型', |
||||||
|
`ALARM_TIME` datetime NULL DEFAULT NULL COMMENT '告警时间', |
||||||
|
`ALARM_CONTENT` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警内容', |
||||||
|
`TYPE` tinyint(1) NULL DEFAULT NULL COMMENT '类型:0-系统告警 1-智能告警', |
||||||
|
`HANDLE_WAY` smallint(6) NULL DEFAULT NULL COMMENT '告警状态 1L,2L,3L,4L,5L 误报 、延后、缺陷 、检修、处理', |
||||||
|
`HANDLE_USER` bigint(20) NULL DEFAULT NULL COMMENT '通知处理人', |
||||||
|
`PHENOMENON_ID` bigint(20) NULL DEFAULT NULL COMMENT '现象ID', |
||||||
|
`ACCESS_ID` bigint(20) NULL DEFAULT NULL COMMENT '检修ID', |
||||||
|
`DELAY_TIME` datetime NULL DEFAULT NULL COMMENT '延后时间', |
||||||
|
`DELAY_CAUSE` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '延后原因', |
||||||
|
`FALSE_ALARM_DESC` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '误报描述', |
||||||
|
`FILE_PATH` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件路径', |
||||||
|
`DEAL_TYPE` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理方式', |
||||||
|
`DEAL_RESULT` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理结果', |
||||||
|
`DEAL_DESC` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理描述', |
||||||
|
`DEAL_PATH` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理附件', |
||||||
|
`CHECK_FLAG` tinyint(4) NULL DEFAULT NULL COMMENT '审批结果 0,不通过;1为通过', |
||||||
|
`CHECK_DESC` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审批说明', |
||||||
|
`CURRENT_OPERATOR` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '当前处理环节', |
||||||
|
`CURRENT_LINK_HANDLER` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '当前环节处理人', |
||||||
|
`PROCESS_INSTANCE_ID` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流程实例', |
||||||
|
`CREATE_USER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建用户姓名', |
||||||
|
`HANDLE_USER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理人姓名', |
||||||
|
`APPROVAL_USER` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审批人', |
||||||
|
`APPROVAL_USER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审批人姓名', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
||||||
|
`STATUS` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
||||||
|
`CREATE_DEPT_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建机构名称', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for hzims_alarm_history |
||||||
|
-- ---------------------------- |
||||||
|
CREATE TABLE IF NOT EXISTS `hzims_alarm_history` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编码', |
||||||
|
`STATION_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', |
||||||
|
`DEVICE_CODE` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编码', |
||||||
|
`DEVICE_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备名称', |
||||||
|
`ALARM_ID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警ID', |
||||||
|
`ALARM_SOURCE` tinyint(4) NULL DEFAULT NULL COMMENT '告警类型 :0- HZ3000告警 1 -等级告警 2 -条件告警 3-FDP智能预警', |
||||||
|
`ALARM_TYPE` tinyint(4) NULL DEFAULT NULL COMMENT '告警子类', |
||||||
|
`ALARM_SIGNAGE` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警属性标识', |
||||||
|
`ALARM_CONTEXT` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警内容', |
||||||
|
`ALARM_STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '告警状态', |
||||||
|
`ALARM_LEVEL` tinyint(4) NULL DEFAULT NULL COMMENT '告警等级', |
||||||
|
`ALARM_VALUE` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警动作数值', |
||||||
|
`ALARM_COUNT` tinyint(10) NULL DEFAULT NULL COMMENT '告警数量', |
||||||
|
`ALARM_TIME` datetime NULL DEFAULT NULL COMMENT '告警时间', |
||||||
|
`REAL_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '监测点', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门ID', |
||||||
|
`CREATE_TIME` datetime NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
||||||
|
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态(0 待值班 1 值班中 2 已完成)', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for hzims_business_early |
||||||
|
-- ---------------------------- |
||||||
|
CREATE TABLE IF NOT EXISTS `hzims_business_early` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`TASK_ID` bigint(20) NULL DEFAULT NULL COMMENT '任务ID', |
||||||
|
`BUSINESS_TYPE` tinyint(1) NULL DEFAULT NULL COMMENT '业务类型 :0 - 固定资产 1 - 日常维护 2 - 安全工器- 具 3 - 巡检 4 - 检修 5 - 缺陷 6 - 值班', |
||||||
|
`CONTENT` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '预警内容', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门ID', |
||||||
|
`CREATE_TIME` datetime NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
||||||
|
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; |
||||||
|
|
||||||
|
-- ---------------------------- |
||||||
|
-- Table structure for hzims_interruption_alarm |
||||||
|
-- ---------------------------- |
||||||
|
CREATE TABLE IF NOT EXISTS `hzims_interruption_alarm` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点ID', |
||||||
|
`STATION_NAME` varchar(168) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', |
||||||
|
`ALARM_ID` bigint(20) NULL DEFAULT NULL COMMENT '告警编号', |
||||||
|
`REAL_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警点位', |
||||||
|
`ALARM_TIME` datetime NULL DEFAULT NULL COMMENT '告警时间', |
||||||
|
`TYPE` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警类型 13-连接中断 14-数据异常', |
||||||
|
`SOE_EXPLAIN` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警原因', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`STATUS` bigint(1) NULL DEFAULT NULL COMMENT '状态', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC; |
@ -1,250 +0,0 @@ |
|||||||
|
|
||||||
DROP TABLE IF EXISTS `BLADE_MODULE_VERSION`; |
|
||||||
CREATE TABLE `BLADE_MODULE_VERSION` ( |
|
||||||
`MODULE_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL, |
|
||||||
`VERSION` VARCHAR(8) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL, |
|
||||||
`HISTORY` VARCHAR(300) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL, |
|
||||||
PRIMARY KEY (`MODULE_NAME`) USING BTREE |
|
||||||
) ENGINE = INNODB CHARACTER SET = UTF8 COLLATE = UTF8_GENERAL_CI ROW_FORMAT = DYNAMIC; |
|
||||||
|
|
||||||
-- ---------------------------- |
|
||||||
-- TABLE STRUCTURE FOR HZIMS_ALARM |
|
||||||
-- ---------------------------- |
|
||||||
DROP TABLE IF EXISTS `HZIMS_ALARM`; |
|
||||||
CREATE TABLE `HZIMS_ALARM` ( |
|
||||||
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', |
|
||||||
`STATION_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '站点编码', |
|
||||||
`STATION_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称', |
|
||||||
`DEVICE_CODE` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备编码', |
|
||||||
`DEVICE_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备名称', |
|
||||||
`ALARM_ID` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警ID', |
|
||||||
`ALARM_SOURCE` TINYINT(4) NULL DEFAULT NULL COMMENT '告警类型 :0- HZ3000告警 1 -等级告警 2 -条件告警 3-FDP智能预警', |
|
||||||
`ALARM_TYPE` TINYINT(4) NULL DEFAULT NULL COMMENT '告警子类', |
|
||||||
`ALARM_SIGNAGE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警属性标识', |
|
||||||
`ALARM_CONTEXT` VARCHAR(1024) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警内容', |
|
||||||
`ALARM_STATUS` TINYINT(4) NULL DEFAULT NULL COMMENT '告警状态', |
|
||||||
`ALARM_LEVEL` TINYINT(4) NULL DEFAULT NULL COMMENT '告警等级', |
|
||||||
`ALARM_VALUE` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警动作数值', |
|
||||||
`ALARM_COUNT` TINYINT(10) NULL DEFAULT NULL COMMENT '告警数量', |
|
||||||
`ALARM_TIME` DATETIME NULL DEFAULT NULL COMMENT '告警时间', |
|
||||||
`DIAG_REASON` VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '初步分析原因', |
|
||||||
`DIAG_SOLUTION` VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '建议处置方式', |
|
||||||
`REAL_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '监测点', |
|
||||||
`IS_RIGHT_TABULATION` TINYINT(4) NULL DEFAULT NULL COMMENT '是否集中监控右侧列表展示 : 0-展示 1-不展示', |
|
||||||
`IS_SHOW_ALERT` TINYINT(4) NULL DEFAULT NULL COMMENT '是否集中监控弹窗展示 : 0-展示 1-不展示', |
|
||||||
`IS_SMALL_BELL` TINYINT(4) NULL DEFAULT NULL COMMENT '是否集中监控铃铛展示 : 0-展示 1-不展示', |
|
||||||
`IS_MASK` TINYINT(4) NULL DEFAULT NULL COMMENT '是否集中监控遮罩展示 : 0-展示 1-不展示', |
|
||||||
`IS_BROADCAST` TINYINT(4) NULL DEFAULT NULL COMMENT '是否语音播报 : 0-播报 1-不播报', |
|
||||||
`IS_PLATFORM_MESSAGE` TINYINT(4) NULL DEFAULT NULL COMMENT '是否进行平台消息推送 : 0-推送 1-不推送', |
|
||||||
`IS_SHORT_MESSAGE` TINYINT(4) NULL DEFAULT NULL COMMENT '是否短信推送 :0-推送 1-不推送', |
|
||||||
`IS_WX_MESSAGE` TINYINT(4) NULL DEFAULT NULL COMMENT '是否微信公众号消息推送 :0-推送 1-不推送', |
|
||||||
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '创建部门ID', |
|
||||||
`CREATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`CREATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`UPDATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '更新人', |
|
||||||
`IS_DELETED` TINYINT(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
|
||||||
`STATUS` TINYINT(4) NULL DEFAULT NULL COMMENT '状态', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = INNODB CHARACTER SET = UTF8 COLLATE = UTF8_GENERAL_CI ROW_FORMAT = DYNAMIC; |
|
||||||
|
|
||||||
-- ---------------------------- |
|
||||||
-- TABLE STRUCTURE FOR HZIMS_ALARM_CONFIG |
|
||||||
-- ---------------------------- |
|
||||||
DROP TABLE IF EXISTS `HZIMS_ALARM_CONFIG`; |
|
||||||
CREATE TABLE `HZIMS_ALARM_CONFIG` ( |
|
||||||
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', |
|
||||||
`STATION_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点编码', |
|
||||||
`STATION_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称', |
|
||||||
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '创建部门ID', |
|
||||||
`CREATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`CREATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`UPDATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '更新人', |
|
||||||
`IS_DELETED` TINYINT(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
|
||||||
`STATUS` TINYINT(4) NULL DEFAULT NULL COMMENT '状态(0 待值班 1 值班中 2 已完成)', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = INNODB CHARACTER SET = UTF8 COLLATE = UTF8_GENERAL_CI ROW_FORMAT = DYNAMIC; |
|
||||||
|
|
||||||
-- ---------------------------- |
|
||||||
-- TABLE STRUCTURE FOR HZIMS_ALARM_CONFIG_DETAIL |
|
||||||
-- ---------------------------- |
|
||||||
DROP TABLE IF EXISTS `HZIMS_ALARM_CONFIG_DETAIL`; |
|
||||||
CREATE TABLE `HZIMS_ALARM_CONFIG_DETAIL` ( |
|
||||||
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', |
|
||||||
`STRATEGY_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '告警配置ID', |
|
||||||
`ALARM_TYPE` BIGINT(4) NULL DEFAULT NULL COMMENT '告警类型', |
|
||||||
`ALARM_CHILED_TYPE` BIGINT(4) NULL DEFAULT NULL COMMENT '告警子类', |
|
||||||
`ALARM_CONTEXT` VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警内容', |
|
||||||
`ALARM_POINT` VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警监测点', |
|
||||||
`IS_RIGHT_TABULATION` TINYINT(4) NULL DEFAULT NULL COMMENT '是否集中监控右侧列表展示 : 0-展示 1-不展示', |
|
||||||
`IS_SHOW_ALERT` TINYINT(4) NULL DEFAULT NULL COMMENT '是否集中监控弹窗展示 : 0-展示 1-不展示', |
|
||||||
`IS_SMALL_BELL` TINYINT(4) NULL DEFAULT NULL COMMENT '是否集中监控铃铛展示 : 0-展示 1-不展示', |
|
||||||
`IS_MASK` TINYINT(4) NULL DEFAULT NULL COMMENT '是否集中监控遮罩展示 : 0-展示 1-不展示', |
|
||||||
`IS_BROADCAST` TINYINT(4) NULL DEFAULT NULL COMMENT '是否语音播报 : 0-播报 1-不播报', |
|
||||||
`IS_PLATFORM_MESSAGE` TINYINT(4) NULL DEFAULT NULL COMMENT '是否进行平台消息推送 : 0-推送 1-不推送', |
|
||||||
`IS_SHORT_MESSAGE` TINYINT(4) NULL DEFAULT NULL COMMENT '是否短信推送 :0-推送 1-不推送', |
|
||||||
`IS_WX_MESSAGE` TINYINT(4) NULL DEFAULT NULL COMMENT '是否微信公众号消息推送 :0-推送 1-不推送', |
|
||||||
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '创建部门ID', |
|
||||||
`CREATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`CREATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`UPDATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '更新人', |
|
||||||
`IS_DELETED` TINYINT(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
|
||||||
`STATUS` TINYINT(4) NULL DEFAULT NULL COMMENT '状态(0 待值班 1 值班中 2 已完成)', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = INNODB CHARACTER SET = UTF8 COLLATE = UTF8_GENERAL_CI ROW_FORMAT = DYNAMIC; |
|
||||||
|
|
||||||
-- ---------------------------- |
|
||||||
-- TABLE STRUCTURE FOR HZIMS_ALARM_HANDLE |
|
||||||
-- ---------------------------- |
|
||||||
DROP TABLE IF EXISTS `HZIMS_ALARM_HANDLE`; |
|
||||||
CREATE TABLE `HZIMS_ALARM_HANDLE` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
||||||
`ALARM_ID` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警主键ID', |
|
||||||
`STATION_CODE` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点编号', |
|
||||||
`ALARM_TYPE` smallint(6) NULL DEFAULT NULL COMMENT '告警类型', |
|
||||||
`ALARM_TIME` datetime(0) NULL DEFAULT NULL COMMENT '告警时间', |
|
||||||
`ALARM_CONTENT` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警内容', |
|
||||||
`TYPE` tinyint(1) NULL DEFAULT NULL COMMENT '类型:0-系统告警 1-智能告警', |
|
||||||
`HANDLE_WAY` smallint(6) NULL DEFAULT NULL COMMENT '处理方式', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
|
||||||
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除', |
|
||||||
`STATUS` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
|
||||||
`HANDLE_USER` bigint(20) NULL DEFAULT NULL COMMENT '通知处理人', |
|
||||||
`PHENOMENON_ID` bigint(20) NULL DEFAULT NULL COMMENT '现象ID', |
|
||||||
`ACCESS_ID` bigint(20) NULL DEFAULT NULL COMMENT '检修ID', |
|
||||||
`DELAY_TIME` datetime(0) NULL DEFAULT NULL COMMENT '延后时间', |
|
||||||
`DELAY_CAUSE` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '延后原因', |
|
||||||
`FALSE_ALARM_DESC` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '误报描述', |
|
||||||
`FILE_PATH` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件路径', |
|
||||||
`CREATE_USER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建用户姓名', |
|
||||||
`CREATE_DEPT_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建机构名称', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = INNODB CHARACTER SET = UTF8 COLLATE = UTF8_GENERAL_CI ROW_FORMAT = DYNAMIC; |
|
||||||
|
|
||||||
-- ---------------------------- |
|
||||||
-- TABLE STRUCTURE FOR HZIMS_ALARM_HISTORY |
|
||||||
-- ---------------------------- |
|
||||||
DROP TABLE IF EXISTS `HZIMS_ALARM_HISTORY`; |
|
||||||
CREATE TABLE `HZIMS_ALARM_HISTORY` ( |
|
||||||
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', |
|
||||||
`STATION_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '站点编码', |
|
||||||
`STATION_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称', |
|
||||||
`DEVICE_CODE` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备编码', |
|
||||||
`DEVICE_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备名称', |
|
||||||
`ALARM_ID` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警ID', |
|
||||||
`ALARM_SOURCE` TINYINT(4) NULL DEFAULT NULL COMMENT '告警类型 :0- HZ3000告警 1 -等级告警 2 -条件告警 3-FDP智能预警', |
|
||||||
`ALARM_TYPE` TINYINT(4) NULL DEFAULT NULL COMMENT '告警子类', |
|
||||||
`ALARM_SIGNAGE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警属性标识', |
|
||||||
`ALARM_CONTEXT` VARCHAR(1024) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警内容', |
|
||||||
`ALARM_STATUS` TINYINT(4) NULL DEFAULT NULL COMMENT '告警状态', |
|
||||||
`ALARM_LEVEL` TINYINT(4) NULL DEFAULT NULL COMMENT '告警等级', |
|
||||||
`ALARM_VALUE` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警动作数值', |
|
||||||
`ALARM_COUNT` TINYINT(10) NULL DEFAULT NULL COMMENT '告警数量', |
|
||||||
`ALARM_TIME` DATETIME NULL DEFAULT NULL COMMENT '告警时间', |
|
||||||
`REAL_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '监测点', |
|
||||||
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '创建部门ID', |
|
||||||
`CREATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`CREATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`UPDATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '更新人', |
|
||||||
`IS_DELETED` TINYINT(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
|
||||||
`STATUS` TINYINT(4) NULL DEFAULT NULL COMMENT '状态(0 待值班 1 值班中 2 已完成)', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = INNODB CHARACTER SET = UTF8 COLLATE = UTF8_GENERAL_CI ROW_FORMAT = DYNAMIC; |
|
||||||
|
|
||||||
-- ---------------------------- |
|
||||||
-- TABLE STRUCTURE FOR HZIMS_BUSINESS_EARLY |
|
||||||
-- ---------------------------- |
|
||||||
DROP TABLE IF EXISTS `HZIMS_BUSINESS_EARLY`; |
|
||||||
CREATE TABLE `HZIMS_BUSINESS_EARLY` ( |
|
||||||
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', |
|
||||||
`TASK_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '任务ID', |
|
||||||
`BUSINESS_TYPE` TINYINT(1) NULL DEFAULT NULL COMMENT '业务类型 :0 - 固定资产 1 - 日常维护 2 - 安全工器- 具 3 - 巡检 4 - 检修 5 - 缺陷 6 - 值班', |
|
||||||
`CONTENT` VARCHAR(1024) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '预警内容', |
|
||||||
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '创建部门ID', |
|
||||||
`CREATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`CREATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`UPDATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '更新人', |
|
||||||
`IS_DELETED` TINYINT(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
|
||||||
`STATUS` TINYINT(4) NULL DEFAULT NULL COMMENT '状态', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = INNODB CHARACTER SET = UTF8MB4 COLLATE = UTF8MB4_GENERAL_CI ROW_FORMAT = DYNAMIC; |
|
||||||
|
|
||||||
-- ---------------------------- |
|
||||||
-- TABLE STRUCTURE FOR HZIMS_INTERRUPTION_ALARM |
|
||||||
-- ---------------------------- |
|
||||||
DROP TABLE IF EXISTS `HZIMS_INTERRUPTION_ALARM`; |
|
||||||
CREATE TABLE `HZIMS_INTERRUPTION_ALARM` ( |
|
||||||
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', |
|
||||||
`STATION_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID', |
|
||||||
`STATION_NAME` VARCHAR(168) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称', |
|
||||||
`ALARM_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '告警编号', |
|
||||||
`REAL_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警点位', |
|
||||||
`ALARM_TIME` DATETIME NULL DEFAULT NULL COMMENT '告警时间', |
|
||||||
`TYPE` VARCHAR(16) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警类型 13-连接中断 14-数据异常', |
|
||||||
`SOE_EXPLAIN` VARCHAR(500) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警原因', |
|
||||||
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`STATUS` BIGINT(1) NULL DEFAULT NULL COMMENT '状态', |
|
||||||
`CREATE_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '创建单位', |
|
||||||
`CREATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`UPDATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = INNODB CHARACTER SET = UTF8 COLLATE = UTF8_GENERAL_CI ROW_FORMAT = DYNAMIC; |
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `hzims_alarm_handle_flow`; |
|
||||||
CREATE TABLE `hzims_alarm_handle_flow` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
||||||
`ALARM_ID` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警主键ID', |
|
||||||
`STATION_CODE` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点编号', |
|
||||||
`ALARM_TYPE` smallint(6) NULL DEFAULT NULL COMMENT '告警类型', |
|
||||||
`ALARM_TIME` datetime(0) NULL DEFAULT NULL COMMENT '告警时间', |
|
||||||
`ALARM_CONTENT` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警内容', |
|
||||||
`TYPE` tinyint(1) NULL DEFAULT NULL COMMENT '类型:0-系统告警 1-智能告警', |
|
||||||
`HANDLE_WAY` smallint(6) NULL DEFAULT NULL COMMENT '告警状态 1L,2L,3L,4L,5L 误报 、延后、缺陷 、检修、处理', |
|
||||||
`HANDLE_USER` bigint(20) NULL DEFAULT NULL COMMENT '通知处理人', |
|
||||||
`PHENOMENON_ID` bigint(20) NULL DEFAULT NULL COMMENT '现象ID', |
|
||||||
`ACCESS_ID` bigint(20) NULL DEFAULT NULL COMMENT '检修ID', |
|
||||||
`DELAY_TIME` datetime(0) NULL DEFAULT NULL COMMENT '延后时间', |
|
||||||
`DELAY_CAUSE` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '延后原因', |
|
||||||
`FALSE_ALARM_DESC` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '误报描述', |
|
||||||
`FILE_PATH` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件路径', |
|
||||||
`DEAL_TYPE` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理方式', |
|
||||||
`DEAL_RESULT` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理结果', |
|
||||||
`DEAL_DESC` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理描述', |
|
||||||
`DEAL_PATH` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理附件', |
|
||||||
`CHECK_FLAG` tinyint(4) NULL DEFAULT NULL COMMENT '审批结果 0,不通过;1为通过', |
|
||||||
`CHECK_DESC` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审批说明', |
|
||||||
`CURRENT_OPERATOR` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '当前处理环节', |
|
||||||
`CURRENT_LINK_HANDLER` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '当前环节处理人', |
|
||||||
`PROCESS_INSTANCE_ID` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流程实例', |
|
||||||
`CREATE_USER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建用户姓名', |
|
||||||
`HANDLE_USER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理人姓名', |
|
||||||
`APPROVAL_USER` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审批人', |
|
||||||
`APPROVAL_USER_NAME` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审批人姓名', |
|
||||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
|
||||||
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
|
||||||
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
|
||||||
`STATUS` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态', |
|
||||||
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
|
||||||
`CREATE_DEPT_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建机构名称', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = INNODB CHARACTER SET = UTF8 COLLATE = UTF8_GENERAL_CI ROW_FORMAT = DYNAMIC; |
|
@ -1,46 +0,0 @@ |
|||||||
|
|
||||||
DROP TABLE IF EXISTS `BLADE_MODULE_VERSION`; |
|
||||||
CREATE TABLE `hzims_alarm_defaul_config` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
||||||
`SOURCE` bigint(4) DEFAULT NULL COMMENT '告警来源', |
|
||||||
`ALARM_CHILED_TYPE` bigint(4) DEFAULT NULL COMMENT '告警子类', |
|
||||||
`IS_RIGHT_TABULATION` tinyint(4) DEFAULT NULL COMMENT '是否集中监控右侧列表展示 : 0-展示 1-不展示', |
|
||||||
`IS_SHOW_ALERT` tinyint(4) DEFAULT NULL COMMENT '是否集中监控弹窗展示 : 0-展示 1-不展示', |
|
||||||
`IS_SMALL_BELL` tinyint(4) DEFAULT NULL COMMENT '是否集中监控铃铛展示 : 0-展示 1-不展示', |
|
||||||
`IS_MASK` tinyint(4) DEFAULT NULL COMMENT '是否集中监控遮罩展示 : 0-展示 1-不展示', |
|
||||||
`IS_BROADCAST` tinyint(4) DEFAULT NULL COMMENT '是否语音播报 : 0-播报 1-不播报', |
|
||||||
`IS_PLATFORM_MESSAGE` tinyint(4) DEFAULT NULL COMMENT '是否进行平台消息推送 : 0-推送 1-不推送', |
|
||||||
`IS_SHORT_MESSAGE` tinyint(4) DEFAULT NULL COMMENT '是否短信推送 :0-推送 1-不推送', |
|
||||||
`IS_WX_MESSAGE` tinyint(4) DEFAULT NULL COMMENT '是否微信公众号消息推送 :0-推送 1-不推送', |
|
||||||
`TENANT_ID` varchar(12) NOT NULL COMMENT '租户ID', |
|
||||||
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建部门ID', |
|
||||||
`CREATE_TIME` datetime DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '更新时间', |
|
||||||
`CREATE_USER` bigint(20) DEFAULT NULL COMMENT '创建人', |
|
||||||
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '更新人', |
|
||||||
`IS_DELETED` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否删除', |
|
||||||
`STATUS` tinyint(4) DEFAULT NULL COMMENT '状态', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; |
|
||||||
|
|
||||||
DROP TABLE IF EXISTS `hzims_run_month_report`; |
|
||||||
CREATE TABLE `hzims_run_month_report` ( |
|
||||||
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
|
||||||
`STATION_CODE` varchar(64) DEFAULT NULL COMMENT '站点编码', |
|
||||||
`STATION_NAME` varchar(255) DEFAULT NULL COMMENT '站点名称', |
|
||||||
`MONTH` varchar(255) DEFAULT NULL COMMENT '月份 : "yyyy-MM"', |
|
||||||
`RUN_DATA` text COMMENT '运行数据', |
|
||||||
`ALARM_DATA` text COMMENT '告警数据', |
|
||||||
`CURVE_DATA` text COMMENT '曲线数据', |
|
||||||
`ANALYSIS_DATA` text COMMENT '分析数据', |
|
||||||
`RUN_PROPOSE` text COMMENT '运行建议', |
|
||||||
`TENANT_ID` varchar(12) DEFAULT NULL COMMENT '租户ID', |
|
||||||
`STATUS` tinyint(4) DEFAULT NULL COMMENT '业务状态', |
|
||||||
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建单位', |
|
||||||
`IS_DELETED` tinyint(4) NOT NULL DEFAULT '0', |
|
||||||
`CREATE_USER` bigint(20) DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` datetime DEFAULT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', |
|
||||||
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', |
|
||||||
PRIMARY KEY (`ID`) |
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|
@ -1,3 +1,5 @@ |
|||||||
|
INSERT INTO `process_dict` (`dict_code`, `dict_sort`, `dict_key`, `dict_value`, `dict_label`, `dict_type`, `is_default`, `status`, `create_dept`, `create_time`, `update_time`, `remark`) VALUES (9, 9, 'offlineWorkTicket', 'offlineWorkTicket', '线下工作票', '线下工作票', 'Y', 0, NULL, '2023-12-28 16:35:10', '2023-12-28 16:35:14', '线下工作票流程'); |
||||||
|
|
||||||
INSERT INTO `PROCESS_DICT` (`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (9, 9, 'WORK_TASK', 'WORK_TASK', '工作任务单V4', '工作任务单', 'Y', 0, NULL, '2023-07-25 18:35:01', '2024-01-09 14:48:18', '工作任务单流程'); |
INSERT INTO `PROCESS_DICT` (`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (9, 9, 'WORK_TASK', 'WORK_TASK', '工作任务单V4', '工作任务单', 'Y', 0, NULL, '2023-07-25 18:35:01', '2024-01-09 14:48:18', '工作任务单流程'); |
||||||
INSERT INTO `PROCESS_DICT`(`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (10, 10, 'HAZARD_RISK', 'HAZARD_RISK', '风险排查', '风险排查', 'Y', 0, NULL, '2023-07-25 18:35:01', '2023-09-19 22:35:40', '风险排查流程'); |
INSERT INTO `PROCESS_DICT`(`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (10, 10, 'HAZARD_RISK', 'HAZARD_RISK', '风险排查', '风险排查', 'Y', 0, NULL, '2023-07-25 18:35:01', '2023-09-19 22:35:40', '风险排查流程'); |
||||||
INSERT INTO `PROCESS_DICT`(`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (11, 11, 'DEALALARM', 'DEALALARM', '告警处理流程', '告警处理流程', 'Y', 0, NULL, '2024-02-19 16:56:10', '2024-02-19 16:56:34', '告警处理流程'); |
INSERT INTO `PROCESS_DICT`(`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (11, 11, 'DEALALARM', 'DEALALARM', '告警处理流程', '告警处理流程', 'Y', 0, NULL, '2024-02-19 16:56:10', '2024-02-19 16:56:34', '告警处理流程'); |
@ -1 +0,0 @@ |
|||||||
INSERT INTO `process_dict` (`dict_code`, `dict_sort`, `dict_key`, `dict_value`, `dict_label`, `dict_type`, `is_default`, `status`, `create_dept`, `create_time`, `update_time`, `remark`) VALUES (9, 9, 'offlineWorkTicket', 'offlineWorkTicket', '线下工作票', '线下工作票', 'Y', 0, NULL, '2023-12-28 16:35:10', '2023-12-28 16:35:14', '线下工作票流程'); |
|
@ -1,42 +0,0 @@ |
|||||||
-- ---------------------------- |
|
||||||
-- TABLE STRUCTURE FOR HZIMS_OPER_CONSTRUCTION |
|
||||||
-- ---------------------------- |
|
||||||
DROP TABLE IF EXISTS `HZIMS_OPER_CONSTRUCTION`; |
|
||||||
CREATE TABLE `HZIMS_OPER_CONSTRUCTION` ( |
|
||||||
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', |
|
||||||
`CODE` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '施工编号', |
|
||||||
`CONSTRUCTION_TIME` DATETIME NULL DEFAULT NULL COMMENT '施工时间', |
|
||||||
`OVERHAUL_NAME` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '检修名称', |
|
||||||
`CONSTRUCTION_LOCATION` VARCHAR(1024) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '施工地点', |
|
||||||
`OVERHAUL_HEAD` BIGINT(20) NULL DEFAULT NULL COMMENT '检修负责人', |
|
||||||
`OVERHAUL_HEAD_NAME` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '检修负责人名称', |
|
||||||
`OVERHAUL_PERSONNEL` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '检修人员: 根据“,”分割', |
|
||||||
`OVERHAUL_PERSONNEL_NAME` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '检修人员名称: 根据“,”分割', |
|
||||||
`OVERHAUL_TIME` DATETIME NULL DEFAULT NULL COMMENT '检修时间', |
|
||||||
`COMPLETE_WORK_DESC` VARCHAR(2048) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NOT NULL COMMENT '今日完成任务描述', |
|
||||||
`PLAN_WORK_DESC` VARCHAR(2048) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '明日工作计划描述', |
|
||||||
`CONSTRUCTION_IMG` VARCHAR(512) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '施工图片: 根据“,”分割', |
|
||||||
`CONSTRUCTION_ATTACHMENT` VARCHAR(512) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '施工附件', |
|
||||||
`RECORDER` BIGINT(20) NULL DEFAULT NULL COMMENT '记录人', |
|
||||||
`RECORDER_NAME` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '记录人名称', |
|
||||||
`REVIEWER` BIGINT(20) NULL DEFAULT NULL COMMENT '审核人', |
|
||||||
`REVIEWER_NAME` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '审核人名称', |
|
||||||
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', |
|
||||||
`STATUS` TINYINT(4) NULL DEFAULT 0 COMMENT '业务状态', |
|
||||||
`CREATE_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '创建单位', |
|
||||||
`IS_DELETED` TINYINT(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
|
||||||
`CREATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '创建人', |
|
||||||
`CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', |
|
||||||
`UPDATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '修改人', |
|
||||||
`UPDATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '修改时间', |
|
||||||
PRIMARY KEY (`ID`) USING BTREE |
|
||||||
) ENGINE = INNODB CHARACTER SET = UTF8MB4 COLLATE = UTF8MB4_GENERAL_CI ROW_FORMAT = DYNAMIC; |
|
||||||
|
|
||||||
alter table `hzims_oper_maintenance_library` add column `duty_class_tree` VARCHAR(100) NULL COMMENT '班次树,机构/班次类型/班次'; |
|
||||||
alter table `hzims_station` add COLUMN `deleted_id` BIGINT(20) DEFAULT null COMMENT '删除记录ID'; |
|
||||||
update `hzims_station` set `deleted_id` = id where `IS_DELETED` = 1; |
|
||||||
ALTER TABLE `hzims_station` ADD CONSTRAINT index_code_deleted UNIQUE (`code`, `deleted_id`); |
|
||||||
alter table `hzims_station` add column `is_push_project` tinyint(2) default 0 comment '是否推送数据平台'; |
|
||||||
alter table `hzims_station` add column `is_push_fdp` tinyint(2) default 0 comment '是否推送FDP'; |
|
||||||
|
|
||||||
ALTER TABLE `hz_ims_duty_analyse_example` ADD COLUMN `name` varchar(255) NULL COMMENT '配置名称' AFTER `CREATE_DEPT`; |
|
@ -1,4 +0,0 @@ |
|||||||
ALTER TABLE `hzims_test_score` |
|
||||||
ADD COLUMN `user_id` bigint(20) NULL AFTER `is_deleted`, |
|
||||||
ADD COLUMN `dept_name` varchar(255) NULL AFTER `user_id`, |
|
||||||
ADD COLUMN `dept_id` bigint(20) NULL AFTER `dept_name`; |
|
@ -1,8 +1,34 @@ |
|||||||
-- ---------------------------- |
ALTER TABLE `hzims_standard_ticket_info` ADD COLUMN `create_user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人姓名' AFTER `class_group_name`; |
||||||
-- TABLE STRUCTURE FOR HZIMS_WORK_TASK |
|
||||||
-- ---------------------------- |
ALTER TABLE `hzims_standard_ticket_info` ADD COLUMN `update_user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人姓名' AFTER `create_user_name`; |
||||||
DROP TABLE IF EXISTS `HZIMS_WORK_TASK`; |
|
||||||
CREATE TABLE `HZIMS_WORK_TASK` ( |
ALTER TABLE `hzims_standard_ticket_info` ADD COLUMN `issue_order_person_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发令人名称' AFTER `update_user_name`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_standard_ticket_info` ADD COLUMN `access_order_person_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '受令人名称' AFTER `issue_order_person_name`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_standard_ticket_info` ADD COLUMN `guardian_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '许可人名称' AFTER `access_order_person_name`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_standard_ticket_info` ADD COLUMN `principal_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责人名称' AFTER `guardian_name`; |
||||||
|
|
||||||
|
alter table `hzims_work_ticket_finish` add column `end_principal_name` varchar(50) comment '工作终结负责人'; |
||||||
|
alter table `hzims_work_ticket_finish` add column `end_licensor_name` varchar(50) comment '工作终结许可人'; |
||||||
|
alter table `hzims_work_ticket_finish` add column `finish_licensor_name` varchar(50) comment '工作票终结许可人'; |
||||||
|
|
||||||
|
alter table `hzims_work_ticket_info` add column `is_offline` tinyint(2) default 0 comment '是否线下 : 1-线下,0-线上'; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_work_ticket_info` ADD COLUMN `signer_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '签发人名称' AFTER `is_offline`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_work_ticket_info` ADD COLUMN `licensor_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '许可人名称' AFTER `signer_name`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_work_ticket_info` ADD COLUMN `watch_principal_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '值班负责人名称' AFTER `licensor_name`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_work_ticket_info` ADD COLUMN `implement_status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '执行状态字段:0未执行,1为执行(运行人员确认过)' AFTER `watch_principal_name`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_work_ticket_info` ADD COLUMN `update_user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人名称' AFTER `implement_status`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_work_ticket_info` ADD COLUMN `create_user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人名称' AFTER `update_user_name`; |
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS `HZIMS_WORK_TASK` ( |
||||||
`ID` BIGINT(20) NOT NULL COMMENT '主键', |
`ID` BIGINT(20) NOT NULL COMMENT '主键', |
||||||
`CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作任务单编号', |
`CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作任务单编号', |
||||||
`HEAD` BIGINT(20) NULL DEFAULT NULL COMMENT '工作负责人', |
`HEAD` BIGINT(20) NULL DEFAULT NULL COMMENT '工作负责人', |
@ -1,30 +0,0 @@ |
|||||||
ALTER TABLE `hzims_standard_ticket_info` ADD COLUMN `create_user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人姓名' AFTER `class_group_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_standard_ticket_info` ADD COLUMN `update_user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人姓名' AFTER `create_user_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_standard_ticket_info` ADD COLUMN `issue_order_person_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发令人名称' AFTER `update_user_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_standard_ticket_info` ADD COLUMN `access_order_person_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '受令人名称' AFTER `issue_order_person_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_standard_ticket_info` ADD COLUMN `guardian_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '许可人名称' AFTER `access_order_person_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_standard_ticket_info` ADD COLUMN `principal_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责人名称' AFTER `guardian_name`; |
|
||||||
|
|
||||||
alter table `hzims_work_ticket_finish` add column `end_principal_name` varchar(50) comment '工作终结负责人'; |
|
||||||
alter table `hzims_work_ticket_finish` add column `end_licensor_name` varchar(50) comment '工作终结许可人'; |
|
||||||
alter table `hzims_work_ticket_finish` add column `finish_licensor_name` varchar(50) comment '工作票终结许可人'; |
|
||||||
|
|
||||||
|
|
||||||
alter table `hzims_work_ticket_info` add column `is_offline` tinyint(2) default 0 comment '是否线下 : 1-线下,0-线上'; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_work_ticket_info` ADD COLUMN `signer_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '签发人名称' AFTER `is_offline`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_work_ticket_info` ADD COLUMN `licensor_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '许可人名称' AFTER `signer_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_work_ticket_info` ADD COLUMN `watch_principal_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '值班负责人名称' AFTER `licensor_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_work_ticket_info` ADD COLUMN `implement_status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '执行状态字段:0未执行,1为执行(运行人员确认过)' AFTER `watch_principal_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_work_ticket_info` ADD COLUMN `update_user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '修改人名称' AFTER `implement_status`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims_work_ticket_info` ADD COLUMN `create_user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建人名称' AFTER `update_user_name`; |
|
Loading…
Reference in new issue