Browse Source

#初始sql

zhongwei
yang_shj 8 months ago
parent
commit
da5f54459b
  1. 56
      hzims-service/operational/src/main/resources/db/2.0.2.sql

56
hzims-service/operational/src/main/resources/db/2.0.2.sql

@ -28,6 +28,24 @@ CREATE TABLE IF NOT EXISTS `HZIMS_OPER_CONSTRUCTION` (
PRIMARY KEY (`ID`) USING BTREE PRIMARY KEY (`ID`) USING BTREE
) ENGINE = INNODB CHARACTER SET = UTF8MB4 COLLATE = UTF8MB4_GENERAL_CI ROW_FORMAT = DYNAMIC; ) ENGINE = INNODB CHARACTER SET = UTF8MB4 COLLATE = UTF8MB4_GENERAL_CI ROW_FORMAT = DYNAMIC;
CREATE TABLE IF NOT EXISTS `HZIMS_AREA_MAP_CONFIG` (
`ID` BIGINT(20) UNSIGNED ZEROFILL NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`AREA_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '区域机构ID',
`MAP_CODE` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '地图编码',
`MAP_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 COMMENT '是否删除',
`STATUS` TINYINT(4) NULL DEFAULT NULL COMMENT '状态 0-启用 1-停用',
`CREATE_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '创建部门',
PRIMARY KEY (`ID`) USING BTREE
) ENGINE = INNODB AUTO_INCREMENT = 1763477308557029378 CHARACTER SET = UTF8MB4 COLLATE = UTF8MB4_GENERAL_CI ROW_FORMAT = DYNAMIC;
ALTER TABLE `HZIMS_OPER_ACCESS_CONTENT` ADD COLUMN `STATION_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL ; ALTER TABLE `HZIMS_OPER_ACCESS_CONTENT` ADD COLUMN `STATION_CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL ;
ALTER TABLE `HZIMS_OPER_ACCESS_CONTENT` ADD COLUMN `STATION_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL ; ALTER TABLE `HZIMS_OPER_ACCESS_CONTENT` ADD COLUMN `STATION_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL ;
@ -90,23 +108,23 @@ ALTER TABLE `HZIMS_OPER_ACCESS_TASK_DETAIL` ADD COLUMN `UPDATE_USER_NAME` VARCHA
ALTER TABLE `HZIMS_OPER_ACCESS_TASK_DETAIL` ADD COLUMN `CREATE_USER_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '创建人名称' ; ALTER TABLE `HZIMS_OPER_ACCESS_TASK_DETAIL` ADD COLUMN `CREATE_USER_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '创建人名称' ;
CREATE TABLE IF NOT EXISTS `hzims_run_month_report` ( CREATE TABLE IF NOT EXISTS `HZIMS_RUN_MONTH_REPORT` (
`ID` bigint(20) NOT NULL COMMENT '主键ID', `ID` BIGINT(20) NOT NULL COMMENT '主键ID',
`STATION_CODE` varchar(64) DEFAULT NULL COMMENT '站点编码', `STATION_CODE` VARCHAR(64) DEFAULT NULL COMMENT '站点编码',
`STATION_NAME` varchar(255) DEFAULT NULL COMMENT '站点名称', `STATION_NAME` VARCHAR(255) DEFAULT NULL COMMENT '站点名称',
`MONTH` varchar(255) DEFAULT NULL COMMENT '月份 : "yyyy-MM"', `MONTH` VARCHAR(255) DEFAULT NULL COMMENT '月份 : "YYYY-MM"',
`RUN_DATA` text COMMENT '运行数据', `RUN_DATA` TEXT COMMENT '运行数据',
`ALARM_DATA` text COMMENT '告警数据', `ALARM_DATA` TEXT COMMENT '告警数据',
`CURVE_DATA` text COMMENT '曲线数据', `CURVE_DATA` TEXT COMMENT '曲线数据',
`ANALYSIS_DATA` text COMMENT '分析数据', `ANALYSIS_DATA` TEXT COMMENT '分析数据',
`RUN_PROPOSE` text COMMENT '运行建议', `RUN_PROPOSE` TEXT COMMENT '运行建议',
`TENANT_ID` varchar(12) DEFAULT NULL COMMENT '租户ID', `TENANT_ID` VARCHAR(12) DEFAULT NULL COMMENT '租户ID',
`STATUS` tinyint(4) DEFAULT NULL COMMENT '业务状态', `STATUS` TINYINT(4) DEFAULT NULL COMMENT '业务状态',
`CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建单位', `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建单位',
`IS_DELETED` tinyint(4) NOT NULL DEFAULT '0', `IS_DELETED` TINYINT(4) NOT NULL DEFAULT '0',
`CREATE_USER` bigint(20) DEFAULT NULL COMMENT '创建人', `CREATE_USER` BIGINT(20) DEFAULT NULL COMMENT '创建人',
`CREATE_TIME` datetime DEFAULT NULL COMMENT '创建时间', `CREATE_TIME` DATETIME DEFAULT NULL COMMENT '创建时间',
`UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人',
`UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`ID`) PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=INNODB DEFAULT CHARSET=UTF8;
Loading…
Cancel
Save