Browse Source

update: sql脚本更新

zhongwei
liwen 7 months ago
parent
commit
7deba94a15
  1. 225
      hzims-service/operational/src/main/resources/db/1.0.0.sql
  2. 66
      hzims-service/ticket/src/main/resources/db/1.0.0.sql
  3. 7
      hzims-service/weather/src/main/resources/db/1.0.0.sql

225
hzims-service/operational/src/main/resources/db/1.0.0.sql

@ -1,8 +1,7 @@
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR BLADE_MODULE_VERSION -- TABLE STRUCTURE FOR BLADE_MODULE_VERSION
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `BLADE_MODULE_VERSION`; CREATE TABLE IF NOT EXISTS `BLADE_MODULE_VERSION` (
CREATE TABLE `BLADE_MODULE_VERSION` (
`MODULE_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL, `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, `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, `HISTORY` VARCHAR(300) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL,
@ -12,8 +11,7 @@ CREATE TABLE `BLADE_MODULE_VERSION` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR ECOLOGY_FLOW_DATA -- TABLE STRUCTURE FOR ECOLOGY_FLOW_DATA
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `ECOLOGY_FLOW_DATA`; CREATE TABLE IF NOT EXISTS `ECOLOGY_FLOW_DATA` (
CREATE TABLE `ECOLOGY_FLOW_DATA` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '站点编号', `STATION_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '站点编号',
`STATION_NAME` VARCHAR(255) 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 '站点名称',
@ -36,8 +34,7 @@ CREATE TABLE `ECOLOGY_FLOW_DATA` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR ECOLOGY_FLOW_MAP -- TABLE STRUCTURE FOR ECOLOGY_FLOW_MAP
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `ECOLOGY_FLOW_MAP`; CREATE TABLE IF NOT EXISTS `ECOLOGY_FLOW_MAP` (
CREATE TABLE `ECOLOGY_FLOW_MAP` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`AREA_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '区域编码:地图展示使用', `AREA_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '区域编码:地图展示使用',
`AREA_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '区域名称', `AREA_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '区域名称',
@ -55,8 +52,7 @@ CREATE TABLE `ECOLOGY_FLOW_MAP` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR ECOLOGY_FLOW_STATION -- TABLE STRUCTURE FOR ECOLOGY_FLOW_STATION
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `ECOLOGY_FLOW_STATION`; CREATE TABLE IF NOT EXISTS `ECOLOGY_FLOW_STATION` (
CREATE TABLE `ECOLOGY_FLOW_STATION` (
`ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`STATION_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '站点编号', `STATION_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '站点编号',
`STATION_NAME` VARCHAR(255) 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 '站点名称',
@ -79,8 +75,7 @@ CREATE TABLE `ECOLOGY_FLOW_STATION` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HY_ST_ALARM_RECORD -- TABLE STRUCTURE FOR HY_ST_ALARM_RECORD
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HY_ST_ALARM_RECORD`; CREATE TABLE IF NOT EXISTS `HY_ST_ALARM_RECORD` (
CREATE TABLE `HY_ST_ALARM_RECORD` (
`ID` BIGINT(20) NOT NULL AUTO_INCREMENT, `ID` BIGINT(20) NOT NULL AUTO_INCREMENT,
`STATION_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID', `STATION_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID',
`REAL_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警点号', `REAL_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '告警点号',
@ -103,8 +98,7 @@ CREATE TABLE `HY_ST_ALARM_RECORD` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HY_ST_FOCUS_PROPERTIES -- TABLE STRUCTURE FOR HY_ST_FOCUS_PROPERTIES
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HY_ST_FOCUS_PROPERTIES`; CREATE TABLE IF NOT EXISTS `HY_ST_FOCUS_PROPERTIES` (
CREATE TABLE `HY_ST_FOCUS_PROPERTIES` (
`ID` BIGINT(20) NOT NULL AUTO_INCREMENT, `ID` BIGINT(20) NOT NULL AUTO_INCREMENT,
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID',
`STATION_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID', `STATION_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID',
@ -130,8 +124,7 @@ CREATE TABLE `HY_ST_FOCUS_PROPERTIES` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZ_IMS_DUTY_ANALYSE_EXAMPLE -- TABLE STRUCTURE FOR HZ_IMS_DUTY_ANALYSE_EXAMPLE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZ_IMS_DUTY_ANALYSE_EXAMPLE`; CREATE TABLE IF NOT EXISTS `HZ_IMS_DUTY_ANALYSE_EXAMPLE` (
CREATE TABLE `HZ_IMS_DUTY_ANALYSE_EXAMPLE` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`SITE_ID` BIGINT(22) NULL DEFAULT NULL COMMENT '站点ID', `SITE_ID` BIGINT(22) NULL DEFAULT NULL COMMENT '站点ID',
`SITE_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称', `SITE_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称',
@ -156,8 +149,7 @@ CREATE TABLE `HZ_IMS_DUTY_ANALYSE_EXAMPLE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZ_IMS_DUTY_CHANGE -- TABLE STRUCTURE FOR HZ_IMS_DUTY_CHANGE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZ_IMS_DUTY_CHANGE`; CREATE TABLE IF NOT EXISTS `HZ_IMS_DUTY_CHANGE` (
CREATE TABLE `HZ_IMS_DUTY_CHANGE` (
`ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID',
`CLASS_ID` BIGINT(20) NOT NULL COMMENT '班次ID', `CLASS_ID` BIGINT(20) NOT NULL COMMENT '班次ID',
@ -184,8 +176,7 @@ CREATE TABLE `HZ_IMS_DUTY_CHANGE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZ_IMS_DUTY_CLASS -- TABLE STRUCTURE FOR HZ_IMS_DUTY_CLASS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZ_IMS_DUTY_CLASS`; CREATE TABLE IF NOT EXISTS `HZ_IMS_DUTY_CLASS` (
CREATE TABLE `HZ_IMS_DUTY_CLASS` (
`ID` BIGINT(64) NOT NULL COMMENT '主键ID', `ID` BIGINT(64) NOT NULL COMMENT '主键ID',
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID',
`CLASS_TYPE_ID` BIGINT(20) NOT NULL COMMENT '班次类型ID', `CLASS_TYPE_ID` BIGINT(20) NOT NULL COMMENT '班次类型ID',
@ -205,8 +196,7 @@ CREATE TABLE `HZ_IMS_DUTY_CLASS` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZ_IMS_DUTY_CLASS_TYPE -- TABLE STRUCTURE FOR HZ_IMS_DUTY_CLASS_TYPE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZ_IMS_DUTY_CLASS_TYPE`; CREATE TABLE IF NOT EXISTS `HZ_IMS_DUTY_CLASS_TYPE` (
CREATE TABLE `HZ_IMS_DUTY_CLASS_TYPE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID',
`DEPT_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '部门ID', `DEPT_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '部门ID',
@ -224,8 +214,7 @@ CREATE TABLE `HZ_IMS_DUTY_CLASS_TYPE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZ_IMS_DUTY_EMERGENCY -- TABLE STRUCTURE FOR HZ_IMS_DUTY_EMERGENCY
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZ_IMS_DUTY_EMERGENCY`; CREATE TABLE IF NOT EXISTS `HZ_IMS_DUTY_EMERGENCY` (
CREATE TABLE `HZ_IMS_DUTY_EMERGENCY` (
`ID` BIGINT(20) NOT NULL COMMENT '突发事件登记表', `ID` BIGINT(20) NOT NULL COMMENT '突发事件登记表',
`DUTY_TIME` DATETIME NOT NULL COMMENT '值班日期', `DUTY_TIME` DATETIME NOT NULL COMMENT '值班日期',
`DUTY_CLASS` BIGINT(20) NOT NULL COMMENT '班次', `DUTY_CLASS` BIGINT(20) NOT NULL COMMENT '班次',
@ -249,8 +238,7 @@ CREATE TABLE `HZ_IMS_DUTY_EMERGENCY` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZ_IMS_DUTY_GROUP -- TABLE STRUCTURE FOR HZ_IMS_DUTY_GROUP
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZ_IMS_DUTY_GROUP`; CREATE TABLE IF NOT EXISTS `HZ_IMS_DUTY_GROUP` (
CREATE TABLE `HZ_IMS_DUTY_GROUP` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID',
`MANAGER_ID` VARCHAR(32) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '负责人ID', `MANAGER_ID` VARCHAR(32) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '负责人ID',
@ -268,8 +256,7 @@ CREATE TABLE `HZ_IMS_DUTY_GROUP` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZ_IMS_DUTY_GROUP_P -- TABLE STRUCTURE FOR HZ_IMS_DUTY_GROUP_P
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZ_IMS_DUTY_GROUP_P`; CREATE TABLE IF NOT EXISTS `HZ_IMS_DUTY_GROUP_P` (
CREATE TABLE `HZ_IMS_DUTY_GROUP_P` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID',
`GROUP_ID` BIGINT(20) NOT NULL COMMENT '班组ID', `GROUP_ID` BIGINT(20) NOT NULL COMMENT '班组ID',
@ -280,8 +267,7 @@ CREATE TABLE `HZ_IMS_DUTY_GROUP_P` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZ_IMS_DUTY_MAIN -- TABLE STRUCTURE FOR HZ_IMS_DUTY_MAIN
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZ_IMS_DUTY_MAIN`; CREATE TABLE IF NOT EXISTS `HZ_IMS_DUTY_MAIN` (
CREATE TABLE `HZ_IMS_DUTY_MAIN` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`PRE_DUTY_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '上一班值班ID', `PRE_DUTY_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '上一班值班ID',
`DUTY_GROUP_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '值班组ID', `DUTY_GROUP_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '值班组ID',
@ -305,8 +291,7 @@ CREATE TABLE `HZ_IMS_DUTY_MAIN` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZ_IMS_DUTY_MAIN_PERSON -- TABLE STRUCTURE FOR HZ_IMS_DUTY_MAIN_PERSON
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZ_IMS_DUTY_MAIN_PERSON`; CREATE TABLE IF NOT EXISTS `HZ_IMS_DUTY_MAIN_PERSON` (
CREATE TABLE `HZ_IMS_DUTY_MAIN_PERSON` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID(排班计划-人员表)', `ID` BIGINT(20) NOT NULL COMMENT '主键ID(排班计划-人员表)',
`DUTY_MAIN_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '值班-班组表ID', `DUTY_MAIN_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '值班-班组表ID',
`DUTY_GROUP_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '值班组ID(灵活排版无ID)', `DUTY_GROUP_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '值班组ID(灵活排版无ID)',
@ -333,8 +318,7 @@ CREATE TABLE `HZ_IMS_DUTY_MAIN_PERSON` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZ_IMS_DUTY_MAIN_TEMPLATE -- TABLE STRUCTURE FOR HZ_IMS_DUTY_MAIN_TEMPLATE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZ_IMS_DUTY_MAIN_TEMPLATE`; CREATE TABLE IF NOT EXISTS `HZ_IMS_DUTY_MAIN_TEMPLATE` (
CREATE TABLE `HZ_IMS_DUTY_MAIN_TEMPLATE` (
`ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID',
`TEMPLATE_NAME` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '排班模版名称', `TEMPLATE_NAME` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '排班模版名称',
@ -357,8 +341,7 @@ CREATE TABLE `HZ_IMS_DUTY_MAIN_TEMPLATE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZ_IMS_DUTY_REC -- TABLE STRUCTURE FOR HZ_IMS_DUTY_REC
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZ_IMS_DUTY_REC`; CREATE TABLE IF NOT EXISTS `HZ_IMS_DUTY_REC` (
CREATE TABLE `HZ_IMS_DUTY_REC` (
`ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '租户ID', `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '租户ID',
`DUTY_ID` BIGINT(20) NOT NULL COMMENT '值班ID', `DUTY_ID` BIGINT(20) NOT NULL COMMENT '值班ID',
@ -385,8 +368,7 @@ CREATE TABLE `HZ_IMS_DUTY_REC` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZ_IMS_DUTY_REC_QR_RECORD -- TABLE STRUCTURE FOR HZ_IMS_DUTY_REC_QR_RECORD
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZ_IMS_DUTY_REC_QR_RECORD`; CREATE TABLE IF NOT EXISTS `HZ_IMS_DUTY_REC_QR_RECORD` (
CREATE TABLE `HZ_IMS_DUTY_REC_QR_RECORD` (
`ID` BIGINT(20) NOT NULL COMMENT '主键', `ID` BIGINT(20) NOT NULL COMMENT '主键',
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '租户ID', `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '租户ID',
`DUTY_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '值班ID', `DUTY_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '值班ID',
@ -404,8 +386,7 @@ CREATE TABLE `HZ_IMS_DUTY_REC_QR_RECORD` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_ABNORMAL_ALARM -- TABLE STRUCTURE FOR HZIMS_ABNORMAL_ALARM
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_ABNORMAL_ALARM`; CREATE TABLE IF NOT EXISTS `HZIMS_ABNORMAL_ALARM` (
CREATE TABLE `HZIMS_ABNORMAL_ALARM` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT 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 '站点名称', `STATION_NAME` VARCHAR(168) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称',
@ -428,8 +409,7 @@ CREATE TABLE `HZIMS_ABNORMAL_ALARM` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_ALARM_HANDLE -- TABLE STRUCTURE FOR HZIMS_ALARM_HANDLE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_ALARM_HANDLE`; CREATE TABLE IF NOT EXISTS `HZIMS_ALARM_HANDLE` (
CREATE TABLE `HZIMS_ALARM_HANDLE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`ALARM_ID` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT 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 '站点编号', `STATION_CODE` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点编号',
@ -453,8 +433,7 @@ CREATE TABLE `HZIMS_ALARM_HANDLE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_ALARM_HANDLE_DETAIL -- TABLE STRUCTURE FOR HZIMS_ALARM_HANDLE_DETAIL
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_ALARM_HANDLE_DETAIL`; CREATE TABLE IF NOT EXISTS `HZIMS_ALARM_HANDLE_DETAIL` (
CREATE TABLE `HZIMS_ALARM_HANDLE_DETAIL` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`HANDLE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '通知处理人', `HANDLE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '通知处理人',
`PHENOMENON_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '现象ID', `PHENOMENON_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '现象ID',
@ -477,8 +456,7 @@ CREATE TABLE `HZIMS_ALARM_HANDLE_DETAIL` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_ALERT_DEFECT_CONFIG -- TABLE STRUCTURE FOR HZIMS_ALERT_DEFECT_CONFIG
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_ALERT_DEFECT_CONFIG`; CREATE TABLE IF NOT EXISTS `HZIMS_ALERT_DEFECT_CONFIG` (
CREATE TABLE `HZIMS_ALERT_DEFECT_CONFIG` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`ALERT_TYPE` BIGINT(4) NULL DEFAULT NULL COMMENT '告警类型', `ALERT_TYPE` BIGINT(4) NULL DEFAULT NULL COMMENT '告警类型',
`IS_OPEN` BIGINT(1) NULL DEFAULT NULL COMMENT '是否开启缺陷保存 : 0-关闭 1 - 开启', `IS_OPEN` BIGINT(1) NULL DEFAULT NULL COMMENT '是否开启缺陷保存 : 0-关闭 1 - 开启',
@ -488,8 +466,7 @@ CREATE TABLE `HZIMS_ALERT_DEFECT_CONFIG` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_ANALYZE_MODEL_STATION -- TABLE STRUCTURE FOR HZIMS_ANALYZE_MODEL_STATION
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_ANALYZE_MODEL_STATION`; CREATE TABLE IF NOT EXISTS `HZIMS_ANALYZE_MODEL_STATION` (
CREATE TABLE `HZIMS_ANALYZE_MODEL_STATION` (
`ID` BIGINT(64) NOT NULL COMMENT '主键ID', `ID` BIGINT(64) NOT NULL COMMENT '主键ID',
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID',
`STATION_ID` VARCHAR(30) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '站点ID', `STATION_ID` VARCHAR(30) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '站点ID',
@ -508,8 +485,7 @@ CREATE TABLE `HZIMS_ANALYZE_MODEL_STATION` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_APP_VERSION -- TABLE STRUCTURE FOR HZIMS_APP_VERSION
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_APP_VERSION`; CREATE TABLE IF NOT EXISTS `HZIMS_APP_VERSION` (
CREATE TABLE `HZIMS_APP_VERSION` (
`ID` VARCHAR(64) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NOT NULL COMMENT '主键', `ID` VARCHAR(64) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NOT NULL COMMENT '主键',
`VERSION_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '版本名称', `VERSION_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '版本名称',
`VERSION_CODE` INT(11) NOT NULL COMMENT '版本号', `VERSION_CODE` INT(11) NOT NULL COMMENT '版本号',
@ -531,8 +507,7 @@ CREATE TABLE `HZIMS_APP_VERSION` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_CONTROL_USERS -- TABLE STRUCTURE FOR HZIMS_CONTROL_USERS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_CONTROL_USERS`; CREATE TABLE IF NOT EXISTS `HZIMS_CONTROL_USERS` (
CREATE TABLE `HZIMS_CONTROL_USERS` (
`STATION_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '站点ID', `STATION_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '站点ID',
`USER_IDS` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '人员ID', `USER_IDS` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '人员ID',
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
@ -550,8 +525,7 @@ CREATE TABLE `HZIMS_CONTROL_USERS` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_DUTY_GROUP_GENERATING_CAPACITY -- TABLE STRUCTURE FOR HZIMS_DUTY_GROUP_GENERATING_CAPACITY
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_DUTY_GROUP_GENERATING_CAPACITY`; CREATE TABLE IF NOT EXISTS `HZIMS_DUTY_GROUP_GENERATING_CAPACITY` (
CREATE TABLE `HZIMS_DUTY_GROUP_GENERATING_CAPACITY` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`DUTY_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '班组机构', `DUTY_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '班组机构',
`DATE_TIME` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '年月', `DATE_TIME` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '年月',
@ -574,8 +548,7 @@ CREATE TABLE `HZIMS_DUTY_GROUP_GENERATING_CAPACITY` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FILL_GENERATE -- TABLE STRUCTURE FOR HZIMS_FILL_GENERATE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FILL_GENERATE`; CREATE TABLE IF NOT EXISTS `HZIMS_FILL_GENERATE` (
CREATE TABLE `HZIMS_FILL_GENERATE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点编号', `STATION_CODE` VARCHAR(255) 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 '站点名称', `STATION_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称',
@ -596,8 +569,7 @@ CREATE TABLE `HZIMS_FILL_GENERATE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FILL_OTHER -- TABLE STRUCTURE FOR HZIMS_FILL_OTHER
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FILL_OTHER`; CREATE TABLE IF NOT EXISTS `HZIMS_FILL_OTHER` (
CREATE TABLE `HZIMS_FILL_OTHER` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`START_DATE` DATE NULL DEFAULT NULL COMMENT '工作开始日期', `START_DATE` DATE NULL DEFAULT NULL COMMENT '工作开始日期',
`END_DATE` DATE NULL DEFAULT NULL COMMENT '工作结束日期', `END_DATE` DATE NULL DEFAULT NULL COMMENT '工作结束日期',
@ -617,8 +589,7 @@ CREATE TABLE `HZIMS_FILL_OTHER` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FILL_OVER -- TABLE STRUCTURE FOR HZIMS_FILL_OVER
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FILL_OVER`; CREATE TABLE IF NOT EXISTS `HZIMS_FILL_OVER` (
CREATE TABLE `HZIMS_FILL_OVER` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`START_DATE` DATE NULL DEFAULT NULL COMMENT '工作开始日期', `START_DATE` DATE NULL DEFAULT NULL COMMENT '工作开始日期',
`END_DATE` DATE NULL DEFAULT NULL COMMENT '工作结束日期', `END_DATE` DATE NULL DEFAULT NULL COMMENT '工作结束日期',
@ -639,8 +610,7 @@ CREATE TABLE `HZIMS_FILL_OVER` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FILL_OVER_CONFIG -- TABLE STRUCTURE FOR HZIMS_FILL_OVER_CONFIG
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FILL_OVER_CONFIG`; CREATE TABLE IF NOT EXISTS `HZIMS_FILL_OVER_CONFIG` (
CREATE TABLE `HZIMS_FILL_OVER_CONFIG` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`OVER_NAME` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '检修类型名称', `OVER_NAME` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '检修类型名称',
`UNIT_PRICE` DECIMAL(10, 2) NOT NULL DEFAULT 0.00 COMMENT '单价', `UNIT_PRICE` DECIMAL(10, 2) NOT NULL DEFAULT 0.00 COMMENT '单价',
@ -659,8 +629,7 @@ CREATE TABLE `HZIMS_FILL_OVER_CONFIG` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FILL_OVER_DETAILS -- TABLE STRUCTURE FOR HZIMS_FILL_OVER_DETAILS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FILL_OVER_DETAILS`; CREATE TABLE IF NOT EXISTS `HZIMS_FILL_OVER_DETAILS` (
CREATE TABLE `HZIMS_FILL_OVER_DETAILS` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`OVER_ID` BIGINT(20) NOT NULL COMMENT '检修填报ID', `OVER_ID` BIGINT(20) NOT NULL COMMENT '检修填报ID',
`OVER_CONFIG_ID` BIGINT(20) NOT NULL COMMENT '检修分类配置ID', `OVER_CONFIG_ID` BIGINT(20) NOT NULL COMMENT '检修分类配置ID',
@ -681,8 +650,7 @@ CREATE TABLE `HZIMS_FILL_OVER_DETAILS` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FILL_POWER -- TABLE STRUCTURE FOR HZIMS_FILL_POWER
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FILL_POWER`; CREATE TABLE IF NOT EXISTS `HZIMS_FILL_POWER` (
CREATE TABLE `HZIMS_FILL_POWER` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`MON` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '月份', `MON` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '月份',
`INSTALLED_CAPACITY` BIGINT(10) NULL DEFAULT 0 COMMENT '装机容量', `INSTALLED_CAPACITY` BIGINT(10) NULL DEFAULT 0 COMMENT '装机容量',
@ -708,8 +676,7 @@ CREATE TABLE `HZIMS_FILL_POWER` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FILL_RAINFALL -- TABLE STRUCTURE FOR HZIMS_FILL_RAINFALL
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FILL_RAINFALL`; CREATE TABLE IF NOT EXISTS `HZIMS_FILL_RAINFALL` (
CREATE TABLE `HZIMS_FILL_RAINFALL` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点编号', `STATION_CODE` VARCHAR(255) 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 '站点名称', `STATION_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称',
@ -729,8 +696,7 @@ CREATE TABLE `HZIMS_FILL_RAINFALL` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FILL_SOLVE -- TABLE STRUCTURE FOR HZIMS_FILL_SOLVE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FILL_SOLVE`; CREATE TABLE IF NOT EXISTS `HZIMS_FILL_SOLVE` (
CREATE TABLE `HZIMS_FILL_SOLVE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`SOLVE_DATE` DATE NULL DEFAULT NULL COMMENT '消缺日期', `SOLVE_DATE` DATE NULL DEFAULT NULL COMMENT '消缺日期',
`SOLVE_QUANTITY` BIGINT(10) NULL DEFAULT NULL COMMENT '消缺数量', `SOLVE_QUANTITY` BIGINT(10) NULL DEFAULT NULL COMMENT '消缺数量',
@ -749,8 +715,7 @@ CREATE TABLE `HZIMS_FILL_SOLVE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FILL_STORAGE -- TABLE STRUCTURE FOR HZIMS_FILL_STORAGE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FILL_STORAGE`; CREATE TABLE IF NOT EXISTS `HZIMS_FILL_STORAGE` (
CREATE TABLE `HZIMS_FILL_STORAGE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点编号', `STATION_CODE` VARCHAR(255) 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 '站点名称', `STATION_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称',
@ -770,8 +735,7 @@ CREATE TABLE `HZIMS_FILL_STORAGE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FILL_USE -- TABLE STRUCTURE FOR HZIMS_FILL_USE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FILL_USE`; CREATE TABLE IF NOT EXISTS `HZIMS_FILL_USE` (
CREATE TABLE `HZIMS_FILL_USE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点编号', `STATION_CODE` VARCHAR(255) 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 '站点名称', `STATION_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称',
@ -792,8 +756,7 @@ CREATE TABLE `HZIMS_FILL_USE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FILL_WIND -- TABLE STRUCTURE FOR HZIMS_FILL_WIND
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FILL_WIND`; CREATE TABLE IF NOT EXISTS `HZIMS_FILL_WIND` (
CREATE TABLE `HZIMS_FILL_WIND` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点编号', `STATION_CODE` VARCHAR(255) 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 '站点名称', `STATION_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称',
@ -822,8 +785,7 @@ CREATE TABLE `HZIMS_FILL_WIND` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FLV_VIDEO_CONFIG -- TABLE STRUCTURE FOR HZIMS_FLV_VIDEO_CONFIG
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FLV_VIDEO_CONFIG`; CREATE TABLE IF NOT EXISTS `HZIMS_FLV_VIDEO_CONFIG` (
CREATE TABLE `HZIMS_FLV_VIDEO_CONFIG` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '视频源名称', `NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '视频源名称',
`TIME` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '时间间隔', `TIME` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '时间间隔',
@ -845,8 +807,7 @@ CREATE TABLE `HZIMS_FLV_VIDEO_CONFIG` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_FOCUS_ATTRIBUTE -- TABLE STRUCTURE FOR HZIMS_FOCUS_ATTRIBUTE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_FOCUS_ATTRIBUTE`; CREATE TABLE IF NOT EXISTS `HZIMS_FOCUS_ATTRIBUTE` (
CREATE TABLE `HZIMS_FOCUS_ATTRIBUTE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`GROUP_ID` TINYINT(4) NOT NULL COMMENT '属性分组ID', `GROUP_ID` TINYINT(4) NOT NULL COMMENT '属性分组ID',
`GROUP_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '属性分组名称', `GROUP_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '属性分组名称',
@ -878,8 +839,7 @@ CREATE TABLE `HZIMS_FOCUS_ATTRIBUTE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_HISTORY_ABNORMAL_ALARM -- TABLE STRUCTURE FOR HZIMS_HISTORY_ABNORMAL_ALARM
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_HISTORY_ABNORMAL_ALARM`; CREATE TABLE IF NOT EXISTS `HZIMS_HISTORY_ABNORMAL_ALARM` (
CREATE TABLE `HZIMS_HISTORY_ABNORMAL_ALARM` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT 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 '站点名称', `STATION_NAME` VARCHAR(168) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称',
@ -903,8 +863,7 @@ CREATE TABLE `HZIMS_HISTORY_ABNORMAL_ALARM` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_HISTORY_LEVEL_ALARM -- TABLE STRUCTURE FOR HZIMS_HISTORY_LEVEL_ALARM
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_HISTORY_LEVEL_ALARM`; CREATE TABLE IF NOT EXISTS `HZIMS_HISTORY_LEVEL_ALARM` (
CREATE TABLE `HZIMS_HISTORY_LEVEL_ALARM` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT 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 '站点名称', `STATION_NAME` VARCHAR(168) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称',
@ -930,8 +889,7 @@ CREATE TABLE `HZIMS_HISTORY_LEVEL_ALARM` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_MAIN_WORK_BENCH -- TABLE STRUCTURE FOR HZIMS_MAIN_WORK_BENCH
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_MAIN_WORK_BENCH`; CREATE TABLE IF NOT EXISTS `HZIMS_MAIN_WORK_BENCH` (
CREATE TABLE `HZIMS_MAIN_WORK_BENCH` (
`ID` BIGINT(20) NOT NULL COMMENT '主键', `ID` BIGINT(20) NOT NULL COMMENT '主键',
`TYPE` SMALLINT(6) NULL DEFAULT NULL COMMENT '首页分类', `TYPE` SMALLINT(6) NULL DEFAULT NULL COMMENT '首页分类',
`REF_DOMAIN` SMALLINT(6) NULL DEFAULT NULL COMMENT '所属行业', `REF_DOMAIN` SMALLINT(6) NULL DEFAULT NULL COMMENT '所属行业',
@ -959,8 +917,7 @@ CREATE TABLE `HZIMS_MAIN_WORK_BENCH` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_MONTH_REPORT -- TABLE STRUCTURE FOR HZIMS_MONTH_REPORT
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_MONTH_REPORT`; CREATE TABLE IF NOT EXISTS `HZIMS_MONTH_REPORT` (
CREATE TABLE `HZIMS_MONTH_REPORT` (
`ID` BIGINT(20) NOT NULL COMMENT '主键', `ID` BIGINT(20) NOT NULL COMMENT '主键',
`MONTH` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '报表月份', `MONTH` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '报表月份',
`STATION_CODE` VARCHAR(32) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点编码', `STATION_CODE` VARCHAR(32) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点编码',
@ -980,8 +937,7 @@ CREATE TABLE `HZIMS_MONTH_REPORT` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_BASE_MATERIAL -- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_BASE_MATERIAL
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_ACCESS_BASE_MATERIAL`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_ACCESS_BASE_MATERIAL` (
CREATE TABLE `HZIMS_OPER_ACCESS_BASE_MATERIAL` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`NAME` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '名称', `NAME` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '名称',
`TYPE_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '类型', `TYPE_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '类型',
@ -1002,8 +958,7 @@ CREATE TABLE `HZIMS_OPER_ACCESS_BASE_MATERIAL` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_CONTENT -- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_CONTENT
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_ACCESS_CONTENT`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_ACCESS_CONTENT` (
CREATE TABLE `HZIMS_OPER_ACCESS_CONTENT` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`LIBRARY_ID` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '库ID', `LIBRARY_ID` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '库ID',
`PLAN_ID` BIGINT(20) NOT NULL COMMENT '计划ID', `PLAN_ID` BIGINT(20) NOT NULL COMMENT '计划ID',
@ -1033,8 +988,7 @@ CREATE TABLE `HZIMS_OPER_ACCESS_CONTENT` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_CONTENT_DETAIL -- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_CONTENT_DETAIL
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_ACCESS_CONTENT_DETAIL`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_ACCESS_CONTENT_DETAIL` (
CREATE TABLE `HZIMS_OPER_ACCESS_CONTENT_DETAIL` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`LIBRARY_DETAIL_ID` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '检修库明细ID', `LIBRARY_DETAIL_ID` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '检修库明细ID',
`CONTENT_ID` BIGINT(20) NOT NULL COMMENT '项目ID', `CONTENT_ID` BIGINT(20) NOT NULL COMMENT '项目ID',
@ -1054,8 +1008,7 @@ CREATE TABLE `HZIMS_OPER_ACCESS_CONTENT_DETAIL` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_LIBRARY -- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_LIBRARY
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_ACCESS_LIBRARY`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_ACCESS_LIBRARY` (
CREATE TABLE `HZIMS_OPER_ACCESS_LIBRARY` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`EM_CODE` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '设备编码', `EM_CODE` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '设备编码',
`GRADE_CODE` VARCHAR(40) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '检修等级', `GRADE_CODE` VARCHAR(40) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '检修等级',
@ -1079,8 +1032,7 @@ CREATE TABLE `HZIMS_OPER_ACCESS_LIBRARY` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_LIBRARY_DETAIL -- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_LIBRARY_DETAIL
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_ACCESS_LIBRARY_DETAIL`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_ACCESS_LIBRARY_DETAIL` (
CREATE TABLE `HZIMS_OPER_ACCESS_LIBRARY_DETAIL` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`PID` BIGINT(20) NOT NULL COMMENT '库ID', `PID` BIGINT(20) NOT NULL COMMENT '库ID',
`NAME` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '检修项目', `NAME` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '检修项目',
@ -1099,8 +1051,7 @@ CREATE TABLE `HZIMS_OPER_ACCESS_LIBRARY_DETAIL` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_MATERIAL -- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_MATERIAL
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_ACCESS_MATERIAL`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_ACCESS_MATERIAL` (
CREATE TABLE `HZIMS_OPER_ACCESS_MATERIAL` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`MATERIAL_ID` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '材料ID', `MATERIAL_ID` BIGINT(20) NOT NULL DEFAULT 0 COMMENT '材料ID',
`SP_BASIC_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '台账ID', `SP_BASIC_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '台账ID',
@ -1130,8 +1081,7 @@ CREATE TABLE `HZIMS_OPER_ACCESS_MATERIAL` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_PLAN -- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_PLAN
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_ACCESS_PLAN`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_ACCESS_PLAN` (
CREATE TABLE `HZIMS_OPER_ACCESS_PLAN` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`PROC_DEF_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '工作流KEY', `PROC_DEF_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '工作流KEY',
`PROCESS_INSTANCE_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT '' COMMENT '工作流实例', `PROCESS_INSTANCE_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT '' COMMENT '工作流实例',
@ -1168,8 +1118,7 @@ CREATE TABLE `HZIMS_OPER_ACCESS_PLAN` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_STATISTICS -- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_STATISTICS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_ACCESS_STATISTICS`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_ACCESS_STATISTICS` (
CREATE TABLE `HZIMS_OPER_ACCESS_STATISTICS` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`PID` BIGINT(20) NULL DEFAULT NULL COMMENT '库ID', `PID` BIGINT(20) NULL DEFAULT NULL COMMENT '库ID',
`TASK_ID` BIGINT(20) NOT NULL COMMENT '任务ID', `TASK_ID` BIGINT(20) NOT NULL COMMENT '任务ID',
@ -1195,8 +1144,7 @@ CREATE TABLE `HZIMS_OPER_ACCESS_STATISTICS` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_TASK -- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_TASK
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_ACCESS_TASK`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_ACCESS_TASK` (
CREATE TABLE `HZIMS_OPER_ACCESS_TASK` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`EM_CODE` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备编码', `EM_CODE` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备编码',
`PROCESS_INSTANCE_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作流实例', `PROCESS_INSTANCE_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作流实例',
@ -1233,8 +1181,7 @@ CREATE TABLE `HZIMS_OPER_ACCESS_TASK` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_TASK_DETAIL -- TABLE STRUCTURE FOR HZIMS_OPER_ACCESS_TASK_DETAIL
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_ACCESS_TASK_DETAIL`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_ACCESS_TASK_DETAIL` (
CREATE TABLE `HZIMS_OPER_ACCESS_TASK_DETAIL` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`TASK_ID` BIGINT(20) NOT NULL COMMENT '任务ID', `TASK_ID` BIGINT(20) NOT NULL COMMENT '任务ID',
`NAME` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '任务名称', `NAME` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '任务名称',
@ -1254,8 +1201,7 @@ CREATE TABLE `HZIMS_OPER_ACCESS_TASK_DETAIL` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_APPEARANCE -- TABLE STRUCTURE FOR HZIMS_OPER_APPEARANCE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_APPEARANCE`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_APPEARANCE` (
CREATE TABLE `HZIMS_OPER_APPEARANCE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`DEFECT_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '缺陷编码', `DEFECT_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '缺陷编码',
`SOURCE_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '问题来源:01:值班管理,02:日常维护,03:巡检管理,04:检修管理,05:智能诊断', `SOURCE_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '问题来源:01:值班管理,02:日常维护,03:巡检管理,04:检修管理,05:智能诊断',
@ -1290,8 +1236,7 @@ CREATE TABLE `HZIMS_OPER_APPEARANCE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_DEFECT -- TABLE STRUCTURE FOR HZIMS_OPER_DEFECT
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_DEFECT`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_DEFECT` (
CREATE TABLE `HZIMS_OPER_DEFECT` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`DEFECT_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '缺陷编码', `DEFECT_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '缺陷编码',
`PROC_DEF_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '处理流程KEY', `PROC_DEF_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '处理流程KEY',
@ -1335,8 +1280,7 @@ CREATE TABLE `HZIMS_OPER_DEFECT` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_DEFECT_STATISTICS -- TABLE STRUCTURE FOR HZIMS_OPER_DEFECT_STATISTICS
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_DEFECT_STATISTICS`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_DEFECT_STATISTICS` (
CREATE TABLE `HZIMS_OPER_DEFECT_STATISTICS` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`DEFECT_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '缺陷编码', `DEFECT_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '缺陷编码',
`SOURCE_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '问题来源:01:值班管理,02:日常维护,03:巡检管理,04:检修管理,05:智能诊断', `SOURCE_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '问题来源:01:值班管理,02:日常维护,03:巡检管理,04:检修管理,05:智能诊断',
@ -1395,8 +1339,7 @@ CREATE TABLE `HZIMS_OPER_DEFECT_STATISTICS` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_FAULT -- TABLE STRUCTURE FOR HZIMS_OPER_FAULT
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_FAULT`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_FAULT` (
CREATE TABLE `HZIMS_OPER_FAULT` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`MODEL_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '设备模型ID来源于数据平台的设备模型作为设备类型', `MODEL_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '设备模型ID来源于数据平台的设备模型作为设备类型',
`FAULT_CODE` VARCHAR(40) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '故障编号', `FAULT_CODE` VARCHAR(40) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '故障编号',
@ -1424,8 +1367,7 @@ CREATE TABLE `HZIMS_OPER_FAULT` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_MAINTENANCE_LIBRARY -- TABLE STRUCTURE FOR HZIMS_OPER_MAINTENANCE_LIBRARY
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_MAINTENANCE_LIBRARY`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_MAINTENANCE_LIBRARY` (
CREATE TABLE `HZIMS_OPER_MAINTENANCE_LIBRARY` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`LIBRARY_CODE` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL, `LIBRARY_CODE` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL,
`PROC_DEF_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '流程KEY', `PROC_DEF_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '流程KEY',
@ -1464,8 +1406,7 @@ CREATE TABLE `HZIMS_OPER_MAINTENANCE_LIBRARY` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_MAINTENANCE_PARAMETER -- TABLE STRUCTURE FOR HZIMS_OPER_MAINTENANCE_PARAMETER
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_MAINTENANCE_PARAMETER`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_MAINTENANCE_PARAMETER` (
CREATE TABLE `HZIMS_OPER_MAINTENANCE_PARAMETER` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`EM_CODE` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL DEFAULT '' COMMENT '设备编码', `EM_CODE` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL DEFAULT '' COMMENT '设备编码',
`REF_LIBRARY_ID` BIGINT(20) NOT NULL COMMENT '维护项目', `REF_LIBRARY_ID` BIGINT(20) NOT NULL COMMENT '维护项目',
@ -1495,8 +1436,7 @@ CREATE TABLE `HZIMS_OPER_MAINTENANCE_PARAMETER` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_MAINTENANCE_PLAN -- TABLE STRUCTURE FOR HZIMS_OPER_MAINTENANCE_PLAN
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_MAINTENANCE_PLAN`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_MAINTENANCE_PLAN` (
CREATE TABLE `HZIMS_OPER_MAINTENANCE_PLAN` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`EM_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL DEFAULT '' COMMENT '设备编码', `EM_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL DEFAULT '' COMMENT '设备编码',
`TYPE_CODE` CHAR(2) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '维护类型 01=定期试验 02=定期保养 03=定期操作 04=其他', `TYPE_CODE` CHAR(2) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '维护类型 01=定期试验 02=定期保养 03=定期操作 04=其他',
@ -1533,8 +1473,7 @@ CREATE TABLE `HZIMS_OPER_MAINTENANCE_PLAN` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_MAINTENANCE_TASK -- TABLE STRUCTURE FOR HZIMS_OPER_MAINTENANCE_TASK
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_MAINTENANCE_TASK`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_MAINTENANCE_TASK` (
CREATE TABLE `HZIMS_OPER_MAINTENANCE_TASK` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`EM_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL DEFAULT '' COMMENT '设备编码', `EM_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL DEFAULT '' COMMENT '设备编码',
`TYPE_CODE` CHAR(2) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '维护类型 01=定期试验 02=定期保养 03=定期操作 04=其他', `TYPE_CODE` CHAR(2) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '维护类型 01=定期试验 02=定期保养 03=定期操作 04=其他',
@ -1587,8 +1526,7 @@ CREATE TABLE `HZIMS_OPER_MAINTENANCE_TASK` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_OPER_PHENOMENON -- TABLE STRUCTURE FOR HZIMS_OPER_PHENOMENON
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_OPER_PHENOMENON`; CREATE TABLE IF NOT EXISTS `HZIMS_OPER_PHENOMENON` (
CREATE TABLE `HZIMS_OPER_PHENOMENON` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`DEFECT_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '缺陷编码', `DEFECT_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '缺陷编码',
`SOURCE_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '问题来源:01:值班管理,02:日常维护,03:巡检管理,04:检修管理,05:智能诊断', `SOURCE_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '问题来源:01:值班管理,02:日常维护,03:巡检管理,04:检修管理,05:智能诊断',
@ -1658,8 +1596,7 @@ CREATE TABLE `HZIMS_OPER_PHENOMENON` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_STATION -- TABLE STRUCTURE FOR HZIMS_STATION
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_STATION`; CREATE TABLE IF NOT EXISTS `HZIMS_STATION` (
CREATE TABLE `HZIMS_STATION` (
`ID` BIGINT(20) NOT NULL COMMENT '主键', `ID` BIGINT(20) NOT NULL COMMENT '主键',
`REF_DOMAIN` SMALLINT(6) NULL DEFAULT 1 COMMENT '所属行业(来源于字典表如水电)', `REF_DOMAIN` SMALLINT(6) NULL DEFAULT 1 COMMENT '所属行业(来源于字典表如水电)',
`REF_BASIN` SMALLINT(6) NULL DEFAULT NULL COMMENT '所属流域(来源于字典表如长江流域)', `REF_BASIN` SMALLINT(6) NULL DEFAULT NULL COMMENT '所属流域(来源于字典表如长江流域)',
@ -1705,8 +1642,7 @@ CREATE TABLE `HZIMS_STATION` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_STATION_ATTRIBUTE -- TABLE STRUCTURE FOR HZIMS_STATION_ATTRIBUTE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_STATION_ATTRIBUTE`; CREATE TABLE IF NOT EXISTS `HZIMS_STATION_ATTRIBUTE` (
CREATE TABLE `HZIMS_STATION_ATTRIBUTE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_ID` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID', `STATION_ID` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID',
`STATION_NAME` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称', `STATION_NAME` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称',
@ -1746,8 +1682,7 @@ CREATE TABLE `HZIMS_STATION_ATTRIBUTE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_STATION_ATTRIBUTE_CONFIG -- TABLE STRUCTURE FOR HZIMS_STATION_ATTRIBUTE_CONFIG
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_STATION_ATTRIBUTE_CONFIG`; CREATE TABLE IF NOT EXISTS `HZIMS_STATION_ATTRIBUTE_CONFIG` (
CREATE TABLE `HZIMS_STATION_ATTRIBUTE_CONFIG` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_ID` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID', `STATION_ID` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID',
`STATION_NAME` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称', `STATION_NAME` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点名称',
@ -1773,8 +1708,7 @@ CREATE TABLE `HZIMS_STATION_ATTRIBUTE_CONFIG` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_STATION_PUSH_CONFIGURATION -- TABLE STRUCTURE FOR HZIMS_STATION_PUSH_CONFIGURATION
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_STATION_PUSH_CONFIGURATION`; CREATE TABLE IF NOT EXISTS `HZIMS_STATION_PUSH_CONFIGURATION` (
CREATE TABLE `HZIMS_STATION_PUSH_CONFIGURATION` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_TYPE` TINYINT(2) NULL DEFAULT NULL COMMENT '站点类型', `STATION_TYPE` TINYINT(2) NULL DEFAULT NULL COMMENT '站点类型',
`STATION_TYPE_NAME` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点类型名称', `STATION_TYPE_NAME` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点类型名称',
@ -1794,8 +1728,7 @@ CREATE TABLE `HZIMS_STATION_PUSH_CONFIGURATION` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_STATION_USER -- TABLE STRUCTURE FOR HZIMS_STATION_USER
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_STATION_USER`; CREATE TABLE IF NOT EXISTS `HZIMS_STATION_USER` (
CREATE TABLE `HZIMS_STATION_USER` (
`ID` BIGINT(20) NOT NULL COMMENT '主键', `ID` BIGINT(20) NOT NULL COMMENT '主键',
`STATION_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '站点编码', `STATION_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '站点编码',
`USER_ID` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '用户ID', `USER_ID` VARCHAR(200) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '用户ID',
@ -1813,8 +1746,7 @@ CREATE TABLE `HZIMS_STATION_USER` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_STATION_VIDEO_TYPE -- TABLE STRUCTURE FOR HZIMS_STATION_VIDEO_TYPE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_STATION_VIDEO_TYPE`; CREATE TABLE IF NOT EXISTS `HZIMS_STATION_VIDEO_TYPE` (
CREATE TABLE `HZIMS_STATION_VIDEO_TYPE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '视频源名称', `NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '视频源名称',
`STATION_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID', `STATION_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID',
@ -1844,8 +1776,7 @@ CREATE TABLE `HZIMS_STATION_VIDEO_TYPE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_UNIT_RUNNING_TIME -- TABLE STRUCTURE FOR HZIMS_UNIT_RUNNING_TIME
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_UNIT_RUNNING_TIME`; CREATE TABLE IF NOT EXISTS `HZIMS_UNIT_RUNNING_TIME` (
CREATE TABLE `HZIMS_UNIT_RUNNING_TIME` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID', `STATION_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID',
`EM_CODE` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备CODE', `EM_CODE` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备CODE',
@ -1865,8 +1796,7 @@ CREATE TABLE `HZIMS_UNIT_RUNNING_TIME` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_USER_DEPT -- TABLE STRUCTURE FOR HZIMS_USER_DEPT
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_USER_DEPT`; CREATE TABLE IF NOT EXISTS `HZIMS_USER_DEPT` (
CREATE TABLE `HZIMS_USER_DEPT` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`USER_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '用户ID', `USER_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '用户ID',
`DEPT_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '机构ID', `DEPT_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '机构ID',
@ -1884,8 +1814,7 @@ CREATE TABLE `HZIMS_USER_DEPT` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_USER_FEEDBACK -- TABLE STRUCTURE FOR HZIMS_USER_FEEDBACK
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_USER_FEEDBACK`; CREATE TABLE IF NOT EXISTS `HZIMS_USER_FEEDBACK` (
CREATE TABLE `HZIMS_USER_FEEDBACK` (
`ID` BIGINT(20) NOT NULL COMMENT '主键', `ID` BIGINT(20) NOT NULL COMMENT '主键',
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID',
`PHONE` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '联系电话', `PHONE` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '联系电话',
@ -1907,8 +1836,7 @@ CREATE TABLE `HZIMS_USER_FEEDBACK` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR IMS_DEPT -- TABLE STRUCTURE FOR IMS_DEPT
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `IMS_DEPT`; CREATE TABLE IF NOT EXISTS `IMS_DEPT` (
CREATE TABLE `IMS_DEPT` (
`ID` BIGINT(64) NOT NULL COMMENT '主键', `ID` BIGINT(64) NOT NULL COMMENT '主键',
`TENANT_ID` VARCHAR(12) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT '200000' COMMENT '租户ID', `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT '200000' COMMENT '租户ID',
`DEPT_TYPE` SMALLINT(6) NULL DEFAULT NULL COMMENT '机构类型', `DEPT_TYPE` SMALLINT(6) NULL DEFAULT NULL COMMENT '机构类型',
@ -1932,8 +1860,7 @@ CREATE TABLE `IMS_DEPT` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR RUN_MONTH_REPORT -- TABLE STRUCTURE FOR RUN_MONTH_REPORT
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `RUN_MONTH_REPORT`; CREATE TABLE IF NOT EXISTS `RUN_MONTH_REPORT` (
CREATE TABLE `RUN_MONTH_REPORT` (
`ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键', `ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`STATION_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID', `STATION_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '站点ID',
`PARAM` LONGTEXT CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL COMMENT '数据内容', `PARAM` LONGTEXT CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL COMMENT '数据内容',
@ -1944,8 +1871,7 @@ CREATE TABLE `RUN_MONTH_REPORT` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR SCREEN_MAIN_PAGE_CONFIGURE -- TABLE STRUCTURE FOR SCREEN_MAIN_PAGE_CONFIGURE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `SCREEN_MAIN_PAGE_CONFIGURE`; CREATE TABLE IF NOT EXISTS `SCREEN_MAIN_PAGE_CONFIGURE` (
CREATE TABLE `SCREEN_MAIN_PAGE_CONFIGURE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键', `ID` BIGINT(20) NOT NULL COMMENT '主键',
`NAME` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '首页名称', `NAME` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '首页名称',
`PATH` VARCHAR(1000) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '页面路径', `PATH` VARCHAR(1000) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '页面路径',
@ -1967,8 +1893,7 @@ CREATE TABLE `SCREEN_MAIN_PAGE_CONFIGURE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR TEMP_HIK_POINT -- TABLE STRUCTURE FOR TEMP_HIK_POINT
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `TEMP_HIK_POINT`; CREATE TABLE IF NOT EXISTS `TEMP_HIK_POINT` (
CREATE TABLE `TEMP_HIK_POINT` (
`ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`POINTCODE` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL, `POINTCODE` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL,
`POINTNAME` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL, `POINTNAME` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL,

66
hzims-service/ticket/src/main/resources/db/1.0.0.sql

@ -1,8 +1,7 @@
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR BLADE_MODULE_VERSION -- TABLE STRUCTURE FOR BLADE_MODULE_VERSION
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `BLADE_MODULE_VERSION`; CREATE TABLE IF NOT EXISTS `BLADE_MODULE_VERSION` (
CREATE TABLE `BLADE_MODULE_VERSION` (
`MODULE_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL, `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, `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, `HISTORY` VARCHAR(300) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL,
@ -12,8 +11,7 @@ CREATE TABLE `BLADE_MODULE_VERSION` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_REPAIR -- TABLE STRUCTURE FOR HZIMS_REPAIR
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_REPAIR`; CREATE TABLE IF NOT EXISTS `HZIMS_REPAIR` (
CREATE TABLE `HZIMS_REPAIR` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`EM_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备CODE', `EM_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备CODE',
`NUMBER` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '编号', `NUMBER` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '编号',
@ -51,8 +49,7 @@ CREATE TABLE `HZIMS_REPAIR` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_STANDARD_TICKET_INFO -- TABLE STRUCTURE FOR HZIMS_STANDARD_TICKET_INFO
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_STANDARD_TICKET_INFO`; CREATE TABLE IF NOT EXISTS `HZIMS_STANDARD_TICKET_INFO` (
CREATE TABLE `HZIMS_STANDARD_TICKET_INFO` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`COMPANY` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '单位', `COMPANY` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '单位',
`PROCESS_INSTANCE_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作流ID', `PROCESS_INSTANCE_ID` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作流ID',
@ -99,8 +96,7 @@ CREATE TABLE `HZIMS_STANDARD_TICKET_INFO` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_STANDARD_TICKET_MEASURE -- TABLE STRUCTURE FOR HZIMS_STANDARD_TICKET_MEASURE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_STANDARD_TICKET_MEASURE`; CREATE TABLE IF NOT EXISTS `HZIMS_STANDARD_TICKET_MEASURE` (
CREATE TABLE `HZIMS_STANDARD_TICKET_MEASURE` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`TICKET_ID` BIGINT(20) NOT NULL COMMENT '标准票ID', `TICKET_ID` BIGINT(20) NOT NULL COMMENT '标准票ID',
`MEASURE_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '安全措施ID', `MEASURE_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '安全措施ID',
@ -126,8 +122,7 @@ CREATE TABLE `HZIMS_STANDARD_TICKET_MEASURE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_TICKET_COUNT -- TABLE STRUCTURE FOR HZIMS_TICKET_COUNT
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_TICKET_COUNT`; CREATE TABLE IF NOT EXISTS `HZIMS_TICKET_COUNT` (
CREATE TABLE `HZIMS_TICKET_COUNT` (
`ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`DATE_TIME` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '日期', `DATE_TIME` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '日期',
`DEPT_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '站点ID', `DEPT_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '站点ID',
@ -154,8 +149,7 @@ CREATE TABLE `HZIMS_TICKET_COUNT` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_TICKET_INFO_DANGER -- TABLE STRUCTURE FOR HZIMS_TICKET_INFO_DANGER
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_TICKET_INFO_DANGER`; CREATE TABLE IF NOT EXISTS `HZIMS_TICKET_INFO_DANGER` (
CREATE TABLE `HZIMS_TICKET_INFO_DANGER` (
`ID` BIGINT(20) NULL DEFAULT NULL COMMENT '编号', `ID` BIGINT(20) NULL DEFAULT NULL COMMENT '编号',
`TICKET_ID` BIGINT(20) NULL DEFAULT NULL, `TICKET_ID` BIGINT(20) NULL DEFAULT NULL,
`DANGEROUS_POINT` VARCHAR(500) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '危险点', `DANGEROUS_POINT` VARCHAR(500) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '危险点',
@ -168,8 +162,7 @@ CREATE TABLE `HZIMS_TICKET_INFO_DANGER` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_TICKET_INFO_EVALUATE -- TABLE STRUCTURE FOR HZIMS_TICKET_INFO_EVALUATE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_TICKET_INFO_EVALUATE`; CREATE TABLE IF NOT EXISTS `HZIMS_TICKET_INFO_EVALUATE` (
CREATE TABLE `HZIMS_TICKET_INFO_EVALUATE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TICKET_ID` BIGINT(20) NOT NULL COMMENT '票据ID', `TICKET_ID` BIGINT(20) NOT NULL COMMENT '票据ID',
`EVALUATE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '评价内容', `EVALUATE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '评价内容',
@ -187,8 +180,7 @@ CREATE TABLE `HZIMS_TICKET_INFO_EVALUATE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_TICKET_INFO_STATISTIC -- TABLE STRUCTURE FOR HZIMS_TICKET_INFO_STATISTIC
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_TICKET_INFO_STATISTIC`; CREATE TABLE IF NOT EXISTS `HZIMS_TICKET_INFO_STATISTIC` (
CREATE TABLE `HZIMS_TICKET_INFO_STATISTIC` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`DATE_TIME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '日期', `DATE_TIME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '日期',
`TICKET_INFO_TYPE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '票据类型', `TICKET_INFO_TYPE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '票据类型',
@ -211,8 +203,7 @@ CREATE TABLE `HZIMS_TICKET_INFO_STATISTIC` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_TICKET_MATTER_GROUP -- TABLE STRUCTURE FOR HZIMS_TICKET_MATTER_GROUP
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_TICKET_MATTER_GROUP`; CREATE TABLE IF NOT EXISTS `HZIMS_TICKET_MATTER_GROUP` (
CREATE TABLE `HZIMS_TICKET_MATTER_GROUP` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TICKET_TYPE` VARCHAR(4) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '票据类型', `TICKET_TYPE` VARCHAR(4) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '票据类型',
`NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '名称', `NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '名称',
@ -230,8 +221,7 @@ CREATE TABLE `HZIMS_TICKET_MATTER_GROUP` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_TICKET_WORK_CONTENT -- TABLE STRUCTURE FOR HZIMS_TICKET_WORK_CONTENT
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_TICKET_WORK_CONTENT`; CREATE TABLE IF NOT EXISTS `HZIMS_TICKET_WORK_CONTENT` (
CREATE TABLE `HZIMS_TICKET_WORK_CONTENT` (
`ID` BIGINT(20) NOT NULL COMMENT '主键', `ID` BIGINT(20) NOT NULL COMMENT '主键',
`TICKET_ID` BIGINT(20) NOT NULL COMMENT '票据ID', `TICKET_ID` BIGINT(20) NOT NULL COMMENT '票据ID',
`ADDRESS` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作地点或地段', `ADDRESS` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作地点或地段',
@ -250,8 +240,7 @@ CREATE TABLE `HZIMS_TICKET_WORK_CONTENT` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_TICKET_WORK_CONTENT_TEMPLATE -- TABLE STRUCTURE FOR HZIMS_TICKET_WORK_CONTENT_TEMPLATE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_TICKET_WORK_CONTENT_TEMPLATE`; CREATE TABLE IF NOT EXISTS `HZIMS_TICKET_WORK_CONTENT_TEMPLATE` (
CREATE TABLE `HZIMS_TICKET_WORK_CONTENT_TEMPLATE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键', `ID` BIGINT(20) NOT NULL COMMENT '主键',
`TEMPLATE_ID` BIGINT(20) NOT NULL COMMENT '票据ID', `TEMPLATE_ID` BIGINT(20) NOT NULL COMMENT '票据ID',
`ADDRESS` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作地点或地段', `ADDRESS` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作地点或地段',
@ -270,8 +259,7 @@ CREATE TABLE `HZIMS_TICKET_WORK_CONTENT_TEMPLATE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_TWO_TICKET_MATTER_LIBRARY -- TABLE STRUCTURE FOR HZIMS_TWO_TICKET_MATTER_LIBRARY
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_TWO_TICKET_MATTER_LIBRARY`; CREATE TABLE IF NOT EXISTS `HZIMS_TWO_TICKET_MATTER_LIBRARY` (
CREATE TABLE `HZIMS_TWO_TICKET_MATTER_LIBRARY` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TYPE` VARCHAR(4) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '操作事项类型', `TYPE` VARCHAR(4) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '操作事项类型',
`MATTER_GROUP` BIGINT(50) NULL DEFAULT NULL COMMENT '操作事项分组', `MATTER_GROUP` BIGINT(50) NULL DEFAULT NULL COMMENT '操作事项分组',
@ -292,8 +280,7 @@ CREATE TABLE `HZIMS_TWO_TICKET_MATTER_LIBRARY` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_DELAY -- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_DELAY
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_WORK_TICKET_DELAY`; CREATE TABLE IF NOT EXISTS `HZIMS_WORK_TICKET_DELAY` (
CREATE TABLE `HZIMS_WORK_TICKET_DELAY` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TICKET_ID` BIGINT(20) NOT NULL COMMENT '工作票ID', `TICKET_ID` BIGINT(20) NOT NULL COMMENT '工作票ID',
`FLOW_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '工作票流程ID', `FLOW_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '工作票流程ID',
@ -317,8 +304,7 @@ CREATE TABLE `HZIMS_WORK_TICKET_DELAY` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_FINISH -- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_FINISH
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_WORK_TICKET_FINISH`; CREATE TABLE IF NOT EXISTS `HZIMS_WORK_TICKET_FINISH` (
CREATE TABLE `HZIMS_WORK_TICKET_FINISH` (
`ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '编号', `ID` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
`TICKET_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '工作票编号', `TICKET_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '工作票编号',
`TEMP_GROUND_NUM` INT(11) NULL DEFAULT NULL COMMENT '临时接地线', `TEMP_GROUND_NUM` INT(11) NULL DEFAULT NULL COMMENT '临时接地线',
@ -345,8 +331,7 @@ CREATE TABLE `HZIMS_WORK_TICKET_FINISH` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_FLOW -- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_FLOW
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_WORK_TICKET_FLOW`; CREATE TABLE IF NOT EXISTS `HZIMS_WORK_TICKET_FLOW` (
CREATE TABLE `HZIMS_WORK_TICKET_FLOW` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TICKET_ID` BIGINT(20) NOT NULL COMMENT '工作票ID', `TICKET_ID` BIGINT(20) NOT NULL COMMENT '工作票ID',
`FLOW_CODE` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '流程CODE', `FLOW_CODE` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '流程CODE',
@ -376,8 +361,7 @@ CREATE TABLE `HZIMS_WORK_TICKET_FLOW` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_INFO -- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_INFO
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_WORK_TICKET_INFO`; CREATE TABLE IF NOT EXISTS `HZIMS_WORK_TICKET_INFO` (
CREATE TABLE `HZIMS_WORK_TICKET_INFO` (
`ID` BIGINT(20) NOT NULL COMMENT '主键', `ID` BIGINT(20) NOT NULL COMMENT '主键',
`EM_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备名称', `EM_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备名称',
`EM_NAME` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备名称', `EM_NAME` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备名称',
@ -455,8 +439,7 @@ CREATE TABLE `HZIMS_WORK_TICKET_INFO` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_MEASURE_TEMPLATE -- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_MEASURE_TEMPLATE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_WORK_TICKET_MEASURE_TEMPLATE`; CREATE TABLE IF NOT EXISTS `HZIMS_WORK_TICKET_MEASURE_TEMPLATE` (
CREATE TABLE `HZIMS_WORK_TICKET_MEASURE_TEMPLATE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TEMPLATE_ID` BIGINT(20) NOT NULL COMMENT '工作票模板(检修计划)ID', `TEMPLATE_ID` BIGINT(20) NOT NULL COMMENT '工作票模板(检修计划)ID',
`MEASURE_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '安全措施ID', `MEASURE_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '安全措施ID',
@ -479,8 +462,7 @@ CREATE TABLE `HZIMS_WORK_TICKET_MEASURE_TEMPLATE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_MEMBERS_CHANGE -- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_MEMBERS_CHANGE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_WORK_TICKET_MEMBERS_CHANGE`; CREATE TABLE IF NOT EXISTS `HZIMS_WORK_TICKET_MEMBERS_CHANGE` (
CREATE TABLE `HZIMS_WORK_TICKET_MEMBERS_CHANGE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TICKET_ID` BIGINT(20) NOT NULL COMMENT '工作票ID', `TICKET_ID` BIGINT(20) NOT NULL COMMENT '工作票ID',
`FLOW_CODE` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '发生流程', `FLOW_CODE` VARCHAR(20) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '发生流程',
@ -500,8 +482,7 @@ CREATE TABLE `HZIMS_WORK_TICKET_MEMBERS_CHANGE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_OPERATE_TIME -- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_OPERATE_TIME
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_WORK_TICKET_OPERATE_TIME`; CREATE TABLE IF NOT EXISTS `HZIMS_WORK_TICKET_OPERATE_TIME` (
CREATE TABLE `HZIMS_WORK_TICKET_OPERATE_TIME` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TICKET_ID` BIGINT(20) NOT NULL COMMENT '工作票ID', `TICKET_ID` BIGINT(20) NOT NULL COMMENT '工作票ID',
`START_TIME` DATETIME NULL DEFAULT NULL COMMENT '开始时间', `START_TIME` DATETIME NULL DEFAULT NULL COMMENT '开始时间',
@ -524,8 +505,7 @@ CREATE TABLE `HZIMS_WORK_TICKET_OPERATE_TIME` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_PRINCIPAL_CHANGE -- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_PRINCIPAL_CHANGE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_WORK_TICKET_PRINCIPAL_CHANGE`; CREATE TABLE IF NOT EXISTS `HZIMS_WORK_TICKET_PRINCIPAL_CHANGE` (
CREATE TABLE `HZIMS_WORK_TICKET_PRINCIPAL_CHANGE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TICKET_ID` BIGINT(20) NOT NULL COMMENT '工作票ID', `TICKET_ID` BIGINT(20) NOT NULL COMMENT '工作票ID',
`FLOW_CODE` BIGINT(255) NOT NULL COMMENT '发生流程', `FLOW_CODE` BIGINT(255) NOT NULL COMMENT '发生流程',
@ -546,8 +526,7 @@ CREATE TABLE `HZIMS_WORK_TICKET_PRINCIPAL_CHANGE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_SAFETY_MEASURE -- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_SAFETY_MEASURE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_WORK_TICKET_SAFETY_MEASURE`; CREATE TABLE IF NOT EXISTS `HZIMS_WORK_TICKET_SAFETY_MEASURE` (
CREATE TABLE `HZIMS_WORK_TICKET_SAFETY_MEASURE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`TICKET_ID` BIGINT(20) NOT NULL COMMENT '工作票ID', `TICKET_ID` BIGINT(20) NOT NULL COMMENT '工作票ID',
`MEASURE_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '安全措施ID', `MEASURE_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '安全措施ID',
@ -577,8 +556,7 @@ CREATE TABLE `HZIMS_WORK_TICKET_SAFETY_MEASURE` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_TEMPLATE -- TABLE STRUCTURE FOR HZIMS_WORK_TICKET_TEMPLATE
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_WORK_TICKET_TEMPLATE`; CREATE TABLE IF NOT EXISTS `HZIMS_WORK_TICKET_TEMPLATE` (
CREATE TABLE `HZIMS_WORK_TICKET_TEMPLATE` (
`ID` BIGINT(20) NOT NULL COMMENT '主键', `ID` BIGINT(20) NOT NULL COMMENT '主键',
`EM_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备名称', `EM_CODE` VARCHAR(50) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备名称',
`EM_NAME` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备名称', `EM_NAME` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '设备名称',

7
hzims-service/weather/src/main/resources/db/1.0.0.sql

@ -1,9 +1,7 @@
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR BLADE_MODULE_VERSION -- TABLE STRUCTURE FOR BLADE_MODULE_VERSION
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `BLADE_MODULE_VERSION`; CREATE TABLE IF NOT EXISTS `BLADE_MODULE_VERSION` (
CREATE TABLE `BLADE_MODULE_VERSION` (
`MODULE_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL, `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, `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, `HISTORY` VARCHAR(300) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL,
@ -13,8 +11,7 @@ CREATE TABLE `BLADE_MODULE_VERSION` (
-- ---------------------------- -- ----------------------------
-- TABLE STRUCTURE FOR HZIMS_HE_WEATHER_DAILY -- TABLE STRUCTURE FOR HZIMS_HE_WEATHER_DAILY
-- ---------------------------- -- ----------------------------
DROP TABLE IF EXISTS `HZIMS_HE_WEATHER_DAILY`; CREATE TABLE IF NOT EXISTS `HZIMS_HE_WEATHER_DAILY` (
CREATE TABLE `HZIMS_HE_WEATHER_DAILY` (
`ID` BIGINT(20) NOT NULL, `ID` BIGINT(20) NOT NULL,
`STATION_CODE` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '站点编码', `STATION_CODE` VARCHAR(100) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NOT NULL COMMENT '站点编码',
`DEPT_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '机构ID', `DEPT_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '机构ID',

Loading…
Cancel
Save