| | |
| | | create table t_st_schedule_scheme |
| | | ( |
| | | `id` varchar(36) not null COMMENT 'ID', |
| | | `code` varchar(20) COMMENT '编号', |
| | | `name` varchar(20) COMMENT '名称', |
| | | `code` varchar(20) not null COMMENT '编号', |
| | | `name` varchar(20) not null COMMENT '名称', |
| | | `trigger_method` varchar(20) COMMENT '触发方式', |
| | | `trigger_condition` varchar(20) COMMENT '触发条件', |
| | | `schedule_obj` varchar(20) COMMENT '调整对象', |
| | |
| | | `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
| | | `updater` varchar(64) NULL DEFAULT '' COMMENT '更新者', |
| | | `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
| | | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| | | primary key (id), |
| | | UNIQUE INDEX `uk_code` (`code` ASC) USING BTREE |
| | | ) engine = innodb |
| | | default character set utf8mb4 COMMENT = '调度方案表'; |
| | | |
| | | |
| | | create table t_st_schedule_model |
| | | ( |
| | | `id` varchar(36) not null COMMENT 'ID', |
| | | `model_code` varchar(64) COMMENT '编号', |
| | | `model_name` varchar(64) COMMENT '名称', |
| | | `model_code` varchar(64) not null COMMENT '模型编号', |
| | | `model_name` varchar(64) not null COMMENT '模型名称', |
| | | `model_type` varchar(64) COMMENT '模型类型', |
| | | `class_name` varchar(128) COMMENT '类名', |
| | | `method_name` varchar(64) COMMENT '方法名', |
| | |
| | | `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', |
| | | `updater` varchar(64) NULL DEFAULT '' COMMENT '更新者', |
| | | `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', |
| | | `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除', |
| | | primary key (id), |
| | | UNIQUE INDEX `uk_model_code` (`model_code` ASC) USING BTREE |
| | | ) engine = innodb |
| | | default character set utf8mb4 COMMENT = '调度模型表'; |
| | | ) engine = innodb default character set utf8mb4 COMMENT = '调度模型表'; |
| | | |
| | | create table |
| | | t_st_schedule_model_param |
| | | ( |
| | | id varchar(36) not null, |
| | | modelid varchar(64), |
| | | modelid varchar(64) not null, |
| | | modelparamname varchar(64), |
| | | modelparamid varchar(64), |
| | | modelparamorder integer, |
| | |
| | | t_st_schedule_model_setting |
| | | ( |
| | | `id` varchar(36) not null, |
| | | `modelid` varchar(64), |
| | | `modelid` varchar(64) not null, |
| | | `key` varchar(64), |
| | | `value` varchar(64), |
| | | `valuetype` varchar(64), |
| | | `name` varchar(64), |
| | | `sort` integer, |
| | | primary key (id), |
| | | key idx_modelid (modelid) |
| | | ) engine = innodb |
| | | default character set utf8mb4 COMMENT = '调度模型设置参数表'; |
| | | |
| | | create table |
| | | t_st_schedule_scheme_suggest |
| | | t_st_schedule_suggest |
| | | ( |
| | | id varchar(36) not null, |
| | | title varchar(50) COMMENT '标题', |
| | |
| | | `id` varchar(36) not null, |
| | | `scheme_id` varchar(36) COMMENT '方案ID', |
| | | `model_id` varchar(36) COMMENT '模型ID', |
| | | `model_name` varchar(64) COMMENT '名称', |
| | | `model_name` varchar(64) COMMENT '模型名称', |
| | | `schedule_time` datetime COMMENT '调度时间', |
| | | `create_time` datetime default current_timestamp COMMENT '创建时间', |
| | | primary key (id), |
| | |
| | | key idx_model_id (model_id) |
| | | ) engine = innodb |
| | | default character set utf8mb4 COMMENT = '调度记录详情表'; |
| | | |
| | | -- mpk |
| | | |
| | | -- menu |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416369, '模型库', '', 2, 20, 1803317368415416363, 'mpk', 'ep:folder', 'mpk/mpk', 'Mpk', 0, b'1', b'1', b'1', '1', '2024-08-31 16:50:38', '1', '2024-09-10 14:53:17', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416370, 'MPK查询', 'mpk:query', 3, 0, 1803317368415416369, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-02 10:14:00', '1', '2024-09-06 11:50:19', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416371, 'MPK新增', 'mpk:create', 3, 1, 1803317368415416369, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-02 10:14:25', '1', '2024-09-06 11:50:28', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416372, 'MPK修改', 'mpk:update', 3, 2, 1803317368415416369, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-02 10:14:44', '1', '2024-09-06 11:50:38', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416373, 'MPK删除', 'mpk:delete', 3, 3, 1803317368415416369, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-02 10:15:04', '1', '2024-09-06 11:50:46', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416374, '项目管理', '', 2, 30, 1803317368415416363, 'project', 'ep:document-copy', 'mpk/project', 'Project', 0, b'1', b'1', b'1', '1', '2024-09-10 14:44:54', '1', '2024-09-10 14:53:26', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416375, '项目查询', 'project:query', 3, 0, 1803317368415416374, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-10 14:45:53', '1', '2024-09-10 14:45:53', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416376, '项目新增', 'project:create', 3, 1, 1803317368415416374, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-10 14:46:16', '1', '2024-09-10 14:46:16', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416377, '项目修改', 'project:update', 3, 2, 1803317368415416374, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-10 14:46:33', '1', '2024-09-10 14:46:33', b'0'); |
| | | INSERT INTO `iailab_plat_system`.`system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (1803317368415416378, '项目删除', 'project:delete', 3, 3, 1803317368415416374, '', '', '', '', 0, b'1', b'1', b'1', '1', '2024-09-10 14:46:47', '1', '2024-09-10 14:46:47', b'0'); |
| | | |
| | | |
| | | -- config |
| | | INSERT INTO `iailab_plat_system`.`infra_config` (`id`, `category`, `type`, `name`, `config_key`, `value`, `visible`, `remark`, `creator`, `create_time`, `updater`, `update_time`, `deleted`) VALUES (13, 'model', 2, 'model文件备份路径', 'mpkBakFilePath', 'C:\\DLUT\\mpkBakFile', b'1', 'model文件备份路径', '1', '2024-09-12 11:10:25', '1', '2024-09-12 11:10:25', b'0'); |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_mpk_file |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_file`; |
| | | CREATE TABLE `t_mpk_file` ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `py_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型名称', |
| | | `file_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '源文件保存路径', |
| | | `py_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型类型', |
| | | `pkg_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '包名', |
| | | `class_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '类名', |
| | | `py_module` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型路径', |
| | | `remark` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注', |
| | | `creator` bigint NULL DEFAULT NULL COMMENT '创建者', |
| | | `create_date` datetime NULL DEFAULT NULL COMMENT '创建时间', |
| | | `updater` bigint NULL DEFAULT NULL COMMENT '更新者', |
| | | `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间', |
| | | PRIMARY KEY (`id`) USING BTREE, |
| | | UNIQUE INDEX `uk_py_name`(`py_name` ASC) USING BTREE, |
| | | INDEX `idx_create_date`(`create_date` ASC) USING BTREE |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'MDK模型文件' ROW_FORMAT = DYNAMIC; |
| | | |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_mpk_generator_code_history |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_generator_code_history`; |
| | | CREATE TABLE `t_mpk_generator_code_history` ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `mdk_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'mdk_id', |
| | | `file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件名', |
| | | `file_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件保存路径', |
| | | `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注', |
| | | `create_time` timestamp NULL DEFAULT NULL COMMENT '生成时间', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) 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 NULL DEFAULT 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:是)', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_mpk_project |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_project`; |
| | | CREATE TABLE `t_mpk_project` ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `project_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目名称', |
| | | `project_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目编码', |
| | | `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间', |
| | | `update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '项目表' ROW_FORMAT = DYNAMIC; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_mpk_project_model |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_project_model`; |
| | | CREATE TABLE `t_mpk_project_model` ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `project_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目id', |
| | | `model_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型id', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '项目模型关联表' ROW_FORMAT = DYNAMIC; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_mpk_project_package_history |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_project_package_history`; |
| | | CREATE TABLE `t_mpk_project_package_history` ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `project_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目id', |
| | | `file_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件名', |
| | | `file_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件路径', |
| | | `version` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '版本号', |
| | | `log` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新日志', |
| | | `model_names` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '打包模型名称(“,”分割)', |
| | | `create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '项目打包历史记录表' ROW_FORMAT = DYNAMIC; |
| | | |
| | | -- ---------------------------- |
| | | -- Table structure for t_mpk_project_package_history_model |
| | | -- ---------------------------- |
| | | DROP TABLE IF EXISTS `t_mpk_project_package_history_model`; |
| | | CREATE TABLE `t_mpk_project_package_history_model` ( |
| | | `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'id', |
| | | `project_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '项目id', |
| | | `package_history_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '打包历史id', |
| | | `py_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型名称', |
| | | `pkg_name` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '包名', |
| | | `py_module` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型路径', |
| | | `remark` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型备注', |
| | | `method_info` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '模型方法信息', |
| | | PRIMARY KEY (`id`) USING BTREE |
| | | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '打包历史模型关联表' ROW_FORMAT = Dynamic; |