From 17ad2acbc82465e8cc786df98e5b967b9c210b15 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期四, 09 一月 2025 16:32:52 +0800 Subject: [PATCH] 平台版本升级为1.0.0 --- iailab-module-model/iailab-module-model-biz/db/mysql.sql | 43 ++++++++++++++++++------------------------- 1 files changed, 18 insertions(+), 25 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/db/mysql.sql b/iailab-module-model/iailab-module-model-biz/db/mysql.sql index 0d9da47..8781409 100644 --- a/iailab-module-model/iailab-module-model-biz/db/mysql.sql +++ b/iailab-module-model/iailab-module-model-biz/db/mysql.sql @@ -40,18 +40,6 @@ INDEX idx_itemid (itemid) ) engine = innodb default character set utf8mb4 COMMENT = '预测项输出表'; -create table t_mm_item_result -( - id varchar(36) not null, - outputid varchar(36), - datatime datetime, - datavalue decimal(19, 3), - primary key (id), - INDEX idx_outputid (outputid), - INDEX idx_datatime (datatime) -) engine = innodb - default character set utf8mb4 COMMENT = '预测结果表'; - create table t_mm_item_type ( id varchar(36) not null, @@ -164,18 +152,6 @@ INDEX idx_outputid (outputid), INDEX idx_predicttime (predicttime) ) engine = innodb default character set utf8mb4 COMMENT = '预测JSON数据表'; - -create table - t_mm_item_result_last_point -( - id varchar(36) not null, - outputid varchar(36), - datatime datetime, - datavalue decimal(19, 3), - primary key (id), - INDEX idx_outputid (outputid), - INDEX idx_datatime (datatime) -) engine = innodb default character set utf8mb4 COMMENT = '预测T+L数据表'; create table t_mm_item_accuracy_rate ( @@ -881,4 +857,21 @@ alter table t_st_schedule_scheme add column `mpkprojectid` varchar(36) DEFAULT NULL; alter table t_st_schedule_record add column `result_code` varchar(10) DEFAULT NULL; -alter table t_st_schedule_record add column `result_data` varchar(1000) DEFAULT NULL; \ No newline at end of file +alter table t_st_schedule_record add column `result_data` varchar(1000) DEFAULT NULL; + +CREATE TABLE `t_st_schedule_model_out` ( + `id` varchar(36) NOT NULL COMMENT 'id', + `model_id` varchar(36) DEFAULT NULL COMMENT '模型ID', + `result_key` varchar(36) DEFAULT NULL COMMENT '输出key', + `result_type` varchar(36) DEFAULT NULL COMMENT '数据类型(double,double[],double[][])', + `result_port` int DEFAULT NULL COMMENT 'port', + `result_index` int DEFAULT NULL COMMENT 'index', + `is_write` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '是否下发', + `point_no` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '下发的点位', + `sort` int DEFAULT NULL COMMENT '排序', + `disturbance_point_no` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '无扰切换点位', + PRIMARY KEY (`id`) USING BTREE, + INDEX `ind_model_id`(`model_id` ASC) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='模型下发信息表'; + +alter table t_st_schedule_scheme add column `run_status` varchar(4) DEFAULT NULL COMMENT '运行状态'; \ No newline at end of file -- Gitblit v1.9.3