From f9b109cb28a25d85c099e64967d3799e8390ba43 Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期五, 20 九月 2024 09:39:38 +0800
Subject: [PATCH] mpk sql脚本 顺序

---
 iailab-module-model/iailab-module-model-biz/db/mysql.sql |   59 ++++++++++++++++++++++++++++++-----------------------------
 1 files changed, 30 insertions(+), 29 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 c8e5d06..39e7d53 100644
--- a/iailab-module-model/iailab-module-model-biz/db/mysql.sql
+++ b/iailab-module-model/iailab-module-model-biz/db/mysql.sql
@@ -483,6 +483,23 @@
 ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '生成代码记录表' ROW_FORMAT = DYNAMIC;
 
 -- ----------------------------
+-- Table structure for t_mpk_model_method
+-- ----------------------------
+DROP TABLE IF EXISTS `t_mpk_model_method`;
+CREATE TABLE `t_mpk_model_method`  (
+                                       `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id',
+                                       `mpk_file_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '模型文件id',
+                                       `method_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型方法名',
+                                       `data_length` int NULL DEFAULT 1 COMMENT '输入个数',
+                                       `model` int NULL DEFAULT 0 COMMENT '是否有model(0:否,1:是)',
+                                       `result_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '结果key',
+                                       PRIMARY KEY (`id`, `mpk_file_id`) USING BTREE,
+                                       INDEX `id`(`id` ASC) USING BTREE,
+                                       INDEX `del_method`(`mpk_file_id` ASC) USING BTREE,
+                                       CONSTRAINT `del_method` FOREIGN KEY (`mpk_file_id`) REFERENCES `t_mpk_file` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
 -- Table structure for t_mpk_method_setting
 -- ----------------------------
 DROP TABLE IF EXISTS `t_mpk_method_setting`;
@@ -502,22 +519,20 @@
                                          CONSTRAINT `del_setting` FOREIGN KEY (`method_id`) REFERENCES `t_mpk_model_method` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
 ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '方法参数关联表' ROW_FORMAT = Dynamic;
 
+
 -- ----------------------------
--- Table structure for t_mpk_model_method
+-- Table structure for t_mpk_setting_select
 -- ----------------------------
-DROP TABLE IF EXISTS `t_mpk_model_method`;
-CREATE TABLE `t_mpk_model_method`  (
-                                       `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id',
-                                       `mpk_file_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '模型文件id',
-                                       `method_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型方法名',
-                                       `data_length` int NULL DEFAULT 1 COMMENT '输入个数',
-                                       `model` int NULL DEFAULT 0 COMMENT '是否有model(0:否,1:是)',
-                                       `result_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '结果key',
-                                       PRIMARY KEY (`id`, `mpk_file_id`) USING BTREE,
-                                       INDEX `id`(`id` ASC) USING BTREE,
-                                       INDEX `del_method`(`mpk_file_id` ASC) USING BTREE,
-                                       CONSTRAINT `del_method` FOREIGN KEY (`mpk_file_id`) REFERENCES `t_mpk_file` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
-) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
+DROP TABLE IF EXISTS `t_mpk_setting_select`;
+CREATE TABLE `t_mpk_setting_select`  (
+                                         `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id',
+                                         `setting_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '参数id',
+                                         `select_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'key',
+                                         `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '名称',
+                                         PRIMARY KEY (`id`, `setting_id`) USING BTREE,
+                                         INDEX `del_select`(`setting_id` ASC) USING BTREE,
+                                         CONSTRAINT `del_select` FOREIGN KEY (`setting_id`) REFERENCES `t_mpk_method_setting` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '参数选项关联表' ROW_FORMAT = Dynamic;
 
 -- ----------------------------
 -- Table structure for t_mpk_project
@@ -581,18 +596,4 @@
                                                         PRIMARY KEY (`id`, `project_id`) USING BTREE,
                                                         INDEX `del_package_model`(`project_id` ASC) USING BTREE,
                                                         CONSTRAINT `del_package_model` FOREIGN KEY (`project_id`) REFERENCES `t_mpk_project` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
-) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '打包历史模型关联表' ROW_FORMAT = Dynamic;
-
--- ----------------------------
--- Table structure for t_mpk_setting_select
--- ----------------------------
-DROP TABLE IF EXISTS `t_mpk_setting_select`;
-CREATE TABLE `t_mpk_setting_select`  (
-                                         `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id',
-                                         `setting_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '参数id',
-                                         `select_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'key',
-                                         `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '名称',
-                                         PRIMARY KEY (`id`, `setting_id`) USING BTREE,
-                                         INDEX `del_select`(`setting_id` ASC) USING BTREE,
-                                         CONSTRAINT `del_select` FOREIGN KEY (`setting_id`) REFERENCES `t_mpk_method_setting` (`id`) ON DELETE CASCADE ON UPDATE RESTRICT
-) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '参数选项关联表' ROW_FORMAT = Dynamic;
\ No newline at end of file
+) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '打包历史模型关联表' ROW_FORMAT = Dynamic;
\ No newline at end of file

--
Gitblit v1.9.3