|
|
@@ -923,4 +923,58 @@ CREATE TABLE `wind_relation` (
|
|
|
KEY `code_number` (`code_number`)
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='风场关系表 ';
|
|
|
|
|
|
+
|
|
|
+-- ----------------------------
|
|
|
+-- Table structure for auto_analysis_config_detail
|
|
|
+-- ----------------------------
|
|
|
+DROP TABLE IF EXISTS `auto_analysis_config_detail`;
|
|
|
+
|
|
|
+CREATE TABLE `auto_analysis_config_detail` (
|
|
|
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
|
|
+ `field_code` varchar(100) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '风场编号',
|
|
|
+ `interval_days` int(11) NOT NULL DEFAULT '0' COMMENT '间隔天数',
|
|
|
+ `start_time` date NOT NULL COMMENT '起始时间',
|
|
|
+ `startup_state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '自动分析启动状态:1:启动 0:取消',
|
|
|
+ `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
|
+ `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
|
|
+ `config_unique_id` varchar(50) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '配置id',
|
|
|
+ PRIMARY KEY (`id`)
|
|
|
+) ENGINE=InnoDB AUTO_INCREMENT=30006 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='自动分析配置表';
|
|
|
+
|
|
|
+-- ----------------------------
|
|
|
+-- Table structure for auto_analysis_config_detail_option_records
|
|
|
+-- ----------------------------
|
|
|
+DROP TABLE IF EXISTS `auto_analysis_config_detail_option_records`;
|
|
|
+
|
|
|
+CREATE TABLE `auto_analysis_config_detail_option_records` (
|
|
|
+ `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
|
|
+ `field_code` varchar(50) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '风场编号',
|
|
|
+ `source_inteval_days` int(11) NOT NULL DEFAULT '0' COMMENT '原始天数(当操作行为是”新增”的时候为0)',
|
|
|
+ `source_start_time` date DEFAULT NULL COMMENT '原始起始时间(当操作行为是"新增"的时候为空)',
|
|
|
+ `source_startup_state` tinyint(1) DEFAULT NULL COMMENT '原始启动状态(当操作行为是”新增”的时候为空)',
|
|
|
+ `option_flag` tinyint(1) NOT NULL DEFAULT '0' COMMENT '操作行为标识(0:新增 1:编辑 2:关停 3:启动)',
|
|
|
+ `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作记录创建时间',
|
|
|
+ `config_unique_id` varchar(50) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '配置标识',
|
|
|
+ PRIMARY KEY (`id`)
|
|
|
+) ENGINE=InnoDB AUTO_INCREMENT=30015 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='自动分析配置操作记录表';
|
|
|
+
|
|
|
+-- ----------------------------
|
|
|
+-- Table structure for auto_analysis_config_relations
|
|
|
+-- ----------------------------
|
|
|
+DROP TABLE IF EXISTS `auto_analysis_config_relations`;
|
|
|
+
|
|
|
+CREATE TABLE `auto_analysis_config_relations` (
|
|
|
+ `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
|
|
|
+ `config_unique_id` varchar(50) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '配置的唯一标识',
|
|
|
+ `batch_code` varchar(100) COLLATE utf8mb4_bin NOT NULL DEFAULT '' COMMENT '批次编号',
|
|
|
+ `start_time` date NOT NULL COMMENT '开始日期',
|
|
|
+ `end_time` date NOT NULL COMMENT '当前批次结束日期',
|
|
|
+ `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
|
+ PRIMARY KEY (`id`)
|
|
|
+) ENGINE=InnoDB AUTO_INCREMENT=30052 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='自动分析配置与批次关系表';
|
|
|
+
|
|
|
+ALTER TABLE wind_engine_group ADD commissioning_date date NULL COMMENT '投产运行日期';
|
|
|
+
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|
|
|
+
|
|
|
+
|