diff --git a/hzims-service/operational/src/main/resources/db/2.0.2.sql b/hzims-service/operational/src/main/resources/db/2.0.2.sql index 5a45e4b..375171c 100644 --- a/hzims-service/operational/src/main/resources/db/2.0.2.sql +++ b/hzims-service/operational/src/main/resources/db/2.0.2.sql @@ -88,4 +88,25 @@ ALTER TABLE `HZIMS_OPER_ACCESS_TASK` ADD COLUMN `HANDLER_NAME` VARCHAR(255) CHAR ALTER TABLE `HZIMS_OPER_ACCESS_TASK_DETAIL` ADD COLUMN `UPDATE_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 '创建人名称' ; \ No newline at end of file +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` ( + `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; \ No newline at end of file