/*
 Navicat Premium Dump SQL

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 50744 (5.7.44-log)
 Source Host           : localhost:3306
 Source Schema         : ruoyi-ai

 Target Server Type    : MySQL
 Target Server Version : 50744 (5.7.44-log)
 File Encoding         : 65001

 Date: 07/11/2025 16:49:54
*/

SET NAMES utf8mb4;
SET
FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for aihuman_config
-- ----------------------------
DROP TABLE IF EXISTS `aihuman_config`;
CREATE TABLE `aihuman_config`
(
    `id`           int(11) NOT NULL AUTO_INCREMENT,
    `name`         varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
    `model_name`   varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
    `model_path`   varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
    `model_params` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
    `agent_params` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
    `create_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
    `update_time`  datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
    `status`       int(11) NULL DEFAULT NULL,
    `publish`      int(11) NULL DEFAULT NULL,
    `create_dept`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
    `create_by`    varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
    `update_by`    varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of aihuman_config
-- ----------------------------
INSERT INTO `aihuman_config`
VALUES (9, '关爱老婆数字人（梅朵）', '梅朵吉祥物', '/Live2D/models/梅朵吉祥物/梅朵吉祥物.model3.json',
        '{\n	\"Version\": 3,\n	\"FileReferences\": {\n		\"Moc\": \"梅朵吉祥物.moc3\",\n		\"Textures\": [\n			\"梅朵吉祥物.4096/texture_00.png\",\n			\"梅朵吉祥物.4096/texture_01.png\"\n		],\n		\"Physics\": \"梅朵吉祥物.physics3.json\",\n		\"DisplayInfo\": \"梅朵吉祥物.cdi3.json\",\n		\"MotionSync\": \"梅朵吉祥物.motionsync3.json\",\n		\"Expressions\": [\n			{\n				\"Name\": \"kaixin\",\n				\"File\": \"kaixin.exp3.json\"\n			},\n			{\n				\"Name\": \"maozi\",\n				\"File\": \"maozi.exp3.json\"\n			},\n			{\n				\"Name\": \"mouth open\",\n				\"File\": \"mouth open.exp3.json\"\n			},\n			{\n				\"Name\": \"shibai\",\n				\"File\": \"shibai.exp3.json\"\n			},\n			{\n				\"Name\": \"yinchen\",\n				\"File\": \"yinchen.exp3.json\"\n			}\n		],\n		\"Motions\": {\n			\"\": [\n				{\n					\"File\": \"mouth.motion3.json\"\n				}\n			]\n		}\n	},\n	\"Groups\": [\n		{\n			\"Target\": \"Parameter\",\n			\"Name\": \"LipSync\",\n			\"Ids\": [\n				\"ParamMouthForm\",\n				\"ParamMouthOpenY\"\n			]\n		},\n		{\n			\"Target\": \"Parameter\",\n			\"Name\": \"EyeBlink\",\n			\"Ids\": [\n				\"ParamEyeLOpen\",\n				\"ParamEyeROpen\"\n			]\n		}\n	],\n	\"HitAreas\": []\n}',
        '{\n    \"bot_id\": \"7504596188201746470\",\n    \"user_id\": \"7376476310010937396\",\n    \"stream\": true,\n    \"auto_save_history\": true\n}',
        '2025-09-29 16:36:46', '2025-09-29 16:36:46', 0, 1, NULL, NULL, '1');
INSERT INTO `aihuman_config`
VALUES (10, '关爱老婆数字人（K）', 'kei_vowels_pro', '/Live2D/models/kei_vowels_pro/kei_vowels_pro.model3.json',
        '{\n	\"Version\": 3,\n	\"FileReferences\": {\n		\"Moc\": \"kei_vowels_pro.moc3\",\n		\"Textures\": [\n			\"kei_vowels_pro.2048/texture_00.png\"\n		],\n		\"Physics\": \"kei_vowels_pro.physics3.json\",\n		\"DisplayInfo\": \"kei_vowels_pro.cdi3.json\",\n		\"MotionSync\": \"kei_vowels_pro.motionsync3.json\",\n		\"Motions\": {\n			\"\": [\n				{\n					\"File\": \"motions/01_kei_en.motion3.json\",\n					\"Sound\": \"sounds/01_kei_en.wav\",\n					\"MotionSync\": \"Vowels_CRI\"\n				},\n				{\n					\"File\": \"motions/01_kei_jp.motion3.json\",\n					\"Sound\": \"sounds/01_kei_jp.wav\",\n					\"MotionSync\": \"Vowels_CRI\"\n				},\n				{\n					\"File\": \"motions/01_kei_ko.motion3.json\",\n					\"Sound\": \"sounds/01_kei_ko.wav\",\n					\"MotionSync\": \"Vowels_CRI\"\n				},\n				{\n					\"File\": \"motions/01_kei_zh.motion3.json\",\n					\"Sound\": \"sounds/01_kei_zh.wav\",\n					\"MotionSync\": \"Vowels_CRI\"\n				}\n			]\n		}\n	},\n	\"Groups\": [\n		{\n			\"Target\": \"Parameter\",\n			\"Name\": \"LipSync\",\n			\"Ids\": []\n		},\n		{\n			\"Target\": \"Parameter\",\n			\"Name\": \"EyeBlink\",\n			\"Ids\": [\n				\"ParamEyeLOpen\",\n				\"ParamEyeROpen\"\n			]\n		}\n	],\n	\"HitAreas\": [\n		{\n			\"Id\": \"HitAreaHead\",\n			\"Name\": \"Head\"\n		}\n	]\n}',
        '3', '2025-09-29 16:35:27', '2025-09-29 16:35:27', 0, 1, NULL, NULL, '1');
INSERT INTO `aihuman_config`
VALUES (11, '关爱老婆数字人（March 7th）', 'March 7th', '/Live2D/models/March 7th/March 7th.model3.json',
        '{\n	\"Version\": 3,\n	\"FileReferences\": {\n		\"Moc\": \"March 7th.moc3\",\n		\"Textures\": [\n			\"March 7th.4096/texture_00.png\",\n			\"March 7th.4096/texture_01.png\"\n		],\n		\"Physics\": \"March 7th.physics3.json\",\n		\"DisplayInfo\": \"March 7th.cdi3.json\",\n		\"Expressions\": [\n			{\n				\"Name\": \"捂脸\",\n				\"File\": \"1.exp3.json\"\n			},\n			{\n				\"Name\": \"比耶\",\n				\"File\": \"2.exp3.json\"\n			},\n			{\n				\"Name\": \"照相\",\n				\"File\": \"3.exp3.json\"\n			},\n			{\n				\"Name\": \"脸红\",\n				\"File\": \"4.exp3.json\"\n			},\n			{\n				\"Name\": \"黑脸\",\n				\"File\": \"5.exp3.json\"\n			},\n			{\n				\"Name\": \"哭\",\n				\"File\": \"6.exp3.json\"\n			},\n			{\n				\"Name\": \"流汗\",\n				\"File\": \"7.exp3.json\"\n			},\n			{\n				\"Name\": \"星星\",\n				\"File\": \"8.exp3.json\"\n			}\n		]\n	},\n	\"Groups\": [\n		{\n			\"Target\": \"Parameter\",\n			\"Name\": \"EyeBlink\",\n			\"Ids\": [\n				\"ParamEyeLOpen\",\n				\"ParamEyeROpen\"\n			]\n		},\n		{\n			\"Target\": \"Parameter\",\n			\"Name\": \"LipSync\",\n			\"Ids\": [\n				\"ParamMouthOpenY\"\n			]\n		}\n	],\n	\"HitAreas\": []\n}',
        '3', '2025-09-29 21:09:26', '2025-09-29 21:09:28', 0, 1, NULL, NULL, NULL);
INSERT INTO `aihuman_config`
VALUES (12, '关爱老婆数字人（pachan）', 'pachan', '/Live2D/models/pachan/pachan.model3.json',
        '{\n	\"Version\": 3,\n	\"FileReferences\": {\n		\"Moc\": \"pachirisu anime girl - top half.moc3\",\n		\"Textures\": [\n			\"pachirisu anime girl - top half.4096/texture_00.png\"\n		],\n		\"Physics\": \"pachirisu anime girl - top half.physics3.json\",\n		\"DisplayInfo\": \"pachirisu anime girl - top half.cdi3.json\"\n	},\n	\"Groups\": [\n		{\n			\"Target\": \"Parameter\",\n			\"Name\": \"EyeBlink\",\n			\"Ids\": []\n		},\n		{\n			\"Target\": \"Parameter\",\n			\"Name\": \"LipSync\",\n			\"Ids\": []\n		}\n	]\n}',
        NULL, '2025-10-05 19:49:56', '2025-10-05 19:49:56', 0, 1, NULL, NULL, NULL);
INSERT INTO `aihuman_config`
VALUES (13, '关爱老婆数字人（230108）', '230108', '/Live2D/models/230108/230108.model3.json',
        '{\n	\"Version\": 3,\n	\"FileReferences\": {\n		\"Moc\": \"230108.moc3\",\n		\"Textures\": [\n			\"230108.4096/texture_00.png\"\n		],\n		\"Physics\": \"230108.physics3.json\",\n		\"DisplayInfo\": \"230108.cdi3.json\"\n	},\n	\"Groups\": [\n		{\n			\"Target\": \"Parameter\",\n			\"Name\": \"LipSync\",\n			\"Ids\": [\n				\"ParamMouthOpenY\"\n			]\n		},\n		{\n			\"Target\": \"Parameter\",\n			\"Name\": \"EyeBlink\",\n			\"Ids\": [\n				\"ParamEyeLOpen\",\n				\"ParamEyeROpen\"\n			]\n		}\n	]\n}',
        NULL, '2025-10-06 19:28:20', '2025-10-06 19:28:23', 0, 1, NULL, NULL, NULL);

-- ----------------------------
-- Table structure for aihuman_info
-- ----------------------------
DROP TABLE IF EXISTS `aihuman_info`;
CREATE TABLE `aihuman_info`
(
    `id`          bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
    `name`        varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '交互名称',
    `content`     text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '交互内容',
    `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
    `del_flag`    char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'AI人类交互信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of aihuman_info
-- ----------------------------
INSERT INTO `aihuman_info`
VALUES (1, '1', '1', '2025-09-26 18:02:00', '2025-09-26 18:02:02', '0');

-- ----------------------------
-- Table structure for chat_config
-- ----------------------------
DROP TABLE IF EXISTS `chat_config`;
CREATE TABLE `chat_config`
(
    `id`           bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `category`     varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '配置类型',
    `config_name`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '配置名称',
    `config_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '配置值',
    `config_dict`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '说明',
    `create_dept`  bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_time`  datetime NULL DEFAULT NULL COMMENT '创建时间',
    `create_by`    varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
    `update_by`    varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
    `update_time`  datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`       varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    `version`      int(11) NULL DEFAULT NULL COMMENT '版本',
    `del_flag`     char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
    `update_ip`    varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新IP',
    `tenant_id`    bigint(20) NOT NULL DEFAULT 0 COMMENT '租户Id',
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `unique_category_key`(`category`, `config_name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1904862904897019906 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '配置信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of chat_config
-- ----------------------------
INSERT INTO `chat_config`
VALUES (1779450794448789505, 'chat', 'apiKey', 'sk-xx', 'API 密钥', 103, '2024-04-14 18:05:05', '1', '1',
        '2025-03-31 19:54:16', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1779450794872414210, 'chat', 'apiHost', 'https://api.pandarobot.chat/', 'API 地址', 103, '2024-04-14 18:05:05',
        '1', '1', '2025-03-31 19:54:16', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1779497340548784129, 'pay', 'pid', '1000', '商户PID', 103, '2024-04-14 21:10:02', '1', '1',
        '2025-05-23 15:11:40', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1779497340938854401, 'pay', 'key', 'xx', '商户密钥', 103, '2024-04-14 21:10:02', '1', '1',
        '2025-05-23 15:11:40', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1779497341135986690, 'pay', 'payUrl', 'https://pay.pandarobot.chat/mapi.php', '支付地址', 103,
        '2024-04-14 21:10:02', '1', '1', '2025-05-23 15:11:40', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1779497341400227842, 'pay', 'notify_url', 'https://www.pandarobot.chat/pay/notifyUrl', '回调地址', 103,
        '2024-04-14 21:10:02', '1', '1', '2025-05-23 15:11:40', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1779497341588971522, 'pay', 'return_url', 'https://www.pandarobot.chat/pay/returnUrl', '跳转通知', 103,
        '2024-04-14 21:10:02', '1', '1', '2024-04-28 17:46:31', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1779513580331835394, 'mail', 'host', 'smtp.163.com', '主机地址', 103, '2024-04-14 22:14:34', '1', '1',
        '2025-05-23 15:12:45', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1779513580658991106, 'mail', 'port', '465', '主机端口', 103, '2024-04-14 22:14:34', '1', '1',
        '2025-05-23 15:12:46', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1779513580919037953, 'mail', 'from', 'ageerle@163.com', '发送方', 103, '2024-04-14 22:14:34', '1', '1',
        '2025-05-23 15:12:46', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1779513581107781634, 'mail', 'user', 'ageerle@163.com', '用户名', 103, '2024-04-14 22:14:34', '1', '1',
        '2025-05-23 15:12:46', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1779513581309108225, 'mail', 'pass', 'xxxx', '授权码', 103, '2024-04-14 22:14:34', '1', '1',
        '2025-05-23 15:12:46', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1786058372188569602, 'review', 'enabled', 'false', '文本审核', 103, '2024-05-02 23:41:14', '1', '1',
        '2025-03-30 22:45:29', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1786058372637360129, 'review', 'apiKey', 'xx', 'apiKey', 103, '2024-05-02 23:41:14', '1', '1',
        '2025-03-30 22:45:29', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1786058372897406977, 'review', 'secretKey', 'xx', 'secretKey', 103, '2024-05-02 23:41:14', '1', '1',
        '2025-03-30 22:45:29', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1792207511704100866, 'sys', 'name', '熊猫助手', '网站名称', 103, '2024-05-19 22:55:43', '1', '1',
        '2025-03-26 19:48:33', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1792207512089976834, 'sys', 'logoImage',
        'http://panda-1253683406.cos.ap-guangzhou.myqcloud.com/panda/2024/05/19/4c106628754b4bd882a4c002eaa317f5.jpg',
        '网站logo', 103, '2024-05-19 22:55:43', '1', '1', '2025-03-26 19:48:33', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1792207512412938241, 'sys', 'copyright', 'ageerle', '版权信息', 103, '2024-05-19 22:55:43', '1', '1',
        '2025-03-26 19:48:33', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1792207512740093954, 'sys', 'customImage', '', '客服二维码', 103, '2024-05-19 22:55:43', '1', '1',
        '2025-03-26 19:48:33', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1811317732300914689, 'mail', 'mailModel',
        '<p>您此次的验证码为：{code}，有效期为30分钟，请尽快填写!</p><p><br></p>', '邮箱模板', 103, '2024-07-11 16:32:55',
        '1', '1', '2024-07-17 17:28:52', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1813506141979254785, 'mail', 'mailTitle', '【熊猫助手】验证码', '邮箱标题', 103, '2024-07-17 17:28:52', '1', '1',
        '2024-07-17 17:28:52', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1897610056458412050, 'weaviate', 'protocol', 'http', '协议', 103, '2025-03-06 21:10:02', '1', '1',
        '2025-03-06 21:10:31', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1897610056458412051, 'weaviate', 'host', '127.0.0.1:6038', '地址', 103, '2025-03-06 21:10:02', '1', '1',
        '2025-03-06 21:10:31', NULL, NULL, '0', NULL, 0);
INSERT INTO `chat_config`
VALUES (1897610056458412052, 'weaviate', 'classname', 'LocalKnowledge', '分类名称', 103, '2025-03-06 21:10:02', '1',
        '1', '2025-03-06 21:10:31', NULL, NULL, '0', NULL, 0);

-- ----------------------------
-- Table structure for chat_message
-- ----------------------------
DROP TABLE IF EXISTS `chat_message`;
CREATE TABLE `chat_message`
(
    `id`          bigint(20) NOT NULL COMMENT '主键',
    `session_id`  bigint(20) NULL DEFAULT NULL COMMENT '会话id',
    `user_id`     bigint(20) NOT NULL COMMENT '用户id',
    `content`     longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '消息内容',
    `role`        varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '对话角色',
    `deduct_cost` double(20, 2
) NULL DEFAULT 0.00 COMMENT '扣除金额',
  `total_tokens` int(20) NULL DEFAULT 0 COMMENT '累计 Tokens',
  `model_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模型名称',
  `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `billing_type` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '计费类型（1-token计费，2-次数计费，null-普通消息）',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '聊天消息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of chat_message
-- ----------------------------

-- ----------------------------
-- Table structure for chat_model
-- ----------------------------
DROP TABLE IF EXISTS `chat_model`;
CREATE TABLE `chat_model`
(
    `id`             bigint(20) NOT NULL COMMENT '主键',
    `tenant_id`      varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
    `category`       varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模型分类',
    `model_name`     varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模型名称',
    `provider_name`  varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模型供应商',
    `model_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模型描述',
    `model_price`    double NULL DEFAULT NULL COMMENT '模型价格',
    `model_type`     char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '计费类型',
    `model_show`     char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '是否显示',
    `system_prompt`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '系统提示词',
    `api_host`       varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求地址',
    `api_key`        varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密钥',
    `api_url`        varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求后缀',
    `create_dept`    bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`      bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`    datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`      bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`    datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`         varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    `priority`       int(11) NULL DEFAULT 1 COMMENT '模型优先级(值越大优先级越高)',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '聊天模型' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of chat_model
-- ----------------------------
INSERT INTO `chat_model`
VALUES (1782792839548735490, '000000', 'chat', 'midjourney', NULL, 'midjourney', 0.5, '2', '1', NULL,
        'https://api.pandarobot.chat/', 'sk-xx', NULL, 103, 1, '2024-04-23 23:25:10', 1, '2025-03-23 09:15:55',
        'midjourney', 1);
INSERT INTO `chat_model`
VALUES (1782792839548735491, '000000', 'chat', 'suno', NULL, 'suno', 0.3, '2', '1', NULL,
        'https://api.pandarobot.chat/', 'sk-xx', NULL, 103, 1, '2024-04-23 23:25:10', 1, '2024-12-27 22:29:15', 'suno',
        2);
INSERT INTO `chat_model`
VALUES (1782792839548735492, '000000', 'chat', 'luma', NULL, 'luma', 1, '2', '1', NULL, 'https://api.pandarobot.chat/',
        'sk-xx', NULL, 103, 1, '2024-04-23 23:25:10', 1, '2025-03-27 10:08:15', 'luma', 3);
INSERT INTO `chat_model`
VALUES (1782792839548735493, '000000', 'chat', 'ppt', NULL, 'ppt', 1.1, '2', '1', NULL, 'https://docmee.cn', 'sk-xx',
        NULL, 103, 1, '2025-01-10 23:25:10', 1, '2025-03-22 08:30:29', 'ppt', 4);
INSERT INTO `chat_model`
VALUES (1828324413241466880, '000000', 'vector', 'quentinz/bge-large-zh-v1.5', NULL, 'bge-large-zh-v1.5', 0, '2', '1',
        NULL, 'http://127.0.0.1:11434/', 'sk-xx', NULL, 103, 1, '2025-04-03 07:28:56', 1, '2025-05-24 17:25:57',
        'bge-large-zh-v1.5', 1);
INSERT INTO `chat_model`
VALUES (1828324413241466881, '000000', 'vector', 'baai/bge-m3', NULL, 'baai/bge-m3', 0.01, '2', '1', NULL,
        'https://api.ppinfra.com/v3/openai', 'sk-xx', NULL, 103, 1, '2024-08-27 14:51:23', 1, '2025-05-24 17:33:11',
        'BGE-M3 是一款具备多维度能力的文本嵌入模型，可同时实现密集检索、多向量检索和稀疏检索三大核心功能。该模型设计上兼容超过100种语言，并支持从短句到长达8192词元的长文本等多种输入形式。在跨语言检索任务中，BGE-M3展现出显著优势，其性能在MIRACL、MKQA等国际基准测试中位居前列。此外，针对长文档检索场景，该模型在MLDR、NarritiveQA等数据集上的表现同样达到行业领先水平。',
        2);
INSERT INTO `chat_model`
VALUES (1859570229117022211, '000000', 'chat', 'deepseek/deepseek-v3-0324', NULL, 'deepseek/deepseek-v3-0324', 0.1, '1',
        '0', '', 'https://api.ppinfra.com/v3/openai/chat/completions', 'sk-xx', NULL, 103, 1, '2024-11-21 20:11:06', 1,
        '2025-05-24 17:56:22',
        'DeepSeek V3 0324 是深度求索（DeepSeek）团队旗舰级对话模型系列的最新版本，采用混合专家（Mixture-of-Experts, MoE）架构，参数量达685B参数。',
        5);
INSERT INTO `chat_model`
VALUES (1859570229117022212, '000000', 'chat', 'deepseek/deepseek-r1', NULL, 'deepseek/deepseek-r1', 0.1, '1', '0', '',
        'https://api.ppinfra.com/v3/openai/chat/completions', 'sk-xx', NULL, 103, 1, '2024-11-21 20:11:06', 1,
        '2025-05-24 17:56:14',
        'DeepSeek R1是DeepSeek团队发布的最新开源模型，具备非常强悍的推理性能，尤其在数学、编程和推理任务上达到了与OpenAI的o1模型相当的水平。',
        6);
INSERT INTO `chat_model`
VALUES (1930184891812147202, '000000', 'image', 'qwen/qwen2.5-vl-72b-instruct', NULL, 'qwen/qwen2.5-vl-72b-instruct',
        0.003, '2', '0', NULL, 'https://api.ppinfra.com/v3/openai/chat/completions', 'sk-xx', NULL, 103, 1,
        '2025-06-04 16:48:34', 1, '2025-06-04 16:48:34', '视觉模型', 1);

-- ----------------------------
-- Table structure for chat_pay_order
-- ----------------------------
DROP TABLE IF EXISTS `chat_pay_order`;
CREATE TABLE `chat_pay_order`
(
    `id`             bigint(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `order_no`       varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '订单编号',
    `order_name`     varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '订单名称',
    `amount`         decimal(10, 2)                                                NOT NULL COMMENT '金额',
    `payment_status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付状态',
    `payment_method` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '支付方式',
    `user_id`        bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
    `create_by`      bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`    datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`      bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`    datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`         varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    `create_dept`    bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '支付订单表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of chat_pay_order
-- ----------------------------

-- ----------------------------
-- Table structure for chat_session
-- ----------------------------
DROP TABLE IF EXISTS `chat_session`;
CREATE TABLE `chat_session`
(
    `id`              bigint(20) NOT NULL COMMENT '主键',
    `user_id`         bigint(20) NULL DEFAULT NULL COMMENT '用户id',
    `session_title`   varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '会话标题',
    `session_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '会话内容',
    `create_dept`     varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门',
    `create_by`       bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`     datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`       bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`     datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`          varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    `conversation_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '会话ID',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '会话管理' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of chat_session
-- ----------------------------

-- ----------------------------
-- Table structure for chat_usage_token
-- ----------------------------
DROP TABLE IF EXISTS `chat_usage_token`;
CREATE TABLE `chat_usage_token`
(
    `id`          bigint(20) NOT NULL COMMENT '主键',
    `user_id`     bigint(20) NOT NULL COMMENT '用户',
    `token`       int(10) NULL DEFAULT NULL COMMENT '待结算token',
    `model_name`  varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模型名称',
    `total_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '累计使用token',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户token使用详情' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of chat_usage_token
-- ----------------------------

-- ----------------------------
-- Table structure for dev_schema
-- ----------------------------
DROP TABLE IF EXISTS `dev_schema`;
CREATE TABLE `dev_schema`
(
    `id`              bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `schema_group_id` bigint(20) NULL DEFAULT NULL COMMENT '分组ID',
    `name`            varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模型名称',
    `code`            varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模型编码',
    `table_name`      varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '表名',
    `remark`          varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    `del_flag`        char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    `create_dept`     bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`       bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`     datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`       bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`     datetime NULL DEFAULT NULL COMMENT '更新时间',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据模型表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dev_schema
-- ----------------------------

-- ----------------------------
-- Table structure for dev_schema_field
-- ----------------------------
DROP TABLE IF EXISTS `dev_schema_field`;
CREATE TABLE `dev_schema_field`
(
    `id`            bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `schema_id`     bigint(20) NULL DEFAULT NULL COMMENT '模型ID',
    `schema_name`   varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模型名称',
    `name`          varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段名称',
    `code`          varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段编码',
    `type`          varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段类型',
    `comment`       varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字段注释',
    `is_pk`         char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '是否主键（0否 1是）',
    `is_required`   char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '是否必填（0否 1是）',
    `is_unique`     char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '是否唯一（0否 1是）',
    `default_value` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '默认值',
    `length`        int(11) NULL DEFAULT NULL COMMENT '字段长度',
    `scale`         int(11) NULL DEFAULT NULL COMMENT '小数位数',
    `is_list`       char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '是否列表显示（0否 1是）',
    `is_query`      char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '是否查询字段（0否 1是）',
    `is_insert`     char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '是否插入字段（0否 1是）',
    `is_edit`       char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '是否编辑字段（0否 1是）',
    `query_type`    varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '查询方式（EQ等于、NE不等于、GT大于、LT小于、LIKE模糊、BETWEEN范围）',
    `html_type`     varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'input' COMMENT '显示类型（input输入框、textarea文本域、select下拉框、checkbox复选框、radio单选框、datetime日期控件、image图片上传、upload文件上传、editor富文本编辑器）',
    `dict_type`     varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
    `sort`          int(11) NULL DEFAULT NULL COMMENT '排序',
    `del_flag`      char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    `create_dept`   bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`     bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`   datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`     bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`   datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`        varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据模型字段表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dev_schema_field
-- ----------------------------

-- ----------------------------
-- Table structure for dev_schema_group
-- ----------------------------
DROP TABLE IF EXISTS `dev_schema_group`;
CREATE TABLE `dev_schema_group`
(
    `id`          bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `name`        varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分组名称',
    `code`        varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分组编码',
    `icon`        varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图标',
    `remark`      varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    `del_flag`    char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`   bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1944346023254429698 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据模型分组表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of dev_schema_group
-- ----------------------------
INSERT INTO `dev_schema_group`
VALUES (1944240213530648567, '系统管理', 'system', 'eos-icons:system-group', '系统默认分组', '0', NULL, NULL,
        '2025-07-13 11:37:28', 1, '2025-07-13 18:42:48');
INSERT INTO `dev_schema_group`
VALUES (1944240213530648577, '运营管理', 'operator', 'icon-park-outline:appointment', '运营管理', '0', NULL, NULL,
        '2025-07-13 11:39:24', 1, '2025-07-13 18:42:31');
INSERT INTO `dev_schema_group`
VALUES (1944346023254429697, '在线开发', 'dev', 'carbon:development', '在线开发', '0', NULL, NULL,
        '2025-07-13 18:39:51', 1, '2025-07-13 18:42:07');

-- ----------------------------
-- Table structure for graph_build_task
-- ----------------------------
DROP TABLE IF EXISTS `graph_build_task`;
CREATE TABLE `graph_build_task`
(
    `id`                  bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `task_uuid`           varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务UUID',
    `graph_uuid`          varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '图谱UUID',
    `knowledge_id`        varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '知识库ID',
    `doc_id`              varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文档ID（可选，null表示全量构建）',
    `task_type`           tinyint(2) NULL DEFAULT 1 COMMENT '任务类型：1全量构建、2增量更新、3重建',
    `task_status`         tinyint(2) NULL DEFAULT 1 COMMENT '任务状态：1待执行、2执行中、3成功、4失败',
    `progress`            int(3) NULL DEFAULT 0 COMMENT '进度百分比（0-100）',
    `total_docs`          int(11) NULL DEFAULT 0 COMMENT '总文档数',
    `processed_docs`      int(11) NULL DEFAULT 0 COMMENT '已处理文档数',
    `extracted_entities`  int(11) NULL DEFAULT 0 COMMENT '提取的实体数',
    `extracted_relations` int(11) NULL DEFAULT 0 COMMENT '提取的关系数',
    `error_message`       text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '错误信息',
    `result_summary`      json NULL COMMENT '结果摘要(JSON格式)',
    `start_time`          datetime NULL DEFAULT NULL COMMENT '开始时间',
    `end_time`            datetime NULL DEFAULT NULL COMMENT '结束时间',
    `create_dept`         bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`           varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
    `create_time`         datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_by`           varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
    `update_time`         datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `uk_task_uuid`(`task_uuid`) USING BTREE,
    INDEX                 `idx_graph_uuid`(`graph_uuid`) USING BTREE,
    INDEX                 `idx_knowledge_id`(`knowledge_id`) USING BTREE,
    INDEX                 `idx_task_status`(`task_status`) USING BTREE,
    INDEX                 `idx_create_time`(`create_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '图谱构建任务表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of graph_build_task
-- ----------------------------

-- ----------------------------
-- Table structure for graph_entity_type
-- ----------------------------
DROP TABLE IF EXISTS `graph_entity_type`;
CREATE TABLE `graph_entity_type`
(
    `id`          bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `type_name`   varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '实体类型名称',
    `type_code`   varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '类型编码',
    `description` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
    `color`       varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '#1890ff' COMMENT '可视化颜色',
    `icon`        varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图标',
    `sort`        int(4) NULL DEFAULT 0 COMMENT '显示顺序',
    `is_enable`   tinyint(1) NULL DEFAULT 1 COMMENT '是否启用（0否 1是）',
    `create_by`   varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
    `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_by`   varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
    `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `remark`      varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `uk_type_code`(`type_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '图谱实体类型定义表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of graph_entity_type
-- ----------------------------
INSERT INTO `graph_entity_type`
VALUES (1, '人物', 'PERSON', '人物实体，包括真实人物和虚拟角色', '#1890ff', 'user', 1, 1, '', '2025-11-07 16:33:37', '',
        '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_entity_type`
VALUES (2, '机构', 'ORGANIZATION', '组织机构，包括公司、政府机构等', '#52c41a', 'bank', 2, 1, '', '2025-11-07 16:33:37',
        '', '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_entity_type`
VALUES (3, '地点', 'LOCATION', '地理位置，包括国家、城市、地址等', '#fa8c16', 'environment', 3, 1, '',
        '2025-11-07 16:33:37', '', '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_entity_type`
VALUES (4, '概念', 'CONCEPT', '抽象概念，包括理论、方法等', '#722ed1', 'bulb', 4, 1, '', '2025-11-07 16:33:37', '',
        '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_entity_type`
VALUES (5, '事件', 'EVENT', '事件记录，包括历史事件、活动等', '#eb2f96', 'calendar', 5, 1, '', '2025-11-07 16:33:37', '',
        '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_entity_type`
VALUES (6, '产品', 'PRODUCT', '产品或服务', '#13c2c2', 'shopping', 6, 1, '', '2025-11-07 16:33:37', '',
        '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_entity_type`
VALUES (7, '技术', 'TECHNOLOGY', '技术或工具', '#2f54eb', 'tool', 7, 1, '', '2025-11-07 16:33:37', '',
        '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_entity_type`
VALUES (8, '文档', 'DOCUMENT', '文档或资料', '#faad14', 'file-text', 8, 1, '', '2025-11-07 16:33:37', '',
        '2025-11-07 16:33:37', NULL);

-- ----------------------------
-- Table structure for graph_query_history
-- ----------------------------
DROP TABLE IF EXISTS `graph_query_history`;
CREATE TABLE `graph_query_history`
(
    `id`            bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `query_uuid`    varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '查询UUID',
    `user_id`       bigint(20) NOT NULL COMMENT '用户ID',
    `knowledge_id`  varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '知识库ID',
    `graph_uuid`    varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图谱UUID',
    `query_text`    text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '查询文本',
    `query_type`    tinyint(2) NULL DEFAULT 1 COMMENT '查询类型：1实体查询、2关系查询、3路径查询、4混合查询',
    `cypher_query`  text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '生成的Cypher查询',
    `result_count`  int(11) NULL DEFAULT 0 COMMENT '结果数量',
    `response_time` int(11) NULL DEFAULT 0 COMMENT '响应时间(ms)',
    `is_success`    tinyint(1) NULL DEFAULT 1 COMMENT '是否成功（0否 1是）',
    `error_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '错误信息',
    `create_time`   datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `uk_query_uuid`(`query_uuid`) USING BTREE,
    INDEX           `idx_user_id`(`user_id`) USING BTREE,
    INDEX           `idx_knowledge_id`(`knowledge_id`) USING BTREE,
    INDEX           `idx_create_time`(`create_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '图谱查询历史表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of graph_query_history
-- ----------------------------

-- ----------------------------
-- Table structure for graph_relation_type
-- ----------------------------
DROP TABLE IF EXISTS `graph_relation_type`;
CREATE TABLE `graph_relation_type`
(
    `id`            bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `relation_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '关系名称',
    `relation_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '关系编码',
    `description`   varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
    `direction`     tinyint(1) NULL DEFAULT 1 COMMENT '关系方向：0双向、1单向',
    `style`         json NULL COMMENT '可视化样式(JSON格式)',
    `sort`          int(4) NULL DEFAULT 0 COMMENT '显示顺序',
    `is_enable`     tinyint(1) NULL DEFAULT 1 COMMENT '是否启用（0否 1是）',
    `create_by`     varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
    `create_time`   datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_by`     varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
    `update_time`   datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `remark`        varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `uk_relation_code`(`relation_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '图谱关系类型定义表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of graph_relation_type
-- ----------------------------
INSERT INTO `graph_relation_type`
VALUES (1, '属于', 'BELONGS_TO', '隶属关系，表示从属或归属', 1, NULL, 1, 1, '', '2025-11-07 16:33:37', '',
        '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_relation_type`
VALUES (2, '位于', 'LOCATED_IN', '地理位置关系', 1, NULL, 2, 1, '', '2025-11-07 16:33:37', '', '2025-11-07 16:33:37',
        NULL);
INSERT INTO `graph_relation_type`
VALUES (3, '相关', 'RELATED_TO', '一般关联关系', 0, NULL, 3, 1, '', '2025-11-07 16:33:37', '', '2025-11-07 16:33:37',
        NULL);
INSERT INTO `graph_relation_type`
VALUES (4, '导致', 'CAUSES', '因果关系', 1, NULL, 4, 1, '', '2025-11-07 16:33:37', '', '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_relation_type`
VALUES (5, '包含', 'CONTAINS', '包含关系', 1, NULL, 5, 1, '', '2025-11-07 16:33:37', '', '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_relation_type`
VALUES (6, '提及', 'MENTIONS', '文档提及实体的关系', 1, NULL, 6, 1, '', '2025-11-07 16:33:37', '',
        '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_relation_type`
VALUES (7, '部分', 'PART_OF', '部分关系', 1, NULL, 7, 1, '', '2025-11-07 16:33:37', '', '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_relation_type`
VALUES (8, '实例', 'INSTANCE_OF', '实例关系', 1, NULL, 8, 1, '', '2025-11-07 16:33:37', '', '2025-11-07 16:33:37',
        NULL);
INSERT INTO `graph_relation_type`
VALUES (9, '相似', 'SIMILAR_TO', '相似关系', 0, NULL, 9, 1, '', '2025-11-07 16:33:37', '', '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_relation_type`
VALUES (10, '前序', 'PRECEDES', '时序关系', 1, NULL, 10, 1, '', '2025-11-07 16:33:37', '', '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_relation_type`
VALUES (11, '工作于', 'WORKS_AT', '人物与机构的工作关系', 1, NULL, 11, 1, '', '2025-11-07 16:33:37', '',
        '2025-11-07 16:33:37', NULL);
INSERT INTO `graph_relation_type`
VALUES (12, '创建', 'CREATED_BY', '创建关系', 1, NULL, 12, 1, '', '2025-11-07 16:33:37', '', '2025-11-07 16:33:37',
        NULL);
INSERT INTO `graph_relation_type`
VALUES (13, '使用', 'USES', '使用关系', 1, NULL, 13, 1, '', '2025-11-07 16:33:37', '', '2025-11-07 16:33:37', NULL);

-- ----------------------------
-- Table structure for graph_statistics
-- ----------------------------
DROP TABLE IF EXISTS `graph_statistics`;
CREATE TABLE `graph_statistics`
(
    `id`                         bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `graph_uuid`                 varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '图谱UUID',
    `stat_date`                  date                                                         NOT NULL COMMENT '统计日期',
    `total_nodes`                int(11) NULL DEFAULT 0 COMMENT '总节点数',
    `total_relationships`        int(11) NULL DEFAULT 0 COMMENT '总关系数',
    `node_type_distribution`     json NULL COMMENT '节点类型分布(JSON格式)',
    `relation_type_distribution` json NULL COMMENT '关系类型分布(JSON格式)',
    `query_count`                int(11) NULL DEFAULT 0 COMMENT '查询次数',
    `avg_query_time`             int(11) NULL DEFAULT 0 COMMENT '平均查询时间(ms)',
    `create_time`                datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_time`                datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `uk_graph_date`(`graph_uuid`, `stat_date`) USING BTREE,
    INDEX                        `idx_stat_date`(`stat_date`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '图谱统计信息表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of graph_statistics
-- ----------------------------

-- ----------------------------
-- Table structure for knowledge_attach
-- ----------------------------
DROP TABLE IF EXISTS `knowledge_attach`;
CREATE TABLE `knowledge_attach`
(
    `id`              bigint(20) NOT NULL AUTO_INCREMENT,
    `kid`             varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '知识库ID',
    `doc_id`          varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '文档ID',
    `doc_name`        varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文档名称',
    `doc_type`        varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '文档类型',
    `oss_id`          int(11) NULL DEFAULT NULL COMMENT '对象存储ID',
    `pic_status`      tinyint(1) NOT NULL DEFAULT 10 COMMENT '拆解图片状态10未开始，20进行中，30已完成',
    `pic_anys_status` tinyint(1) NOT NULL DEFAULT 10 COMMENT '分析图片状态10未开始，20进行中，30已完成',
    `vector_status`   tinyint(1) NOT NULL DEFAULT 10 COMMENT '写入向量数据库状态10未开始，20进行中，30已完成',
    `content`         longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '文档内容',
    `create_dept`     varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门',
    `create_by`       varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
    `create_time`     datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`       bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`     datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`          varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `idx_kname`(`kid`, `doc_name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1926124407095468035 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '知识库附件' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of knowledge_attach
-- ----------------------------

-- ----------------------------
-- Table structure for knowledge_base_graph_segment
-- ----------------------------
DROP TABLE IF EXISTS `knowledge_base_graph_segment`;
CREATE TABLE `knowledge_base_graph_segment`
(
    `id`                bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
    `uuid`              varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '片段UUID',
    `kb_uuid`           varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '知识库UUID',
    `kb_item_uuid`      varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '知识库条目UUID',
    `doc_uuid`          varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文档UUID',
    `segment_text`      text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '片段文本内容',
    `chunk_index`       int(11) NULL DEFAULT 0 COMMENT '片段索引（第几个片段）',
    `total_chunks`      int(11) NULL DEFAULT 1 COMMENT '总片段数',
    `extraction_status` tinyint(4) NULL DEFAULT 0 COMMENT '抽取状态：0-待处理 1-处理中 2-已完成 3-失败',
    `entity_count`      int(11) NULL DEFAULT 0 COMMENT '抽取的实体数量',
    `relation_count`    int(11) NULL DEFAULT 0 COMMENT '抽取的关系数量',
    `token_used`        int(11) NULL DEFAULT 0 COMMENT '消耗的token数',
    `error_message`     varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '错误信息',
    `user_id`           bigint(20) NULL DEFAULT NULL COMMENT '用户ID',
    `create_time`       datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_time`       datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `remark`            varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `uk_uuid`(`uuid`) USING BTREE,
    INDEX               `idx_kb_uuid`(`kb_uuid`) USING BTREE,
    INDEX               `idx_kb_item_uuid`(`kb_item_uuid`) USING BTREE,
    INDEX               `idx_doc_uuid`(`doc_uuid`) USING BTREE,
    INDEX               `idx_user_id`(`user_id`) USING BTREE,
    INDEX               `idx_create_time`(`create_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '知识图谱片段表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of knowledge_base_graph_segment
-- ----------------------------

-- ----------------------------
-- Table structure for knowledge_fragment
-- ----------------------------
DROP TABLE IF EXISTS `knowledge_fragment`;
CREATE TABLE `knowledge_fragment`
(
    `id`          bigint(20) NOT NULL AUTO_INCREMENT,
    `kid`         varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '知识库ID',
    `doc_id`      varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文档ID',
    `fid`         varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '知识片段ID',
    `idx`         int(11) NOT NULL COMMENT '片段索引下标',
    `content`     text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '文档内容',
    `create_dept` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门',
    `create_by`   varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
    `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`      varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1926124406994804743 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '知识片段' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of knowledge_fragment
-- ----------------------------

-- ----------------------------
-- Table structure for knowledge_graph_instance
-- ----------------------------
DROP TABLE IF EXISTS `knowledge_graph_instance`;
CREATE TABLE `knowledge_graph_instance`
(
    `id`                 bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `graph_uuid`         varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NOT NULL COMMENT '图谱UUID',
    `knowledge_id`       varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NOT NULL COMMENT '关联knowledge_info.kid',
    `graph_name`         varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '图谱名称',
    `graph_status`       tinyint(2) NULL DEFAULT 10 COMMENT '构建状态：10构建中、20已完成、30失败',
    `node_count`         int(11) NULL DEFAULT 0 COMMENT '节点数量',
    `relationship_count` int(11) NULL DEFAULT 0 COMMENT '关系数量',
    `config`             json NULL COMMENT '图谱配置(JSON格式)',
    `model_name`         varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'LLM模型名称',
    `entity_types`       varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实体类型（逗号分隔）',
    `relation_types`     varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关系类型（逗号分隔）',
    `error_message`      text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '错误信息',
    `create_dept`        bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`          varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
    `create_time`        datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_by`          varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
    `update_time`        datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `remark`             varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    `del_flag`           char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `uk_graph_uuid`(`graph_uuid`) USING BTREE,
    INDEX                `idx_knowledge_id`(`knowledge_id`) USING BTREE,
    INDEX                `idx_graph_status`(`graph_status`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '知识图谱实例表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of knowledge_graph_instance
-- ----------------------------

-- ----------------------------
-- Table structure for knowledge_info
-- ----------------------------
DROP TABLE IF EXISTS `knowledge_info`;
CREATE TABLE `knowledge_info`
(
    `id`                   bigint(20) NOT NULL AUTO_INCREMENT,
    `kid`                  varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '知识库ID',
    `uid`                  bigint(20) NOT NULL DEFAULT 0 COMMENT '用户ID',
    `kname`                varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '知识库名称',
    `share`                tinyint(4) NULL DEFAULT NULL COMMENT '是否公开知识库（0 否 1是）',
    `description`          varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
    `knowledge_separator`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '知识分隔符',
    `question_separator`   varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提问分隔符',
    `overlap_char`         int(11) NULL DEFAULT NULL COMMENT '重叠字符数',
    `retrieve_limit`       int(11) NULL DEFAULT NULL COMMENT '知识库中检索的条数',
    `text_block_size`      int(11) NULL DEFAULT NULL COMMENT '文本块大小',
    `vector_model_name`    varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '向量库',
    `embedding_model_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '向量模型',
    `embedding_model_id`   bigint(20) NULL DEFAULT NULL COMMENT '模型id',
    `system_prompt`        varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '系统提示词',
    `create_dept`          varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门',
    `create_by`            varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
    `create_time`          datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`            bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`          datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`               varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE,
    UNIQUE INDEX `idx_kid`(`kid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1926124373012553730 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '知识库' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of knowledge_info
-- ----------------------------

-- ----------------------------
-- Table structure for knowledge_role
-- ----------------------------
DROP TABLE IF EXISTS `knowledge_role`;
CREATE TABLE `knowledge_role`
(
    `id`          bigint(20) NOT NULL COMMENT '知识库角色id',
    `name`        varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '知识库角色name',
    `del_flag`    char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`   bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`      varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    `group_id`    bigint(20) NULL DEFAULT NULL COMMENT '知识库角色组id',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '知识库角色表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of knowledge_role
-- ----------------------------

-- ----------------------------
-- Table structure for knowledge_role_group
-- ----------------------------
DROP TABLE IF EXISTS `knowledge_role_group`;
CREATE TABLE `knowledge_role_group`
(
    `id`          bigint(20) NOT NULL COMMENT '知识库角色组id',
    `name`        varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '知识库角色组name',
    `del_flag`    char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`   bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`      varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '知识库角色组表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of knowledge_role_group
-- ----------------------------

-- ----------------------------
-- Table structure for knowledge_role_relation
-- ----------------------------
DROP TABLE IF EXISTS `knowledge_role_relation`;
CREATE TABLE `knowledge_role_relation`
(
    `id`                bigint(20) NOT NULL COMMENT 'id',
    `del_flag`          char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    `create_dept`       bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`         bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`       datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`         bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`       datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`            varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    `knowledge_role_id` bigint(20) NULL DEFAULT NULL COMMENT '知识库角色id',
    `knowledge_id`      bigint(20) NULL DEFAULT NULL COMMENT '知识库id',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '知识库角色与知识库关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of knowledge_role_relation
-- ----------------------------

-- ----------------------------
-- Table structure for mcp_info
-- ----------------------------
DROP TABLE IF EXISTS `mcp_info`;
CREATE TABLE `mcp_info`
(
    `mcp_id`         bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `server_name`    varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '服务器名称',
    `transport_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '链接方式',
    `command`        varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '命令',
    `arguments`      varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数',
    `env`            varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '环境',
    `status`         tinyint(1) NULL DEFAULT NULL COMMENT '是否启用',
    `description`    varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '工具描述',
    `create_dept`    bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`      bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`    datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`      bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`    datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`         varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`mcp_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'mcp工具管理' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of mcp_info
-- ----------------------------
INSERT INTO `mcp_info`
VALUES (1, 'howtocook-mcp', 'STDIO', 'npx', '[\"-y\", \"howtocook-mcp\"]', NULL, 1, NULL, NULL, NULL,
        '2025-08-11 17:19:25', 1, '2025-08-11 18:24:22', NULL);

-- ----------------------------
-- Table structure for prompt_template
-- ----------------------------
DROP TABLE IF EXISTS `prompt_template`;
CREATE TABLE `prompt_template`
(
    `id`               bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `template_name`    varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提示词模板名称',
    `template_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '提示词模板内容',
    `category`         varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提示词分类，knowledge 知识库类型，chat 对话类型，draw绘画类型 ...',
    `create_dept`      bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`        bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`      datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`        bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`      datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`           varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '提示词模板表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of prompt_template
-- ----------------------------

-- ----------------------------
-- Table structure for sys_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config`
(
    `config_id`    bigint(20) NOT NULL COMMENT '参数主键',
    `tenant_id`    varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
    `config_name`  varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数名称',
    `config_key`   varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键名',
    `config_value` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值',
    `config_type`  char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '系统内置（Y是 N否）',
    `create_dept`  bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`    bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`  datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`    bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`  datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`       varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参数配置表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_config
-- ----------------------------
INSERT INTO `sys_config`
VALUES (1, '000000', '主框架页-默认皮肤样式名称', 'skin-purple', 'skin-blue', 'N', 103, 1, '2023-05-14 15:19:42', 1,
        '2025-03-28 22:30:49', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
INSERT INTO `sys_config`
VALUES (2, '000000', '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'N', 103, 1, '2023-05-14 15:19:42', 1,
        '2025-03-28 10:40:44', '初始化密码 123456');
INSERT INTO `sys_config`
VALUES (3, '000000', '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 103, 1, '2023-05-14 15:19:42', 1,
        '2025-03-28 10:40:50', '深色主题theme-dark，浅色主题theme-light');
INSERT INTO `sys_config`
VALUES (5, '000000', '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 103, 1,
        '2023-05-14 15:19:42', 1, '2025-03-28 10:40:57', '是否开启注册用户功能（true开启，false关闭）');
INSERT INTO `sys_config`
VALUES (11, '000000', 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 103, 1, '2023-05-14 15:19:42',
        NULL, NULL, 'true:开启, false:关闭');

-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept`
(
    `dept_id`     bigint(20) NOT NULL COMMENT '部门id',
    `tenant_id`   varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
    `parent_id`   bigint(20) NULL DEFAULT 0 COMMENT '父部门id',
    `ancestors`   varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '祖级列表',
    `dept_name`   varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
    `order_num`   int(4) NULL DEFAULT 0 COMMENT '显示顺序',
    `leader`      varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '负责人',
    `phone`       varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系电话',
    `email`       varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
    `status`      char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '部门状态（0正常 1停用）',
    `del_flag`    char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`   bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
    PRIMARY KEY (`dept_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '部门表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_dept
-- ----------------------------
INSERT INTO `sys_dept`
VALUES (100, '000000', 0, '0', '熊猫科技', 0, 'ageerle', '15888888888', 'ageerle@163.com', '0', '0', 103, 1,
        '2023-05-14 15:19:39', 1, '2023-12-29 11:18:24');
INSERT INTO `sys_dept`
VALUES (101, '000000', 100, '0,100', '深圳总公司', 1, '疯狂的狮子Li', '15888888888', 'xxx@qq.com', '0', '0', 103, 1,
        '2023-05-14 15:19:39', NULL, NULL);
INSERT INTO `sys_dept`
VALUES (102, '000000', 100, '0,100', '长沙分公司', 2, '疯狂的狮子Li', '15888888888', 'xxx@qq.com', '0', '2', 103, 1,
        '2023-05-14 15:19:39', NULL, NULL);
INSERT INTO `sys_dept`
VALUES (103, '000000', 101, '0,100,101', '研发部门', 1, '疯狂的狮子Li', '15888888888', 'xxx@qq.com', '0', '0', 103, 1,
        '2023-05-14 15:19:39', NULL, NULL);
INSERT INTO `sys_dept`
VALUES (104, '000000', 101, '0,100,101', '市场部门', 2, '疯狂的狮子Li', '15888888888', 'xxx@qq.com', '0', '2', 103, 1,
        '2023-05-14 15:19:39', NULL, NULL);
INSERT INTO `sys_dept`
VALUES (105, '000000', 101, '0,100,101', '测试部门', 3, '疯狂的狮子Li', '15888888888', 'xxx@qq.com', '0', '2', 103, 1,
        '2023-05-14 15:19:39', NULL, NULL);
INSERT INTO `sys_dept`
VALUES (106, '000000', 101, '0,100,101', '财务部门', 4, '疯狂的狮子Li', '15888888888', 'xxx@qq.com', '0', '2', 103, 1,
        '2023-05-14 15:19:39', NULL, NULL);
INSERT INTO `sys_dept`
VALUES (107, '000000', 101, '0,100,101', '运维部门', 5, '疯狂的狮子Li', '15888888888', 'xxx@qq.com', '0', '2', 103, 1,
        '2023-05-14 15:19:39', NULL, NULL);
INSERT INTO `sys_dept`
VALUES (108, '000000', 102, '0,100,102', '市场部门', 1, '疯狂的狮子Li', '15888888888', 'xxx@qq.com', '0', '2', 103, 1,
        '2023-05-14 15:19:39', NULL, NULL);

-- ----------------------------
-- Table structure for sys_dict_data
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_data`;
CREATE TABLE `sys_dict_data`
(
    `dict_code`   bigint(20) NOT NULL COMMENT '字典编码',
    `tenant_id`   varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
    `dict_sort`   int(11) NULL DEFAULT 0 COMMENT '字典排序',
    `dict_label`  varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典标签',
    `dict_value`  varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典键值',
    `dict_type`   varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
    `css_class`   varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '样式属性（其他样式扩展）',
    `list_class`  varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '表格回显样式',
    `is_default`  char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否默认（Y是 N否）',
    `status`      char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态（0正常 1停用）',
    `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`   bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`      varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`dict_code`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典数据表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_dict_data
-- ----------------------------
INSERT INTO `sys_dict_data`
VALUES (1, '000000', 1, '男', '0', 'sys_user_sex', '', '', 'Y', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL,
        '性别男');
INSERT INTO `sys_dict_data`
VALUES (2, '000000', 2, '女', '1', 'sys_user_sex', '', '', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL,
        '性别女');
INSERT INTO `sys_dict_data`
VALUES (3, '000000', 3, '未知', '2', 'sys_user_sex', '', '', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL,
        '性别未知');
INSERT INTO `sys_dict_data`
VALUES (4, '000000', 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '显示菜单');
INSERT INTO `sys_dict_data`
VALUES (5, '000000', 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL,
        '隐藏菜单');
INSERT INTO `sys_dict_data`
VALUES (6, '000000', 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '正常状态');
INSERT INTO `sys_dict_data`
VALUES (7, '000000', 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '停用状态');
INSERT INTO `sys_dict_data`
VALUES (12, '000000', 1, '是', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL,
        '系统默认是');
INSERT INTO `sys_dict_data`
VALUES (13, '000000', 2, '否', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL,
        '系统默认否');
INSERT INTO `sys_dict_data`
VALUES (14, '000000', 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '通知');
INSERT INTO `sys_dict_data`
VALUES (15, '000000', 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '公告');
INSERT INTO `sys_dict_data`
VALUES (16, '000000', 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '正常状态');
INSERT INTO `sys_dict_data`
VALUES (17, '000000', 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '关闭状态');
INSERT INTO `sys_dict_data`
VALUES (18, '000000', 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL,
        '新增操作');
INSERT INTO `sys_dict_data`
VALUES (19, '000000', 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL,
        '修改操作');
INSERT INTO `sys_dict_data`
VALUES (20, '000000', 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '删除操作');
INSERT INTO `sys_dict_data`
VALUES (21, '000000', 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '授权操作');
INSERT INTO `sys_dict_data`
VALUES (22, '000000', 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '导出操作');
INSERT INTO `sys_dict_data`
VALUES (23, '000000', 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '导入操作');
INSERT INTO `sys_dict_data`
VALUES (24, '000000', 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '强退操作');
INSERT INTO `sys_dict_data`
VALUES (25, '000000', 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '生成操作');
INSERT INTO `sys_dict_data`
VALUES (26, '000000', 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '清空操作');
INSERT INTO `sys_dict_data`
VALUES (27, '000000', 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '正常状态');
INSERT INTO `sys_dict_data`
VALUES (28, '000000', 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL,
        NULL, '停用状态');
INSERT INTO `sys_dict_data`
VALUES (29, '000000', 99, '其他', '0', 'sys_oper_type', '', 'info', 'N', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL,
        '其他操作');
INSERT INTO `sys_dict_data`
VALUES (1775756996568993793, '000000', 1, '免费用户', '0', 'sys_user_grade', '', 'info', 'N', '0', 103, 1,
        '2024-04-04 13:27:15', 1, '2024-04-04 13:30:09', '');
INSERT INTO `sys_dict_data`
VALUES (1775757116970684418, '000000', 2, '高级会员', '1', 'sys_user_grade', '', 'success', 'N', '0', 103, 1,
        '2024-04-04 13:27:43', 1, '2024-04-04 13:30:15', '');
INSERT INTO `sys_dict_data`
VALUES (1776109770934677506, '000000', 0, 'token计费', '1', 'sys_model_billing', '', 'primary', 'N', '0', 103, 1,
        '2024-04-05 12:49:03', 1, '2024-04-21 00:05:41', '');
INSERT INTO `sys_dict_data`
VALUES (1776109853377916929, '000000', 0, '次数计费', '2', 'sys_model_billing', '', 'success', 'N', '0', 103, 1,
        '2024-04-05 12:49:22', 1, '2024-04-05 12:49:22', '');
INSERT INTO `sys_dict_data`
VALUES (1780264338471858177, '000000', 0, '未支付', '1', 'pay_state', '', 'info', 'N', '0', 103, 1,
        '2024-04-16 23:57:49', 1, '2024-04-16 23:58:29', '');
INSERT INTO `sys_dict_data`
VALUES (1780264431589601282, '000000', 2, '已支付', '2', 'pay_state', '', 'success', 'N', '0', 103, 1,
        '2024-04-16 23:58:11', 1, '2024-04-16 23:58:21', '');
INSERT INTO `sys_dict_data`
VALUES (1933094189606670338, '000000', 0, '知识库', 'vector', 'prompt_template_type', NULL, '', 'N', '0', 103, 1,
        '2025-06-12 17:29:05', 1, '2025-06-12 17:29:05', NULL);
INSERT INTO `sys_dict_data`
VALUES (1938226101050925057, '000000', 1, '中转模型-chat', 'chat', 'chat_model_category', NULL, '', 'N', '0', 103, 1,
        '2025-06-26 21:21:28', 1, '2025-06-26 21:22:26', NULL);
INSERT INTO `sys_dict_data`
VALUES (1938226833825193985, '000000', 1, '本地部署模型-ollama', 'ollama', 'chat_model_category', NULL, '', 'N', '0',
        103, 1, '2025-06-26 21:24:22', 1, '2025-06-26 21:24:22', NULL);
INSERT INTO `sys_dict_data`
VALUES (1938226919661625345, '000000', 1, 'DIFY-dify', 'dify', 'chat_model_category', NULL, '', 'N', '0', 103, 1,
        '2025-06-26 21:24:43', 1, '2025-06-26 21:24:43', NULL);
INSERT INTO `sys_dict_data`
VALUES (1938226981422751746, '000000', 1, '扣子-coze', 'coze', 'chat_model_category', NULL, '', 'N', '0', 103, 1,
        '2025-06-26 21:24:58', 1, '2025-06-26 21:24:58', NULL);
INSERT INTO `sys_dict_data`
VALUES (1938227034350673922, '000000', 1, '智谱清言-zhipu', 'zhipu', 'chat_model_category', NULL, '', 'N', '0', 103, 1,
        '2025-06-26 21:25:10', 1, '2025-06-26 21:25:10', NULL);
INSERT INTO `sys_dict_data`
VALUES (1938227086750113793, '000000', 1, '深度求索-deepseek', 'deepseek', 'chat_model_category', NULL, '', 'N', '0',
        103, 1, '2025-06-26 21:25:23', 1, '2025-06-26 21:25:23', NULL);
INSERT INTO `sys_dict_data`
VALUES (1938227141741633537, '000000', 1, '通义千问-qianwen', 'qianwen', 'chat_model_category', NULL, '', 'N', '0', 103,
        1, '2025-06-26 21:25:36', 1, '2025-06-26 21:25:36', NULL);
INSERT INTO `sys_dict_data`
VALUES (1938227191834206209, '000000', 1, '知识库向量模型-vector', 'vector', 'chat_model_category', NULL, '', 'N', '0',
        103, 1, '2025-06-26 21:25:48', 1, '2025-06-26 21:25:48', NULL);
INSERT INTO `sys_dict_data`
VALUES (1938227249417805826, '000000', 1, '图片识别模型-image', 'image', 'chat_model_category', NULL, '', 'N', '0', 103,
        1, '2025-06-26 21:26:01', 1, '2025-06-26 21:26:01', NULL);
INSERT INTO `sys_dict_data`
VALUES (1940594785010503681, '000000', 1, 'FASTGPT-fastgpt', 'fastgpt', 'chat_model_category', NULL, '', 'N', '0', 103,
        1, '2025-07-03 10:13:46', 1, '2025-07-03 10:13:46', NULL);
INSERT INTO `sys_dict_data`
VALUES (1954098808913211393, '000000', 0, 'STDIO', 'STDIO', 'mcp_transport_type', NULL, '', 'N', '0', NULL, NULL,
        '2025-08-09 16:33:56', 1, '2025-08-09 16:34:19', NULL);
INSERT INTO `sys_dict_data`
VALUES (1954098960432443394, '000000', 1, 'SSE', 'SSE', 'mcp_transport_type', NULL, '', 'N', '0', NULL, NULL,
        '2025-08-09 16:34:32', NULL, '2025-08-09 16:34:32', NULL);
INSERT INTO `sys_dict_data`
VALUES (1954099421436784642, '000000', 2, 'HTTP', 'HTTP', 'mcp_transport_type', NULL, '', 'N', '0', NULL, NULL,
        '2025-08-09 16:36:22', NULL, '2025-08-09 16:36:22', NULL);
INSERT INTO `sys_dict_data`
VALUES (1971580207002615809, '000000', 0, '未发布', '0', 'aihuman_is_publish', NULL, '#949494', 'N', '0', NULL, NULL,
        '2025-09-26 22:18:46', NULL, '2025-09-26 22:18:46', NULL);
INSERT INTO `sys_dict_data`
VALUES (1971580286589534210, '000000', 1, '已发布', '1', 'aihuman_is_publish', NULL, '#00a89d', 'N', '0', NULL, NULL,
        '2025-09-26 22:19:05', 1, '2025-09-26 22:19:25', NULL);

-- ----------------------------
-- Table structure for sys_dict_type
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_type`;
CREATE TABLE `sys_dict_type`
(
    `dict_id`     bigint(20) NOT NULL COMMENT '字典主键',
    `tenant_id`   varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
    `dict_name`   varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典名称',
    `dict_type`   varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '字典类型',
    `status`      char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态（0正常 1停用）',
    `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`   bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`      varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`dict_id`) USING BTREE,
    UNIQUE INDEX `tenant_id`(`tenant_id`, `dict_type`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典类型表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_dict_type
-- ----------------------------
INSERT INTO `sys_dict_type`
VALUES (1, '000000', '用户性别', 'sys_user_sex', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL, '用户性别列表');
INSERT INTO `sys_dict_type`
VALUES (2, '000000', '菜单状态', 'sys_show_hide', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL, '菜单状态列表');
INSERT INTO `sys_dict_type`
VALUES (3, '000000', '系统开关', 'sys_normal_disable', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL, '系统开关列表');
INSERT INTO `sys_dict_type`
VALUES (6, '000000', '系统是否', 'sys_yes_no', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL, '系统是否列表');
INSERT INTO `sys_dict_type`
VALUES (7, '000000', '通知类型', 'sys_notice_type', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL, '通知类型列表');
INSERT INTO `sys_dict_type`
VALUES (8, '000000', '通知状态', 'sys_notice_status', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL, '通知状态列表');
INSERT INTO `sys_dict_type`
VALUES (9, '000000', '操作类型', 'sys_oper_type', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL, '操作类型列表');
INSERT INTO `sys_dict_type`
VALUES (10, '000000', '系统状态', 'sys_common_status', '0', 103, 1, '2023-05-14 15:19:41', NULL, NULL, '登录状态列表');
INSERT INTO `sys_dict_type`
VALUES (1729685494468083714, '911866', '用户性别', 'sys_user_sex', '0', 103, 1, '2023-05-14 15:19:41', 1,
        '2023-05-14 15:19:41', '用户性别列表');
INSERT INTO `sys_dict_type`
VALUES (1729685494468083715, '911866', '菜单状态', 'sys_show_hide', '0', 103, 1, '2023-05-14 15:19:41', 1,
        '2023-05-14 15:19:41', '菜单状态列表');
INSERT INTO `sys_dict_type`
VALUES (1729685494468083716, '911866', '系统开关', 'sys_normal_disable', '0', 103, 1, '2023-05-14 15:19:41', 1,
        '2023-05-14 15:19:41', '系统开关列表');
INSERT INTO `sys_dict_type`
VALUES (1729685494468083717, '911866', '系统是否', 'sys_yes_no', '0', 103, 1, '2023-05-14 15:19:41', 1,
        '2023-05-14 15:19:41', '系统是否列表');
INSERT INTO `sys_dict_type`
VALUES (1729685494468083718, '911866', '通知类型', 'sys_notice_type', '0', 103, 1, '2023-05-14 15:19:41', 1,
        '2023-05-14 15:19:41', '通知类型列表');
INSERT INTO `sys_dict_type`
VALUES (1729685494468083719, '911866', '通知状态', 'sys_notice_status', '0', 103, 1, '2023-05-14 15:19:41', 1,
        '2023-05-14 15:19:41', '通知状态列表');
INSERT INTO `sys_dict_type`
VALUES (1729685494468083720, '911866', '操作类型', 'sys_oper_type', '0', 103, 1, '2023-05-14 15:19:41', 1,
        '2023-05-14 15:19:41', '操作类型列表');
INSERT INTO `sys_dict_type`
VALUES (1729685494468083721, '911866', '系统状态', 'sys_common_status', '0', 103, 1, '2023-05-14 15:19:41', 1,
        '2023-05-14 15:19:41', '登录状态列表');
INSERT INTO `sys_dict_type`
VALUES (1775756736895438849, '000000', '用户等级', 'sys_user_grade', '0', 103, 1, '2024-04-04 13:26:13', 1,
        '2024-04-04 13:26:13', '');
INSERT INTO `sys_dict_type`
VALUES (1776109665045278721, '000000', '模型计费方式', 'sys_model_billing', '0', 103, 1, '2024-04-05 12:48:37', 1,
        '2024-04-08 11:22:18', '模型计费方式');
INSERT INTO `sys_dict_type`
VALUES (1780263881368219649, '000000', '支付状态', 'pay_state', '0', 103, 1, '2024-04-16 23:56:00', 1,
        '2025-03-29 15:21:57', '支付状态');
INSERT INTO `sys_dict_type`
VALUES (1904565568803217409, '000000', '状态类型', 'status_type', '0', 103, 1, '2025-03-26 00:06:31', 1,
        '2025-03-26 00:06:31', NULL);
INSERT INTO `sys_dict_type`
VALUES (1933093946274123777, '000000', '提示词模板分类', 'prompt_template_type', '0', 103, 1, '2025-06-12 17:28:07', 1,
        '2025-06-12 17:28:07', '提示词模板类型');
INSERT INTO `sys_dict_type`
VALUES (1938225899023884289, '000000', '模型分类', 'chat_model_category', '0', 103, 1, '2025-06-26 21:20:39', 1,
        '2025-06-26 21:20:39', '模型分类');
INSERT INTO `sys_dict_type`
VALUES (1954098639622713345, '000000', 'mcp链接方式', 'mcp_transport_type', '0', NULL, NULL, '2025-08-09 16:33:16',
        NULL, '2025-08-09 16:33:16', NULL);
INSERT INTO `sys_dict_type`
VALUES (1971579935501123586, '000000', '发布状态', 'aihuman_is_publish', '0', NULL, NULL, '2025-09-26 22:17:41', NULL,
        '2025-09-26 22:17:41', '0 代表未发布，1代表发布');

-- ----------------------------
-- Table structure for sys_file_info
-- ----------------------------
DROP TABLE IF EXISTS `sys_file_info`;
CREATE TABLE `sys_file_info`
(
    `id`                bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '文件id',
    `url`               varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文件访问地址',
    `size`              bigint(20) NULL DEFAULT NULL COMMENT '文件大小，单位字节',
    `filename`          varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名称',
    `original_filename` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '原始文件名',
    `base_path`         varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '基础存储路径',
    `path`              varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '存储路径',
    `ext`               varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件扩展名',
    `user_id`           varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件所属用户',
    `file_type`         varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件类型',
    `attr`              text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '附加属性',
    `create_dept`       bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_time`       datetime NULL DEFAULT NULL COMMENT '创建时间',
    `create_by`         varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
    `update_by`         varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
    `update_time`       datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`            varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    `version`           int(11) NULL DEFAULT NULL COMMENT '版本',
    `del_flag`          char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 1代表删除）',
    `update_ip`         varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新IP',
    `tenant_id`         bigint(20) NOT NULL DEFAULT 0 COMMENT '租户Id',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '文件记录表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_file_info
-- ----------------------------

-- ----------------------------
-- Table structure for sys_logininfor
-- ----------------------------
DROP TABLE IF EXISTS `sys_logininfor`;
CREATE TABLE `sys_logininfor`
(
    `info_id`        bigint(20) NOT NULL COMMENT '访问ID',
    `tenant_id`      varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
    `user_name`      varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '用户账号',
    `ipaddr`         varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登录IP地址',
    `login_location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '登录地点',
    `browser`        varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '浏览器类型',
    `os`             varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作系统',
    `status`         char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '登录状态（0成功 1失败）',
    `msg`            varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '提示消息',
    `login_time`     datetime NULL DEFAULT NULL COMMENT '访问时间',
    PRIMARY KEY (`info_id`) USING BTREE,
    INDEX            `idx_sys_logininfor_s`(`status`) USING BTREE,
    INDEX            `idx_sys_logininfor_lt`(`login_time`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统访问记录' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_logininfor
-- ----------------------------
INSERT INTO `sys_logininfor`
VALUES (1968243347490783233, '00000', 'admin', '127.0.0.1', '内网IP', 'MSEdge', 'Windows 10 or Windows Server 2016',
        '0', '登录成功', '2025-09-17 17:19:17');

-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu`
(
    `menu_id`     bigint(20) NOT NULL COMMENT '菜单ID',
    `menu_name`   varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单名称',
    `parent_id`   bigint(20) NULL DEFAULT 0 COMMENT '父菜单ID',
    `order_num`   int(11) NULL DEFAULT 0 COMMENT '显示顺序',
    `path`        varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '路由地址',
    `component`   varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '组件路径',
    `query_param` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由参数',
    `is_frame`    int(11) NULL DEFAULT 1 COMMENT '是否为外链（0是 1否）',
    `is_cache`    int(11) NULL DEFAULT 0 COMMENT '是否缓存（0缓存 1不缓存）',
    `menu_type`   char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '菜单类型（M目录 C菜单 F按钮）',
    `visible`     char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '显示状态（0显示 1隐藏）',
    `status`      char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '菜单状态（0正常 1停用）',
    `perms`       varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限标识',
    `icon`        varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '#' COMMENT '菜单图标',
    `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`   bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`      varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '备注',
    PRIMARY KEY (`menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单权限表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu`
VALUES (1, '系统管理', 0, 5, 'system', '', '', 1, 0, 'M', '0', '0', '', 'eos-icons:system-group', 103, 1,
        '2023-05-14 15:19:39', 1, '2025-09-26 20:19:31', '系统管理目录');
INSERT INTO `sys_menu`
VALUES (100, '用户管理', 1775500307898949634, 1, 'user', 'operator/user/index', '', 1, 0, 'C', '0', '0',
        'system:user:list', 'ph:user-fill', 103, 1, '2023-05-14 15:19:39', 1, '2024-10-07 21:29:29', '用户管理菜单');
INSERT INTO `sys_menu`
VALUES (101, '角色管理', 1, 2, 'role', 'system/role/index', '', 1, 0, 'C', '0', '0', 'system:role:list',
        'ri:user-3-fill', 103, 1, '2023-05-14 15:19:39', 1, '2024-10-07 21:04:59', '角色管理菜单');
INSERT INTO `sys_menu`
VALUES (102, '菜单管理', 1, 3, 'menu', 'system/menu/index', '', 1, 0, 'C', '0', '0', 'system:menu:list',
        'typcn:th-menu-outline', 103, 1, '2023-05-14 15:19:39', 1, '2024-10-07 21:06:06', '菜单管理菜单');
INSERT INTO `sys_menu`
VALUES (103, '部门管理', 1, 4, 'dept', 'system/dept/index', '', 1, 0, 'C', '1', '1', 'system:dept:list', 'mdi:company',
        103, 1, '2023-05-14 15:19:39', 1, '2024-10-07 21:07:38', '部门管理菜单');
INSERT INTO `sys_menu`
VALUES (104, '岗位管理', 1, 5, 'post', 'system/post/index', '', 1, 0, 'C', '1', '1', 'system:post:list', 'post', 103, 1,
        '2023-05-14 15:19:39', 1, '2024-04-04 22:36:15', '岗位管理菜单');
INSERT INTO `sys_menu`
VALUES (105, '字典管理', 1, 6, 'dict', 'system/dict/index', '', 1, 0, 'C', '0', '0', 'system:dict:list',
        'fluent-mdl2:dictionary', 103, 1, '2023-05-14 15:19:40', 1, '2024-10-07 21:14:33', '字典管理菜单');
INSERT INTO `sys_menu`
VALUES (106, '系统参数', 1, 10, 'config', 'system/config/index', '', 1, 0, 'C', '0', '0', 'system:config:list',
        'tdesign:system-code', 103, 1, '2023-05-14 15:19:40', 1, '2024-10-07 21:11:07', '参数设置菜单');
INSERT INTO `sys_menu`
VALUES (107, '通知公告', 1, 14, 'notice', 'system/notice/index', '', 1, 0, 'C', '0', '0', 'system:notice:list',
        'icon-park-solid:volume-notice', 103, 1, '2023-05-14 15:19:40', 1, '2024-10-07 21:11:42', '通知公告菜单');
INSERT INTO `sys_menu`
VALUES (108, '日志管理', 1, 9, 'log', '', '', 1, 0, 'M', '0', '0', '', 'icon-park-solid:log', 103, 1,
        '2023-05-14 15:19:40', 1, '2024-10-07 21:10:41', '日志管理菜单');
INSERT INTO `sys_menu`
VALUES (113, '缓存监控', 1, 5, 'cache', 'monitor/cache/index', '', 1, 0, 'C', '0', '0', 'monitor:cache:list',
        'octicon:cache-24', 103, 1, '2023-05-14 15:19:40', 1, '2024-10-07 21:09:44', '缓存监控菜单');
INSERT INTO `sys_menu`
VALUES (500, '操作日志', 108, 1, 'operlog', 'monitor/operlog/index', '', 1, 0, 'C', '0', '0', 'monitor:operlog:list',
        'icon-park-solid:log', 103, 1, '2023-05-14 15:19:40', 1, '2024-10-07 21:13:20', '操作日志菜单');
INSERT INTO `sys_menu`
VALUES (501, '登录日志', 108, 2, 'logininfor', 'monitor/logininfor/index', '', 1, 0, 'C', '0', '0',
        'monitor:logininfor:list', 'icon-park-solid:log', 103, 1, '2023-05-14 15:19:40', 1, '2024-10-07 21:13:33',
        '登录日志菜单');
INSERT INTO `sys_menu`
VALUES (1001, '用户查询', 100, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1002, '用户新增', 100, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1003, '用户修改', 100, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1004, '用户删除', 100, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1005, '用户导出', 100, 5, '', '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1006, '用户导入', 100, 6, '', '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1007, '重置密码', 100, 7, '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1008, '角色查询', 101, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1009, '角色新增', 101, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1010, '角色修改', 101, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1011, '角色删除', 101, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1012, '角色导出', 101, 5, '', '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1013, '菜单查询', 102, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1014, '菜单新增', 102, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1015, '菜单修改', 102, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1016, '菜单删除', 102, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1017, '部门查询', 103, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1018, '部门新增', 103, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1019, '部门修改', 103, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1020, '部门删除', 103, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1021, '岗位查询', 104, 1, '', '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1022, '岗位新增', 104, 2, '', '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1023, '岗位修改', 104, 3, '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1024, '岗位删除', 104, 4, '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1025, '岗位导出', 104, 5, '', '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1026, '字典查询', 105, 1, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1027, '字典新增', 105, 2, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1028, '字典修改', 105, 3, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1029, '字典删除', 105, 4, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1030, '字典导出', 105, 5, '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1031, '参数查询', 106, 1, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1032, '参数新增', 106, 2, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1033, '参数修改', 106, 3, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1034, '参数删除', 106, 4, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1035, '参数导出', 106, 5, '#', '', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1036, '公告查询', 107, 1, '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1037, '公告新增', 107, 2, '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1038, '公告修改', 107, 3, '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1039, '公告删除', 107, 4, '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1040, '操作查询', 500, 1, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:query', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1041, '操作删除', 500, 2, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:remove', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1042, '日志导出', 500, 4, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:export', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1043, '登录查询', 501, 1, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:query', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1044, '登录删除', 501, 2, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:remove', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1045, '日志导出', 501, 3, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:export', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1050, '账户解锁', 501, 4, '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:unlock', '#', 103, 1,
        '2023-05-14 15:19:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (2000, '在线开发', 0, 20, 'dev', '', '', 1, 0, 'M', '0', '0', '', 'carbon:development', 103, 1,
        '2025-07-11 19:38:05', 1, '2025-07-11 19:43:03', '在线开发目录');
INSERT INTO `sys_menu`
VALUES (1775500307898949634, '运营管理', 0, 3, 'operate', '', NULL, 1, 0, 'M', '0', '0', NULL,
        'icon-park-outline:appointment', 103, 1, '2024-04-03 20:27:15', 1, '2025-09-26 20:19:38', '');
INSERT INTO `sys_menu`
VALUES (1775895273104068610, '系统模型', 1775500307898949634, 2, 'model', 'operator/model/index', NULL, 1, 0, 'C', '0',
        '0', 'system:model:list', 'ph:list-fill', 103, 1, '2024-04-05 12:00:38', 1, '2024-10-07 21:36:00',
        '系统模型菜单');
INSERT INTO `sys_menu`
VALUES (1775895273104068611, '系统模型查询', 1775895273104068610, 1, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:model:query', '#', 103, 1, '2024-04-05 12:00:38', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1775895273104068612, '系统模型新增', 1775895273104068610, 2, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:model:add', '#', 103, 1, '2024-04-05 12:00:38', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1775895273104068613, '系统模型修改', 1775895273104068610, 3, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:model:edit', '#', 103, 1, '2024-04-05 12:00:38', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1775895273104068614, '系统模型删除', 1775895273104068610, 4, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:model:remove', '#', 103, 1, '2024-04-05 12:00:38', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1775895273104068615, '系统模型导出', 1775895273104068610, 5, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:model:export', '#', 103, 1, '2024-04-05 12:00:38', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1780240077690507266, '聊天消息', 1775500307898949634, 5, 'chatMessage', 'operator/message/index', NULL, 1, 0,
        'C', '0', '0', 'system:message:list', 'bx:chat', 103, 1, '2024-04-16 22:24:48', 1, '2024-10-07 21:38:49',
        '聊天消息菜单');
INSERT INTO `sys_menu`
VALUES (1780240077690507267, '聊天消息查询', 1780240077690507266, 1, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:message:query', '#', 103, 1, '2024-04-16 22:24:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1780240077690507268, '聊天消息新增', 1780240077690507266, 2, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:message:add', '#', 103, 1, '2024-04-16 22:24:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1780240077690507269, '聊天消息修改', 1780240077690507266, 3, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:message:edit', '#', 103, 1, '2024-04-16 22:24:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1780240077690507270, '聊天消息删除', 1780240077690507266, 4, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:message:remove', '#', 103, 1, '2024-04-16 22:24:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1780240077690507271, '聊天消息导出', 1780240077690507266, 5, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:message:export', '#', 103, 1, '2024-04-16 22:24:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1780255628576018433, '支付订单', 1775500307898949634, 6, 'order', 'operator/payOrder/index', NULL, 1, 0, 'C',
        '0', '0', 'system:order:list', 'material-symbols:order-approve', 103, 1, '2024-04-16 23:32:48', 1,
        '2025-03-30 21:12:38', '支付订单菜单');
INSERT INTO `sys_menu`
VALUES (1780255628576018434, '支付订单查询', 1780255628576018433, 1, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:orders:query', '#', 103, 1, '2024-04-16 23:32:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1780255628576018435, '支付订单新增', 1780255628576018433, 2, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:orders:add', '#', 103, 1, '2024-04-16 23:32:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1780255628576018436, '支付订单修改', 1780255628576018433, 3, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:orders:edit', '#', 103, 1, '2024-04-16 23:32:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1780255628576018437, '支付订单删除', 1780255628576018433, 4, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:orders:remove', '#', 103, 1, '2024-04-16 23:32:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1780255628576018438, '支付订单导出', 1780255628576018433, 5, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:orders:export', '#', 103, 1, '2024-04-16 23:32:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1843281231381852162, '文件管理', 1775500307898949634, 20, 'file', 'operator/oss/index', NULL, 1, 0, 'C', '0',
        '0', NULL, 'material-symbols-light:folder', 103, 1, '2024-10-07 21:24:27', 1, '2024-12-27 23:03:04', '');
INSERT INTO `sys_menu`
VALUES (1898286496441393153, '知识管理', 1775500307898949634, 10, 'knowledgeBase', 'operator/knowledgeBase/index', NULL,
        1, 0, 'C', '0', '0', '', 'garden:knowledge-base-26', 103, 1, '2025-03-08 16:15:44', 1, '2025-11-07 16:41:10',
        '');
INSERT INTO `sys_menu`
VALUES (1906674838461321217, '配置信息', 1775500307898949634, 13, 'configurationManage',
        'operator/configurationManage/index', '', 1, 0, 'C', '0', '0', 'system:config:list', 'mdi:archive-cog-outline',
        103, 1, '2025-03-31 19:48:48', 1, '2025-03-31 19:59:58', '配置信息菜单');
INSERT INTO `sys_menu`
VALUES (1906674838461321218, '配置信息查询', 1906674838461321217, 1, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:config:query', '#', 103, 1, '2025-03-31 19:48:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1906674838461321219, '配置信息新增', 1906674838461321217, 2, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:config:add', '#', 103, 1, '2025-03-31 19:48:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1906674838461321220, '配置信息修改', 1906674838461321217, 3, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:config:edit', '#', 103, 1, '2025-03-31 19:48:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1906674838461321221, '配置信息删除', 1906674838461321217, 4, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:config:remove', '#', 103, 1, '2025-03-31 19:48:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1906674838461321222, '配置信息导出', 1906674838461321217, 5, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:config:export', '#', 103, 1, '2025-03-31 19:48:48', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1929170702299045890, '提示词模板', 1775500307898949634, 1, 'promptTemplate', 'operator/promptTemplate/index',
        '', 1, 0, 'C', '0', '0', 'system:promptTemplate:list', 'fluent:prompt-16-filled', 103, 1, '2025-09-17 16:43:40',
        NULL, NULL, '提示词模板菜单');
INSERT INTO `sys_menu`
VALUES (1929170702299045891, '提示词模板查询', 1929170702299045890, 1, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:promptTemplate:query', '#', 103, 1, '2025-09-17 16:43:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1929170702299045892, '提示词模板新增', 1929170702299045890, 2, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:promptTemplate:add', '#', 103, 1, '2025-09-17 16:43:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1929170702299045893, '提示词模板修改', 1929170702299045890, 3, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:promptTemplate:edit', '#', 103, 1, '2025-09-17 16:43:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1929170702299045894, '提示词模板删除', 1929170702299045890, 4, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:promptTemplate:remove', '#', 103, 1, '2025-09-17 16:43:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1929170702299045895, '提示词模板导出', 1929170702299045890, 5, '#', '', NULL, 1, 0, 'F', '0', '0',
        'system:promptTemplate:export', '#', 103, 1, '2025-09-17 16:43:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1944213468857495553, '模型分组', 2000, 1, 'schemaGroup', 'dev/schemaGroup/index', NULL, 1, 0, 'C', '0', '0',
        NULL, 'carbon:model-alt', 103, 1, '2025-07-13 09:53:07', 1, '2025-11-07 16:43:56', '模型分组菜单');
INSERT INTO `sys_menu`
VALUES (1944213468857495554, '模型分组查询', 1944213468857495553, 1, '#', '', NULL, 1, 0, 'F', '0', '0',
        'dev:schemaGroup:list', '#', 103, 1, '2025-06-24 19:06:58', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1944213468857495555, '模型分组新增', 1944213468857495553, 2, '#', '', NULL, 1, 0, 'F', '0', '0',
        'dev:schemaGroup:add', '#', 103, 1, '2025-06-24 19:06:58', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1944213468857495556, '模型分组修改', 1944213468857495553, 3, '#', '', NULL, 1, 0, 'F', '0', '0',
        'dev:schemaGroup:edit', '#', 103, 1, '2025-06-24 19:06:58', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1944213468857495557, '模型分组删除', 1944213468857495553, 4, '#', '', NULL, 1, 0, 'F', '0', '0',
        'dev:schemaGroup:remove', '#', 103, 1, '2025-06-24 19:06:58', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1944229086906281985, '数据模型', 2000, 2, 'schema', 'dev/schema/index', NULL, 1, 0, 'C', '0', '0', NULL,
        'carbon:model-alt', 103, 1, '2025-07-13 10:55:11', 1, '2025-11-07 16:44:01', '数据模型菜单');
INSERT INTO `sys_menu`
VALUES (1944229086906281986, '模型数据查询', 1944229086906281985, 1, '#', '', NULL, 1, 0, 'F', '0', '0',
        'dev:schema:list', '#', 103, 1, '2025-06-24 19:06:58', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1944229086906281987, '模型数据新增', 1944229086906281985, 2, '#', '', NULL, 1, 0, 'F', '0', '0',
        'dev:schema:add', '#', 103, 1, '2025-06-24 19:06:58', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1944229086906281988, '模型数据修改', 1944229086906281985, 3, '#', '', NULL, 1, 0, 'F', '0', '0',
        'dev:schema:edit', '#', 103, 1, '2025-06-24 19:06:58', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1944229086906281989, '模型数据删除', 1944229086906281985, 4, '#', '', NULL, 1, 0, 'F', '0', '0',
        'dev:schema:remove', '#', 103, 1, '2025-06-24 19:06:58', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1946466176918249473, '模型字段管理', 2000, 3, 'schemaField', 'dev/schemaField/index', NULL, 1, 0, 'C', '0', '0',
        NULL, 'carbon:model-alt', 103, 1, '2025-07-19 15:04:35', 1, '2025-11-07 16:44:06', '模型字段管理菜单');
INSERT INTO `sys_menu`
VALUES (1946466176918249474, '模型字段管理查询', 1946466176918249473, 1, '#', '', NULL, 1, 0, 'F', '0', '0',
        'dev:schemaField:list', '#', 103, 1, '2025-06-24 19:06:58', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1946466176918249475, '模型字段管理新增', 1946466176918249473, 2, '#', '', NULL, 1, 0, 'F', '0', '0',
        'dev:schemaField:add', '#', 103, 1, '2025-06-24 19:06:58', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1946466176918249476, '模型字段管理修改', 1946466176918249473, 3, '#', '', NULL, 1, 0, 'F', '0', '0',
        'dev:schemaField:edit', '#', 103, 1, '2025-06-24 19:06:58', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1946466176918249477, '模型字段管理删除', 1946466176918249473, 4, '#', '', NULL, 1, 0, 'F', '0', '0',
        'dev:schemaField:remove', '#', 103, 1, '2025-06-24 19:06:58', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1946483381643743233, '知识角色', 1775500307898949634, 12, 'knowledgeRole', 'operator/knowledgeRole/index', NULL,
        1, 0, 'C', '0', '0', NULL, 'ri:user-3-fill', 103, 1, '2025-07-19 16:41:17', 1, '2025-11-07 16:41:06',
        '知识库角色管理');
INSERT INTO `sys_menu`
VALUES (1950000000000000001, '图谱管理', 0, 15, 'graph', '', NULL, 1, 0, 'M', '0', '0', NULL,
        'carbon:chart-relationship', 103, 1, '2025-11-07 16:33:47', 1, '2025-11-07 16:38:36', '知识图谱管理目录');
INSERT INTO `sys_menu`
VALUES (1950000000000000002, '图谱实例', 1950000000000000001, 1, 'graphInstance', 'operator/graphInstance/index', NULL,
        1, 0, 'C', '0', '0', 'operator:graph:list', 'ant-design:node-index-outlined', 103, 1, '2025-11-07 16:33:47', 1,
        '2025-11-07 16:33:47', '图谱实例管理菜单');
INSERT INTO `sys_menu`
VALUES (1950000000000000003, '图谱实例查询', 1950000000000000002, 1, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:graph:query', '#', 103, 1, '2025-11-07 16:33:47', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1950000000000000004, '图谱实例新增', 1950000000000000002, 2, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:graph:add', '#', 103, 1, '2025-11-07 16:33:47', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1950000000000000005, '图谱实例编辑', 1950000000000000002, 3, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:graph:edit', '#', 103, 1, '2025-11-07 16:33:47', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1950000000000000006, '图谱实例删除', 1950000000000000002, 4, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:graph:remove', '#', 103, 1, '2025-11-07 16:33:47', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1950000000000000007, '图谱实例导出', 1950000000000000002, 5, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:graph:export', '#', 103, 1, '2025-11-07 16:33:47', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1950000000000000008, '图谱构建', 1950000000000000002, 6, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:graph:build', '#', 103, 1, '2025-11-07 16:33:47', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1950000000000000009, '图谱重建', 1950000000000000002, 7, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:graph:rebuild', '#', 103, 1, '2025-11-07 16:33:47', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1950000000000000010, '图谱可视化', 1950000000000000001, 2, 'graphVisualization',
        'operator/graphVisualization/index', NULL, 1, 0, 'C', '0', '0', 'operator:graph:view', 'carbon:chart-network',
        103, 1, '2025-11-07 16:33:47', 1, '2025-11-07 16:34:07', '图谱可视化菜单');
INSERT INTO `sys_menu`
VALUES (1950000000000000011, '图谱检索测试', 1950000000000000001, 3, 'graphRAG', 'operator/graphRAG/index', NULL, 1, 0,
        'C', '0', '0', 'operator:graph:retrieve', 'carbon:search-advanced', 103, 1, '2025-11-07 16:33:47', 1,
        '2025-11-07 16:33:47', '图谱检索测试菜单');
INSERT INTO `sys_menu`
VALUES (1950000000000000012, '实体抽取', 1950000000000000011, 1, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:graph:extract', '#', 103, 1, '2025-11-07 16:33:47', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1950000000000000013, '文本入库', 1950000000000000011, 2, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:graph:ingest', '#', 103, 1, '2025-11-07 16:33:47', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1954103099019309056, '工具管理', 1775500307898949634, 1, 'mcpInfo', 'operator/mcpInfo/index', NULL, 1, 0, 'C',
        '0', '0', 'operator:mcpInfo:list', 'mynaui:tool-solid', 103, 1, '2025-11-07 16:33:02', 1, '2025-11-07 16:40:58',
        'MCP菜单');
INSERT INTO `sys_menu`
VALUES (1954103099019309057, 'MCP查询', 1954103099019309056, 1, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:mcpInfo:query', '#', 103, 1, '2025-11-07 16:33:02', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1954103099019309058, 'MCP新增', 1954103099019309056, 2, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:mcpInfo:add', '#', 103, 1, '2025-11-07 16:33:02', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1954103099019309059, 'MCP修改', 1954103099019309056, 3, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:mcpInfo:edit', '#', 103, 1, '2025-11-07 16:33:02', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1954103099019309060, 'MCP删除', 1954103099019309056, 4, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:mcpInfo:remove', '#', 103, 1, '2025-11-07 16:33:02', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1954103099019309061, 'MCP导出', 1954103099019309056, 5, '#', '', NULL, 1, 0, 'F', '0', '0',
        'operator:mcpInfo:export', '#', 103, 1, '2025-11-07 16:33:02', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1971550631887237121, '数字人管理', 0, 0, 'aihuman', '', NULL, 1, 0, 'M', '0', '0', NULL, 'mdi:account-cog',
        NULL, NULL, '2025-09-26 20:21:15', NULL, '2025-09-26 20:21:15', '');
INSERT INTO `sys_menu`
VALUES (1971582278942666752, '交互数字人配置', 1971550631887237121, 1, 'aihumanConfig', 'aihuman/aihumanConfig/index',
        NULL, 1, 0, 'C', '0', '0', 'aihuman:aihumanConfig:list', 'mdi:human-male', 103, 1, '2025-09-26 22:40:40', 1,
        '2025-11-07 16:43:07', '交互数字人配置菜单');
INSERT INTO `sys_menu`
VALUES (1971582278942666753, '交互数字人配置查询', 1971582278942666752, 1, '#', '', NULL, 1, 0, 'F', '0', '0',
        'aihuman:aihumanConfig:query', '#', 103, 1, '2025-09-26 22:40:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1971582278942666754, '交互数字人配置新增', 1971582278942666752, 2, '#', '', NULL, 1, 0, 'F', '0', '0',
        'aihuman:aihumanConfig:add', '#', 103, 1, '2025-09-26 22:40:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1971582278942666755, '交互数字人配置修改', 1971582278942666752, 3, '#', '', NULL, 1, 0, 'F', '0', '0',
        'aihuman:aihumanConfig:edit', '#', 103, 1, '2025-09-26 22:40:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1971582278942666756, '交互数字人配置删除', 1971582278942666752, 4, '#', '', NULL, 1, 0, 'F', '0', '0',
        'aihuman:aihumanConfig:remove', '#', 103, 1, '2025-09-26 22:40:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1971582278942666757, '交互数字人配置导出', 1971582278942666752, 5, '#', '', NULL, 1, 0, 'F', '0', '0',
        'aihuman:aihumanConfig:export', '#', 103, 1, '2025-09-26 22:40:40', NULL, NULL, '');
INSERT INTO `sys_menu`
VALUES (1972543718952386561, 'Live2D数字人体验', 1971550631887237121, 10, 'aihumanPublish',
        'aihuman/aihumanPublish/index', NULL, 1, 0, 'C', '0', '0', NULL, 'mdi:human-male', NULL, NULL,
        '2025-09-29 14:07:25', 1, '2025-11-07 16:43:13', '');
INSERT INTO `sys_menu`
VALUES (1976160997656043521, '流程管理', 0, 1, 'flow', '', NULL, 1, 0, 'M', '0', '0', NULL, 'ph:user-fill', NULL, NULL,
        '2025-10-09 13:41:12', 1, '2025-10-20 20:59:25', '');
INSERT INTO `sys_menu`
VALUES (1976161221409579010, '工作流编排', 1976160997656043521, 0, 'workflow', 'workflow/index', NULL, 1, 0, 'C', '0',
        '0', NULL, 'ph:user-fill', NULL, NULL, '2025-10-09 13:42:05', 1, '2025-10-20 20:59:16', '');

-- ----------------------------
-- Table structure for sys_notice
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice`;
CREATE TABLE `sys_notice`
(
    `notice_id`      bigint(20) NOT NULL COMMENT '公告ID',
    `tenant_id`      varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
    `notice_title`   varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '公告标题',
    `notice_type`    char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci     NOT NULL COMMENT '公告类型（1通知 2公告）',
    `notice_content` longblob NULL COMMENT '公告内容',
    `status`         char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '公告状态（0正常 1关闭）',
    `create_dept`    bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`      bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`    datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`      bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`    datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`         varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`notice_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通知公告表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_notice
-- ----------------------------
INSERT INTO `sys_notice`
VALUES (1789324923280932865, '000000', '公告', '1',
        0x3C703E3C7374726F6E67207374796C653D22636F6C6F723A20236666393930303B223EE69CACE7BD91E7AB99E4B88EE4BBBBE4BD95E585B6E4BB96E585ACE58FB8E68896E59586E6A087E6B2A1E69C89E4BBBBE4BD95E585B3E88194E68896E59088E4BD9CE585B3E7B3BB3C2F7374726F6E673E3C2F703E0A3C703E3C7370616E207374796C653D22636F6C6F723A20236536303030303B223E4149E4B99FE4BC9AE78AAFE99499E38082E8AFB7E58BBFE5B086E585B6E794A8E4BA8EE9878DE8A681E79BAEE79A843C2F7370616E3E3C2F703E0A3C703E3C7370616E207374796C653D22636F6C6F723A20236666393930303B223EE68891E4BBACE79BAEE5898DE6ADA3E59CA8E4BFAEE5A48DE68891E4BBACE7BD91E7AB99E4B88AE79A84E99499E8AFAFE5B9B6E694B9E8BF9BE7BB86E88A82E38082E5A682E69E9CE682A8E69C89E4BBBBE4BD95E79691E997AEEFBC8CE8AFB7E9809AE8BF87E4BBA5E4B88BE696B9E5BC8FE88194E7B3BBE68891E4BBACEFBC9A61676565726C65403136332E636F6D313434343434353535353C2F7370616E3E3C2F703E0A3C703E266E6273703B3C2F703E,
        '0', 103, 1, '2024-05-12 00:01:20', 1, '2025-03-11 19:31:59', '');

-- ----------------------------
-- Table structure for sys_notice_state
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice_state`;
CREATE TABLE `sys_notice_state`
(
    `id`          bigint(20) NOT NULL COMMENT 'ID',
    `user_id`     bigint(20) NOT NULL COMMENT '用户ID',
    `notice_id`   bigint(20) NOT NULL COMMENT '公告ID',
    `read_status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '阅读状态（0未读 1已读）',
    `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`   bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`      varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户阅读状态表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_notice_state
-- ----------------------------

-- ----------------------------
-- Table structure for sys_oper_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_oper_log`;
CREATE TABLE `sys_oper_log`
(
    `oper_id`        bigint(20) NOT NULL COMMENT '日志主键',
    `tenant_id`      varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
    `title`          varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '模块标题',
    `business_type`  int(2) NULL DEFAULT 0 COMMENT '业务类型（0其它 1新增 2修改 3删除）',
    `method`         varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '方法名称',
    `request_method` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求方式',
    `operator_type`  int(1) NULL DEFAULT 0 COMMENT '操作类别（0其它 1后台用户 2手机端用户）',
    `oper_name`      varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作人员',
    `dept_name`      varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '部门名称',
    `oper_url`       varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求URL',
    `oper_ip`        varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '主机地址',
    `oper_location`  varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '操作地点',
    `oper_param`     varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '请求参数',
    `json_result`    varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '返回参数',
    `status`         int(1) NULL DEFAULT 0 COMMENT '操作状态（0正常 1异常）',
    `error_msg`      varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '错误消息',
    `oper_time`      datetime NULL DEFAULT NULL COMMENT '操作时间',
    `cost_time`      bigint(20) NULL DEFAULT 0 COMMENT '消耗时间',
    PRIMARY KEY (`oper_id`) USING BTREE,
    INDEX            `idx_sys_oper_log_bt`(`business_type`) USING BTREE,
    INDEX            `idx_sys_oper_log_s`(`status`) USING BTREE,
    INDEX            `idx_sys_oper_log_ot`(`oper_time`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '操作日志记录' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_oper_log
-- ----------------------------
INSERT INTO `sys_oper_log`
VALUES (1986714891724443649, '00000', '菜单管理', 2, 'org.ruoyi.system.controller.system.SysMenuController.edit()',
        'PUT', 1, 'admin', '', '/system/menu', '127.0.0.1', '内网IP',
        '{\"menuId\":\"1950000000000000001\",\"parentId\":\"0\",\"menuName\":\"图谱管理\",\"orderNum\":15,\"path\":\"graph\",\"component\":\"\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"M\",\"visible\":\"0\",\"status\":\"0\",\"icon\":\"carbon:chart-relationship\"}',
        '{\"code\":200,\"msg\":\"操作成功\"}', 0, '', '2025-11-07 16:38:36', 57);
INSERT INTO `sys_oper_log`
VALUES (1986714983667781634, '00000', '菜单管理', 2, 'org.ruoyi.system.controller.system.SysMenuController.edit()',
        'PUT', 1, 'admin', '', '/system/menu', '127.0.0.1', '内网IP',
        '{\"menuId\":\"1954103099019309056\",\"parentId\":\"0\",\"menuName\":\"工具管理\",\"orderNum\":1,\"path\":\"mcpInfo\",\"component\":\"operator/mcpInfo/index\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"operator:mcpInfo:list\",\"icon\":\"#\"}',
        '{\"code\":200,\"msg\":\"操作成功\"}', 0, '', '2025-11-07 16:38:58', 14);
INSERT INTO `sys_oper_log`
VALUES (1986715200836259841, '00000', '菜单管理', 2, 'org.ruoyi.system.controller.system.SysMenuController.edit()',
        'PUT', 1, 'admin', '', '/system/menu', '127.0.0.1', '内网IP',
        '{\"menuId\":\"1954103099019309056\",\"parentId\":\"0\",\"menuName\":\"工具管理\",\"orderNum\":1,\"path\":\"mcpInfo\",\"component\":\"operator/mcpInfo/index\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"operator:mcpInfo:list\",\"icon\":\"qlementine-icons:tool-24\"}',
        '{\"code\":200,\"msg\":\"操作成功\"}', 0, '', '2025-11-07 16:39:50', 11);
INSERT INTO `sys_oper_log`
VALUES (1986715370902704130, '00000', '菜单管理', 2, 'org.ruoyi.system.controller.system.SysMenuController.edit()',
        'PUT', 1, 'admin', '', '/system/menu', '127.0.0.1', '内网IP',
        '{\"menuId\":\"1954103099019309056\",\"parentId\":\"1775500307898949634\",\"menuName\":\"工具管理\",\"orderNum\":1,\"path\":\"mcpInfo\",\"component\":\"operator/mcpInfo/index\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"operator:mcpInfo:list\",\"icon\":\"qlementine-icons:tool-24\"}',
        '{\"code\":200,\"msg\":\"操作成功\"}', 0, '', '2025-11-07 16:40:30', 9);
INSERT INTO `sys_oper_log`
VALUES (1986715487760207873, '00000', '菜单管理', 2, 'org.ruoyi.system.controller.system.SysMenuController.edit()',
        'PUT', 1, 'admin', '', '/system/menu', '127.0.0.1', '内网IP',
        '{\"menuId\":\"1954103099019309056\",\"parentId\":\"1775500307898949634\",\"menuName\":\"工具管理\",\"orderNum\":1,\"path\":\"mcpInfo\",\"component\":\"operator/mcpInfo/index\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"operator:mcpInfo:list\",\"icon\":\"mynaui:tool-solid\"}',
        '{\"code\":200,\"msg\":\"操作成功\"}', 0, '', '2025-11-07 16:40:58', 11);
INSERT INTO `sys_oper_log`
VALUES (1986715519116824578, '00000', '菜单管理', 2, 'org.ruoyi.system.controller.system.SysMenuController.edit()',
        'PUT', 1, 'admin', '', '/system/menu', '127.0.0.1', '内网IP',
        '{\"menuId\":\"1946483381643743233\",\"parentId\":\"1775500307898949634\",\"menuName\":\"知识角色\",\"orderNum\":12,\"path\":\"knowledgeRole\",\"component\":\"operator/knowledgeRole/index\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"icon\":\"ri:user-3-fill\"}',
        '{\"code\":200,\"msg\":\"操作成功\"}', 0, '', '2025-11-07 16:41:06', 11);
INSERT INTO `sys_oper_log`
VALUES (1986715538016358402, '00000', '菜单管理', 2, 'org.ruoyi.system.controller.system.SysMenuController.edit()',
        'PUT', 1, 'admin', '', '/system/menu', '127.0.0.1', '内网IP',
        '{\"menuId\":\"1898286496441393153\",\"parentId\":\"1775500307898949634\",\"menuName\":\"知识管理\",\"orderNum\":10,\"path\":\"knowledgeBase\",\"component\":\"operator/knowledgeBase/index\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"\",\"icon\":\"garden:knowledge-base-26\"}',
        '{\"code\":200,\"msg\":\"操作成功\"}', 0, '', '2025-11-07 16:41:10', 10);
INSERT INTO `sys_oper_log`
VALUES (1986716028955447297, '00000', '菜单管理', 2, 'org.ruoyi.system.controller.system.SysMenuController.edit()',
        'PUT', 1, 'admin', '', '/system/menu', '127.0.0.1', '内网IP',
        '{\"menuId\":\"1971582278942666752\",\"parentId\":\"1971550631887237121\",\"menuName\":\"交互数字人配置\",\"orderNum\":1,\"path\":\"aihumanConfig\",\"component\":\"aihuman/aihumanConfig/index\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"perms\":\"aihuman:aihumanConfig:list\",\"icon\":\"mdi:human-male\"}',
        '{\"code\":200,\"msg\":\"操作成功\"}', 0, '', '2025-11-07 16:43:07', 14);
INSERT INTO `sys_oper_log`
VALUES (1986716052896534529, '00000', '菜单管理', 2, 'org.ruoyi.system.controller.system.SysMenuController.edit()',
        'PUT', 1, 'admin', '', '/system/menu', '127.0.0.1', '内网IP',
        '{\"menuId\":\"1972543718952386561\",\"parentId\":\"1971550631887237121\",\"menuName\":\"Live2D数字人体验\",\"orderNum\":10,\"path\":\"aihumanPublish\",\"component\":\"aihuman/aihumanPublish/index\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"icon\":\"mdi:human-male\"}',
        '{\"code\":200,\"msg\":\"操作成功\"}', 0, '', '2025-11-07 16:43:13', 10);
INSERT INTO `sys_oper_log`
VALUES (1986716232899284993, '00000', '菜单管理', 2, 'org.ruoyi.system.controller.system.SysMenuController.edit()',
        'PUT', 1, 'admin', '', '/system/menu', '127.0.0.1', '内网IP',
        '{\"menuId\":\"1944213468857495553\",\"parentId\":\"2000\",\"menuName\":\"模型分组\",\"orderNum\":1,\"path\":\"schemaGroup\",\"component\":\"dev/schemaGroup/index\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"icon\":\"carbon:model-alt\"}',
        '{\"code\":200,\"msg\":\"操作成功\"}', 0, '', '2025-11-07 16:43:56', 11);
INSERT INTO `sys_oper_log`
VALUES (1986716255061987330, '00000', '菜单管理', 2, 'org.ruoyi.system.controller.system.SysMenuController.edit()',
        'PUT', 1, 'admin', '', '/system/menu', '127.0.0.1', '内网IP',
        '{\"menuId\":\"1944229086906281985\",\"parentId\":\"2000\",\"menuName\":\"数据模型\",\"orderNum\":2,\"path\":\"schema\",\"component\":\"dev/schema/index\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"icon\":\"carbon:model-alt\"}',
        '{\"code\":200,\"msg\":\"操作成功\"}', 0, '', '2025-11-07 16:44:01', 10);
INSERT INTO `sys_oper_log`
VALUES (1986716273600811010, '00000', '菜单管理', 2, 'org.ruoyi.system.controller.system.SysMenuController.edit()',
        'PUT', 1, 'admin', '', '/system/menu', '127.0.0.1', '内网IP',
        '{\"menuId\":\"1946466176918249473\",\"parentId\":\"2000\",\"menuName\":\"模型字段管理\",\"orderNum\":3,\"path\":\"schemaField\",\"component\":\"dev/schemaField/index\",\"isFrame\":\"1\",\"isCache\":\"0\",\"menuType\":\"C\",\"visible\":\"0\",\"status\":\"0\",\"icon\":\"carbon:model-alt\"}',
        '{\"code\":200,\"msg\":\"操作成功\"}', 0, '', '2025-11-07 16:44:06', 9);

-- ----------------------------
-- Table structure for sys_oss
-- ----------------------------
DROP TABLE IF EXISTS `sys_oss`;
CREATE TABLE `sys_oss`
(
    `oss_id`        bigint(20) NOT NULL COMMENT '对象存储主键',
    `tenant_id`     varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
    `file_name`     varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '文件名',
    `original_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '原名',
    `file_suffix`   varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NOT NULL DEFAULT '' COMMENT '文件后缀名',
    `url`           varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'URL地址',
    `create_dept`   bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_time`   datetime NULL DEFAULT NULL COMMENT '创建时间',
    `create_by`     bigint(20) NULL DEFAULT NULL COMMENT '上传人',
    `update_time`   datetime NULL DEFAULT NULL COMMENT '更新时间',
    `update_by`     bigint(20) NULL DEFAULT NULL COMMENT '更新人',
    `service`       varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NOT NULL DEFAULT 'minio' COMMENT '服务商',
    PRIMARY KEY (`oss_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'OSS对象存储表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_oss
-- ----------------------------
INSERT INTO `sys_oss`
VALUES (1925801916342902786, '000000', '2025/05/23/097e4eb1fc414872a5d082c1e01ab573.jpg',
        '59816c7c28fba2c18ec79f8b8e09581a_1.jpg', '.jpg',
        'https://ruoyi-ai-1254149996.cos.ap-guangzhou.myqcloud.com/2025/05/23/097e4eb1fc414872a5d082c1e01ab573.jpg',
        103, '2025-05-23 14:32:11', 1, '2025-05-23 14:32:11', 1, 'qcloud');

-- ----------------------------
-- Table structure for sys_oss_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_oss_config`;
CREATE TABLE `sys_oss_config`
(
    `oss_config_id` bigint(20) NOT NULL COMMENT '主建',
    `tenant_id`     varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
    `config_key`    varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '配置key',
    `access_key`    varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT 'accessKey',
    `secret_key`    varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '秘钥',
    `bucket_name`   varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '桶名称',
    `prefix`        varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '前缀',
    `endpoint`      varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '访问站点',
    `domain`        varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '自定义域名',
    `is_https`      char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'N' COMMENT '是否https（Y=是,N=否）',
    `region`        varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '域',
    `access_policy` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci     NOT NULL DEFAULT '1' COMMENT '桶权限类型(0=private 1=public 2=custom)',
    `status`        char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '是否默认（0=是,1=否）',
    `ext1`          varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '扩展字段',
    `create_dept`   bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`     bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`   datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`     bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`   datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`        varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`oss_config_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '对象存储配置表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_oss_config
-- ----------------------------
INSERT INTO `sys_oss_config`
VALUES (1, '000000', 'minio', 'ruoyi', 'ruoyi123', 'ruoyi', '', '127.0.0.1:9000', '', 'N', '', '1', '1', '', 103, 1,
        '2023-05-14 15:19:42', 1, '2025-03-26 16:25:55', NULL);
INSERT INTO `sys_oss_config`
VALUES (2, '000000', 'qiniu', 'ruoyi', 'ruoyi123', 'ruoyi', '', 's3-cn-north-1.qiniucs.com', '', 'N', '', '1', '1', '',
        103, 1, '2023-05-14 15:19:42', 1, '2025-05-23 14:31:40', NULL);
INSERT INTO `sys_oss_config`
VALUES (3, '000000', 'aliyun', 'ruoyi', 'ruoyi123', 'ruoyi', '', 'oss-cn-beijing.aliyuncs.com', '', 'N', '', '1', '1',
        '', 103, 1, '2023-05-14 15:19:42', 1, '2025-03-13 13:13:04', NULL);
INSERT INTO `sys_oss_config`
VALUES (4, '000000', 'qcloud', 'ruoyi', 'ruoyi123', 'ruoyi', '', 'cos.ap-guangzhou.myqcloud.com', '', 'Y',
        'ap-guangzhou', '1', '0', '', 103, 1, '2023-05-14 15:19:42', 1, '2025-05-23 14:31:41', '');

-- ----------------------------
-- Table structure for sys_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_post`;
CREATE TABLE `sys_post`
(
    `post_id`     bigint(20) NOT NULL COMMENT '岗位ID',
    `tenant_id`   varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
    `post_code`   varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位编码',
    `post_name`   varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位名称',
    `post_sort`   int(4) NOT NULL COMMENT '显示顺序',
    `status`      char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci     NOT NULL COMMENT '状态（0正常 1停用）',
    `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`   bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`   bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`      varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`post_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '岗位信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_post
-- ----------------------------
INSERT INTO `sys_post`
VALUES (1, '000000', 'ceo', '董事长', 1, '0', 103, 1, '2023-05-14 15:19:39', NULL, NULL, '');
INSERT INTO `sys_post`
VALUES (2, '000000', 'se', '项目经理', 2, '0', 103, 1, '2023-05-14 15:19:39', NULL, NULL, '');
INSERT INTO `sys_post`
VALUES (3, '000000', 'hr', '人力资源', 3, '0', 103, 1, '2023-05-14 15:19:39', NULL, NULL, '');
INSERT INTO `sys_post`
VALUES (4, '000000', 'user', '普通员工', 4, '0', 103, 1, '2023-05-14 15:19:39', NULL, NULL, '');

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role`
(
    `role_id`             bigint(20) NOT NULL COMMENT '角色ID',
    `tenant_id`           varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
    `role_name`           varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NOT NULL COMMENT '角色名称',
    `role_key`            varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色权限字符串',
    `role_sort`           int(4) NOT NULL COMMENT '显示顺序',
    `data_scope`          char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '1' COMMENT '数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）',
    `menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
    `dept_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '部门树选择项是否关联显示',
    `status`              char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci      NOT NULL COMMENT '角色状态（0正常 1停用）',
    `del_flag`            char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    `create_dept`         bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`           bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`         datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`           bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`         datetime NULL DEFAULT NULL COMMENT '更新时间',
    `remark`              varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role`
VALUES (1, '000000', '超级管理员', 'superadmin', 1, '1', 1, 1, '0', '0', 103, 1, '2023-05-14 15:19:39', NULL, NULL,
        '超级管理员');
INSERT INTO `sys_role`
VALUES (2, '000000', '普通角色', 'common', 2, '2', 0, 1, '0', '0', 103, 1, '2023-05-14 15:19:39', 1,
        '2025-03-31 19:41:35', '普通角色');
INSERT INTO `sys_role`
VALUES (3, '000000', '本部门及以下', 'test1', 3, '4', 1, 1, '0', '0', 103, 1, '2023-05-14 15:20:00', 1,
        '2025-03-17 09:29:25', NULL);
INSERT INTO `sys_role`
VALUES (4, '000000', '仅本人', 'test2', 4, '5', 1, 1, '0', '0', 103, 1, '2023-05-14 15:20:00', 1, '2025-03-24 10:56:45',
        NULL);
INSERT INTO `sys_role`
VALUES (1661661183933177857, '000000', '小程序管理员', 'xcxadmin', 1, '1', 1, 1, '0', '0', 103, 1,
        '2023-05-25 17:11:13', 1, '2025-03-31 19:45:38', '');
INSERT INTO `sys_role`
VALUES (1729685491108446210, '911866', '管理员', 'admin', 4, '1', 1, 1, '0', '0', 103, 1, '2023-11-29 10:15:32', 1,
        '2025-05-23 14:10:49', '');

-- ----------------------------
-- Table structure for sys_role_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_dept`;
CREATE TABLE `sys_role_dept`
(
    `role_id` bigint(20) NOT NULL COMMENT '角色ID',
    `dept_id` bigint(20) NOT NULL COMMENT '部门ID',
    PRIMARY KEY (`role_id`, `dept_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色和部门关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role_dept
-- ----------------------------
INSERT INTO `sys_role_dept`
VALUES (2, 100);
INSERT INTO `sys_role_dept`
VALUES (2, 101);
INSERT INTO `sys_role_dept`
VALUES (2, 105);

-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu`
(
    `role_id` bigint(20) NOT NULL COMMENT '角色ID',
    `menu_id` bigint(20) NOT NULL COMMENT '菜单ID',
    PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色和菜单关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------
INSERT INTO `sys_role_menu`
VALUES (2, 1);
INSERT INTO `sys_role_menu`
VALUES (2, 100);
INSERT INTO `sys_role_menu`
VALUES (2, 101);
INSERT INTO `sys_role_menu`
VALUES (2, 102);
INSERT INTO `sys_role_menu`
VALUES (2, 103);
INSERT INTO `sys_role_menu`
VALUES (2, 104);
INSERT INTO `sys_role_menu`
VALUES (2, 105);
INSERT INTO `sys_role_menu`
VALUES (2, 106);
INSERT INTO `sys_role_menu`
VALUES (2, 107);
INSERT INTO `sys_role_menu`
VALUES (2, 108);
INSERT INTO `sys_role_menu`
VALUES (2, 113);
INSERT INTO `sys_role_menu`
VALUES (2, 500);
INSERT INTO `sys_role_menu`
VALUES (2, 501);
INSERT INTO `sys_role_menu`
VALUES (2, 1001);
INSERT INTO `sys_role_menu`
VALUES (2, 1002);
INSERT INTO `sys_role_menu`
VALUES (2, 1003);
INSERT INTO `sys_role_menu`
VALUES (2, 1004);
INSERT INTO `sys_role_menu`
VALUES (2, 1005);
INSERT INTO `sys_role_menu`
VALUES (2, 1006);
INSERT INTO `sys_role_menu`
VALUES (2, 1007);
INSERT INTO `sys_role_menu`
VALUES (2, 1008);
INSERT INTO `sys_role_menu`
VALUES (2, 1009);
INSERT INTO `sys_role_menu`
VALUES (2, 1010);
INSERT INTO `sys_role_menu`
VALUES (2, 1011);
INSERT INTO `sys_role_menu`
VALUES (2, 1012);
INSERT INTO `sys_role_menu`
VALUES (2, 1013);
INSERT INTO `sys_role_menu`
VALUES (2, 1014);
INSERT INTO `sys_role_menu`
VALUES (2, 1015);
INSERT INTO `sys_role_menu`
VALUES (2, 1016);
INSERT INTO `sys_role_menu`
VALUES (2, 1017);
INSERT INTO `sys_role_menu`
VALUES (2, 1018);
INSERT INTO `sys_role_menu`
VALUES (2, 1019);
INSERT INTO `sys_role_menu`
VALUES (2, 1020);
INSERT INTO `sys_role_menu`
VALUES (2, 1021);
INSERT INTO `sys_role_menu`
VALUES (2, 1022);
INSERT INTO `sys_role_menu`
VALUES (2, 1023);
INSERT INTO `sys_role_menu`
VALUES (2, 1024);
INSERT INTO `sys_role_menu`
VALUES (2, 1025);
INSERT INTO `sys_role_menu`
VALUES (2, 1026);
INSERT INTO `sys_role_menu`
VALUES (2, 1027);
INSERT INTO `sys_role_menu`
VALUES (2, 1028);
INSERT INTO `sys_role_menu`
VALUES (2, 1029);
INSERT INTO `sys_role_menu`
VALUES (2, 1030);
INSERT INTO `sys_role_menu`
VALUES (2, 1031);
INSERT INTO `sys_role_menu`
VALUES (2, 1032);
INSERT INTO `sys_role_menu`
VALUES (2, 1033);
INSERT INTO `sys_role_menu`
VALUES (2, 1034);
INSERT INTO `sys_role_menu`
VALUES (2, 1035);
INSERT INTO `sys_role_menu`
VALUES (2, 1036);
INSERT INTO `sys_role_menu`
VALUES (2, 1037);
INSERT INTO `sys_role_menu`
VALUES (2, 1038);
INSERT INTO `sys_role_menu`
VALUES (2, 1039);
INSERT INTO `sys_role_menu`
VALUES (2, 1040);
INSERT INTO `sys_role_menu`
VALUES (2, 1041);
INSERT INTO `sys_role_menu`
VALUES (2, 1042);
INSERT INTO `sys_role_menu`
VALUES (2, 1043);
INSERT INTO `sys_role_menu`
VALUES (2, 1044);
INSERT INTO `sys_role_menu`
VALUES (2, 1045);
INSERT INTO `sys_role_menu`
VALUES (2, 1050);
INSERT INTO `sys_role_menu`
VALUES (2, 1775500307898949634);
INSERT INTO `sys_role_menu`
VALUES (2, 1775895273104068610);
INSERT INTO `sys_role_menu`
VALUES (2, 1775895273104068611);
INSERT INTO `sys_role_menu`
VALUES (2, 1775895273104068612);
INSERT INTO `sys_role_menu`
VALUES (2, 1775895273104068613);
INSERT INTO `sys_role_menu`
VALUES (2, 1775895273104068614);
INSERT INTO `sys_role_menu`
VALUES (2, 1775895273104068615);
INSERT INTO `sys_role_menu`
VALUES (2, 1780240077690507266);
INSERT INTO `sys_role_menu`
VALUES (2, 1780240077690507267);
INSERT INTO `sys_role_menu`
VALUES (2, 1780240077690507268);
INSERT INTO `sys_role_menu`
VALUES (2, 1780240077690507269);
INSERT INTO `sys_role_menu`
VALUES (2, 1780240077690507270);
INSERT INTO `sys_role_menu`
VALUES (2, 1780240077690507271);
INSERT INTO `sys_role_menu`
VALUES (2, 1780255628576018433);
INSERT INTO `sys_role_menu`
VALUES (2, 1780255628576018434);
INSERT INTO `sys_role_menu`
VALUES (2, 1780255628576018435);
INSERT INTO `sys_role_menu`
VALUES (2, 1780255628576018436);
INSERT INTO `sys_role_menu`
VALUES (2, 1780255628576018437);
INSERT INTO `sys_role_menu`
VALUES (2, 1780255628576018438);
INSERT INTO `sys_role_menu`
VALUES (2, 1786379590171156481);
INSERT INTO `sys_role_menu`
VALUES (2, 1786379590171156482);
INSERT INTO `sys_role_menu`
VALUES (2, 1786379590171156483);
INSERT INTO `sys_role_menu`
VALUES (2, 1786379590171156484);
INSERT INTO `sys_role_menu`
VALUES (2, 1786379590171156485);
INSERT INTO `sys_role_menu`
VALUES (2, 1786379590171156486);
INSERT INTO `sys_role_menu`
VALUES (2, 1787078000285122561);
INSERT INTO `sys_role_menu`
VALUES (2, 1810594719028834305);
INSERT INTO `sys_role_menu`
VALUES (2, 1810594719028834306);
INSERT INTO `sys_role_menu`
VALUES (2, 1810594719028834307);
INSERT INTO `sys_role_menu`
VALUES (2, 1810594719028834308);
INSERT INTO `sys_role_menu`
VALUES (2, 1810594719028834309);
INSERT INTO `sys_role_menu`
VALUES (2, 1810594719028834310);
INSERT INTO `sys_role_menu`
VALUES (2, 1843281231381852162);
INSERT INTO `sys_role_menu`
VALUES (2, 1860690448695549953);
INSERT INTO `sys_role_menu`
VALUES (2, 1898286496441393153);
INSERT INTO `sys_role_menu`
VALUES (2, 1900172314827739137);
INSERT INTO `sys_role_menu`
VALUES (2, 1902184523796742145);
INSERT INTO `sys_role_menu`
VALUES (2, 1906199640746344450);
INSERT INTO `sys_role_menu`
VALUES (2, 1906200030325882882);
INSERT INTO `sys_role_menu`
VALUES (2, 1906336170039103490);
INSERT INTO `sys_role_menu`
VALUES (2, 1906336170039103491);
INSERT INTO `sys_role_menu`
VALUES (2, 1906336170039103492);
INSERT INTO `sys_role_menu`
VALUES (2, 1906336170039103493);
INSERT INTO `sys_role_menu`
VALUES (2, 1906336170039103494);
INSERT INTO `sys_role_menu`
VALUES (2, 1906336170039103495);
INSERT INTO `sys_role_menu`
VALUES (2, 1906358690184294402);
INSERT INTO `sys_role_menu`
VALUES (2, 1906358690184294403);
INSERT INTO `sys_role_menu`
VALUES (2, 1906358690184294404);
INSERT INTO `sys_role_menu`
VALUES (2, 1906358690184294405);
INSERT INTO `sys_role_menu`
VALUES (2, 1906358690184294406);
INSERT INTO `sys_role_menu`
VALUES (2, 1906358690184294407);
INSERT INTO `sys_role_menu`
VALUES (3, 1);
INSERT INTO `sys_role_menu`
VALUES (3, 100);
INSERT INTO `sys_role_menu`
VALUES (3, 101);
INSERT INTO `sys_role_menu`
VALUES (3, 102);
INSERT INTO `sys_role_menu`
VALUES (3, 103);
INSERT INTO `sys_role_menu`
VALUES (3, 104);
INSERT INTO `sys_role_menu`
VALUES (3, 105);
INSERT INTO `sys_role_menu`
VALUES (3, 106);
INSERT INTO `sys_role_menu`
VALUES (3, 107);
INSERT INTO `sys_role_menu`
VALUES (3, 108);
INSERT INTO `sys_role_menu`
VALUES (3, 500);
INSERT INTO `sys_role_menu`
VALUES (3, 501);
INSERT INTO `sys_role_menu`
VALUES (3, 1001);
INSERT INTO `sys_role_menu`
VALUES (3, 1002);
INSERT INTO `sys_role_menu`
VALUES (3, 1003);
INSERT INTO `sys_role_menu`
VALUES (3, 1004);
INSERT INTO `sys_role_menu`
VALUES (3, 1005);
INSERT INTO `sys_role_menu`
VALUES (3, 1006);
INSERT INTO `sys_role_menu`
VALUES (3, 1007);
INSERT INTO `sys_role_menu`
VALUES (3, 1008);
INSERT INTO `sys_role_menu`
VALUES (3, 1009);
INSERT INTO `sys_role_menu`
VALUES (3, 1010);
INSERT INTO `sys_role_menu`
VALUES (3, 1011);
INSERT INTO `sys_role_menu`
VALUES (3, 1012);
INSERT INTO `sys_role_menu`
VALUES (3, 1013);
INSERT INTO `sys_role_menu`
VALUES (3, 1014);
INSERT INTO `sys_role_menu`
VALUES (3, 1015);
INSERT INTO `sys_role_menu`
VALUES (3, 1016);
INSERT INTO `sys_role_menu`
VALUES (3, 1017);
INSERT INTO `sys_role_menu`
VALUES (3, 1018);
INSERT INTO `sys_role_menu`
VALUES (3, 1019);
INSERT INTO `sys_role_menu`
VALUES (3, 1020);
INSERT INTO `sys_role_menu`
VALUES (3, 1021);
INSERT INTO `sys_role_menu`
VALUES (3, 1022);
INSERT INTO `sys_role_menu`
VALUES (3, 1023);
INSERT INTO `sys_role_menu`
VALUES (3, 1024);
INSERT INTO `sys_role_menu`
VALUES (3, 1025);
INSERT INTO `sys_role_menu`
VALUES (3, 1026);
INSERT INTO `sys_role_menu`
VALUES (3, 1027);
INSERT INTO `sys_role_menu`
VALUES (3, 1028);
INSERT INTO `sys_role_menu`
VALUES (3, 1029);
INSERT INTO `sys_role_menu`
VALUES (3, 1030);
INSERT INTO `sys_role_menu`
VALUES (3, 1031);
INSERT INTO `sys_role_menu`
VALUES (3, 1032);
INSERT INTO `sys_role_menu`
VALUES (3, 1033);
INSERT INTO `sys_role_menu`
VALUES (3, 1034);
INSERT INTO `sys_role_menu`
VALUES (3, 1035);
INSERT INTO `sys_role_menu`
VALUES (3, 1036);
INSERT INTO `sys_role_menu`
VALUES (3, 1037);
INSERT INTO `sys_role_menu`
VALUES (3, 1038);
INSERT INTO `sys_role_menu`
VALUES (3, 1039);
INSERT INTO `sys_role_menu`
VALUES (3, 1040);
INSERT INTO `sys_role_menu`
VALUES (3, 1041);
INSERT INTO `sys_role_menu`
VALUES (3, 1042);
INSERT INTO `sys_role_menu`
VALUES (3, 1043);
INSERT INTO `sys_role_menu`
VALUES (3, 1044);
INSERT INTO `sys_role_menu`
VALUES (3, 1045);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 100);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 101);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 102);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 103);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 104);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 105);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 106);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 107);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 108);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 113);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 500);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 501);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1001);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1002);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1003);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1004);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1005);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1006);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1007);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1008);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1009);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1010);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1011);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1012);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1013);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1014);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1015);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1016);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1017);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1018);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1019);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1020);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1021);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1022);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1023);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1024);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1025);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1026);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1027);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1028);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1029);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1030);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1031);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1032);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1033);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1034);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1035);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1036);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1037);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1038);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1039);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1040);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1041);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1042);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1043);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1044);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1045);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1050);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1775500307898949634);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1775895273104068610);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1775895273104068611);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1775895273104068612);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1775895273104068613);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1775895273104068614);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1775895273104068615);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1780240077690507266);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1780240077690507267);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1780240077690507268);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1780240077690507269);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1780240077690507270);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1780240077690507271);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1780255628576018433);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1780255628576018434);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1780255628576018435);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1780255628576018436);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1780255628576018437);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1780255628576018438);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1786379590171156481);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1786379590171156482);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1786379590171156483);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1786379590171156484);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1786379590171156485);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1786379590171156486);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1787078000285122561);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1810594719028834305);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1810594719028834306);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1810594719028834307);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1810594719028834308);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1810594719028834309);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1810594719028834310);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1843281231381852162);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1898286496441393153);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1900172314827739137);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1902184523796742145);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906199640746344450);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906200030325882882);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906336170039103490);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906336170039103491);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906336170039103492);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906336170039103493);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906336170039103494);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906336170039103495);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906358690184294402);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906358690184294403);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906358690184294404);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906358690184294405);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906358690184294406);
INSERT INTO `sys_role_menu`
VALUES (1661661183933177857, 1906358690184294407);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 100);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 101);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 102);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 103);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 104);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 105);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 106);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 107);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 108);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 113);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 500);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 501);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1001);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1002);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1003);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1004);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1005);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1006);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1007);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1008);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1009);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1010);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1011);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1012);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1013);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1014);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1015);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1016);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1017);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1018);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1019);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1020);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1021);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1022);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1023);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1024);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1025);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1026);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1027);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1028);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1029);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1030);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1031);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1032);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1033);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1034);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1035);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1036);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1037);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1038);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1039);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1040);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1041);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1042);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1043);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1044);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1045);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1050);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1775500307898949634);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1775895273104068610);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1775895273104068611);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1775895273104068612);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1775895273104068613);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1775895273104068614);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1775895273104068615);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1780240077690507266);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1780240077690507267);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1780240077690507268);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1780240077690507269);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1780240077690507270);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1780240077690507271);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1780255628576018433);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1780255628576018434);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1780255628576018435);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1780255628576018436);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1780255628576018437);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1780255628576018438);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1786379590171156481);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1786379590171156482);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1786379590171156483);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1786379590171156484);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1786379590171156485);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1786379590171156486);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1787078000285122561);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1810594719028834305);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1810594719028834306);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1810594719028834307);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1810594719028834308);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1810594719028834309);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1810594719028834310);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1843281231381852162);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1860690448695549953);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1898286496441393153);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1900172314827739137);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1902184523796742145);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906199640746344450);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906200030325882882);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906336170039103490);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906336170039103491);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906336170039103492);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906336170039103493);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906336170039103494);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906336170039103495);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906358690184294402);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906358690184294403);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906358690184294404);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906358690184294405);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906358690184294406);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906358690184294407);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906674838461321217);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906674838461321218);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906674838461321219);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906674838461321220);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906674838461321221);
INSERT INTO `sys_role_menu`
VALUES (1729685491108446210, 1906674838461321222);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 100);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1001);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1002);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1003);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1004);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1005);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1006);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1007);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1775500307898949634);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1775895273104068610);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1775895273104068611);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1775895273104068612);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1775895273104068613);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1775895273104068614);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1775895273104068615);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1780240077690507266);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1780240077690507267);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1780240077690507268);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1780240077690507269);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1780240077690507270);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1780240077690507271);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1780255628576018433);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1780255628576018434);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1780255628576018435);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1780255628576018436);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1780255628576018437);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1780255628576018438);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1786379590171156481);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1786379590171156482);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1786379590171156483);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1786379590171156484);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1786379590171156485);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1786379590171156486);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1787078000285122561);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1810594719028834305);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1810594719028834306);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1810594719028834307);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1810594719028834308);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1810594719028834309);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1810594719028834310);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1843281231381852162);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1860690448695549953);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1898286496441393153);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1900172314827739137);
INSERT INTO `sys_role_menu`
VALUES (1905899651235143681, 1902184523796742145);

-- ----------------------------
-- Table structure for sys_tenant
-- ----------------------------
DROP TABLE IF EXISTS `sys_tenant`;
CREATE TABLE `sys_tenant`
(
    `id`                bigint(20) NOT NULL COMMENT 'id',
    `tenant_id`         varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '租户编号',
    `contact_user_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系人',
    `contact_phone`     varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系电话',
    `company_name`      varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '企业名称',
    `license_number`    varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '统一社会信用代码',
    `address`           varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地址',
    `intro`             varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '企业简介',
    `domain`            varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '域名',
    `remark`            varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    `package_id`        bigint(20) NULL DEFAULT NULL COMMENT '租户套餐编号',
    `expire_time`       datetime NULL DEFAULT NULL COMMENT '过期时间',
    `account_count`     int(11) NULL DEFAULT -1 COMMENT '用户数量（-1不限制）',
    `status`            char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '租户状态（0正常 1停用）',
    `del_flag`          char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    `create_dept`       bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`         bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`       datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`         bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`       datetime NULL DEFAULT NULL COMMENT '更新时间',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '租户表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_tenant
-- ----------------------------
INSERT INTO `sys_tenant`
VALUES (1, '000000', '管理组', '15888888888', 'XXX有限公司', NULL, NULL, '多租户通用后台管理管理系统', NULL, NULL, NULL,
        NULL, -1, '0', '0', 103, 1, '2023-05-14 15:19:39', NULL, NULL);

-- ----------------------------
-- Table structure for sys_tenant_package
-- ----------------------------
DROP TABLE IF EXISTS `sys_tenant_package`;
CREATE TABLE `sys_tenant_package`
(
    `package_id`          bigint(20) NOT NULL COMMENT '租户套餐id',
    `package_name`        varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '套餐名称',
    `menu_ids`            varchar(3000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关联菜单id',
    `remark`              varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
    `menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
    `status`              char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态（0正常 1停用）',
    `del_flag`            char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
    `create_dept`         bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
    `create_by`           bigint(20) NULL DEFAULT NULL COMMENT '创建者',
    `create_time`         datetime NULL DEFAULT NULL COMMENT '创建时间',
    `update_by`           bigint(20) NULL DEFAULT NULL COMMENT '更新者',
    `update_time`         datetime NULL DEFAULT NULL COMMENT '更新时间',
    PRIMARY KEY (`package_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '租户套餐表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_tenant_package
-- ----------------------------

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user`
(
    `user_id`      bigint(20) NOT NULL COMMENT '用户ID',
    `open_id`      varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信用户标识',
    `user_grade`   char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '用户等级',
    `user_balance` double(20, 2
) NULL DEFAULT 0.00 COMMENT '账户余额',
  `tenant_id` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户编号',
  `dept_id` bigint(20) NULL DEFAULT NULL COMMENT '部门ID',
  `user_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户账号',
  `nick_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户昵称',
  `user_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'sys_user' COMMENT '用户类型（sys_user系统用户）',
  `user_plan` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'Free' COMMENT '用户套餐',
  `email` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '用户邮箱',
  `phonenumber` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '手机号码',
  `sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '用户性别（0男 1女 2未知）',
  `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '头像地址',
  `wx_avatar` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '微信头像地址',
  `password` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '密码',
  `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '帐号状态（0正常 1停用）',
  `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志（0代表存在 2代表删除）',
  `login_ip` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '最后登录IP',
  `login_date` datetime NULL DEFAULT NULL COMMENT '最后登录时间',
  `domain_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '注册域名',
  `create_dept` bigint(20) NULL DEFAULT NULL COMMENT '创建部门',
  `create_by` bigint(20) NULL DEFAULT NULL COMMENT '创建者',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `update_by` bigint(20) NULL DEFAULT NULL COMMENT '更新者',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `krole_group_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '关联知识库角色/角色组',
  `krole_group_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '关联知识库角色/角色组id',
  PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户信息表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user`
VALUES (1, NULL, '1', 855.40, '00000', 103, 'admin', 'admin', 'sys_user', 'Free', 'ageerle@163.com', '15888888888', '0',
        'https://ruoyi-ai-1254149996.cos.ap-guangzhou.myqcloud.com/2025/05/24/727370b029b648ea968977085da2b20f.jpg',
        NULL, '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1',
        '2025-09-17 17:19:17', NULL, 103, 1, '2023-05-14 15:19:39', 1, '2025-09-17 17:19:17', '管理员', NULL, NULL);
INSERT INTO `sys_user`
VALUES (1905928435494330370, NULL, '1', 100.00, '000000', 103, 'ageerle@163.com', '熊猫助手', 'sys_user', 'Free',
        'ageerle@163.com', '', '0', NULL, NULL, '$2a$10$8WO.FFcmu4L/DhzpfM4rbee0HRK6gIYIs2KsRXkc4ckjudbzchvPi', '0',
        '2', '', NULL, NULL, 103, 1, '2025-03-29 18:22:04', 1, '2025-03-31 10:15:11', '备用账号', NULL, NULL);

-- ----------------------------
-- Table structure for sys_user_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_post`;
CREATE TABLE `sys_user_post`
(
    `user_id` bigint(20) NOT NULL COMMENT '用户ID',
    `post_id` bigint(20) NOT NULL COMMENT '岗位ID',
    PRIMARY KEY (`user_id`, `post_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户与岗位关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_user_post
-- ----------------------------
INSERT INTO `sys_user_post`
VALUES (1, 1);
INSERT INTO `sys_user_post`
VALUES (2, 2);
INSERT INTO `sys_user_post`
VALUES (1661660085084250114, 2);
INSERT INTO `sys_user_post`
VALUES (1661660804847788034, 1);
INSERT INTO `sys_user_post`
VALUES (1925795787894333441, 2);

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role`
(
    `user_id` bigint(20) NOT NULL COMMENT '用户ID',
    `role_id` bigint(20) NOT NULL COMMENT '角色ID',
    PRIMARY KEY (`user_id`, `role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户和角色关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
INSERT INTO `sys_user_role`
VALUES (1, 1);
INSERT INTO `sys_user_role`
VALUES (2, 2);
INSERT INTO `sys_user_role`
VALUES (3, 3);
INSERT INTO `sys_user_role`
VALUES (4, 4);
INSERT INTO `sys_user_role`
VALUES (1661646824293031937, 1661661183933177857);
INSERT INTO `sys_user_role`
VALUES (1661660085084250114, 1661661183933177857);
INSERT INTO `sys_user_role`
VALUES (1661660804847788034, 2);
INSERT INTO `sys_user_role`
VALUES (1713427806956404738, 1);
INSERT INTO `sys_user_role`
VALUES (1713439839684689921, 1);
INSERT INTO `sys_user_role`
VALUES (1713440206715650049, 1);
INSERT INTO `sys_user_role`
VALUES (1714267685998907393, 1);
INSERT INTO `sys_user_role`
VALUES (1714269581270667265, 1);
INSERT INTO `sys_user_role`
VALUES (1714270420659949569, 1);
INSERT INTO `sys_user_role`
VALUES (1714455864827723777, 1);
INSERT INTO `sys_user_role`
VALUES (1714536425072115714, 1);
INSERT INTO `sys_user_role`
VALUES (1714819715117105153, 1);
INSERT INTO `sys_user_role`
VALUES (1714820415783976961, 1);
INSERT INTO `sys_user_role`
VALUES (1714820611611836417, 1);
INSERT INTO `sys_user_role`
VALUES (1714820755698761729, 1);
INSERT INTO `sys_user_role`
VALUES (1714823588305190914, 1);
INSERT INTO `sys_user_role`
VALUES (1714829502936530945, 1);
INSERT INTO `sys_user_role`
VALUES (1714898663033290754, 1);
INSERT INTO `sys_user_role`
VALUES (1714942733206175746, 1);
INSERT INTO `sys_user_role`
VALUES (1714943378361434113, 1);
INSERT INTO `sys_user_role`
VALUES (1714943388671033346, 1);
INSERT INTO `sys_user_role`
VALUES (1714945928464711682, 1);
INSERT INTO `sys_user_role`
VALUES (1714946100850606082, 1);
INSERT INTO `sys_user_role`
VALUES (1714952355237347329, 1);
INSERT INTO `sys_user_role`
VALUES (1714954192279584770, 1);
INSERT INTO `sys_user_role`
VALUES (1714960721598758913, 1);
INSERT INTO `sys_user_role`
VALUES (1714961357132283906, 1);
INSERT INTO `sys_user_role`
VALUES (1714963426656403458, 1);
INSERT INTO `sys_user_role`
VALUES (1714980339130318850, 1);
INSERT INTO `sys_user_role`
VALUES (1714985002550444034, 1);
INSERT INTO `sys_user_role`
VALUES (1714996959085084674, 1);
INSERT INTO `sys_user_role`
VALUES (1715000784541990913, 1);
INSERT INTO `sys_user_role`
VALUES (1715160830886297602, 1);
INSERT INTO `sys_user_role`
VALUES (1715174792021426177, 1);
INSERT INTO `sys_user_role`
VALUES (1715176760861278209, 1);
INSERT INTO `sys_user_role`
VALUES (1715187418688405506, 1);
INSERT INTO `sys_user_role`
VALUES (1715263570077564930, 1);
INSERT INTO `sys_user_role`
VALUES (1715273299113820162, 1);
INSERT INTO `sys_user_role`
VALUES (1715289765028577281, 1);
INSERT INTO `sys_user_role`
VALUES (1715642509052624897, 1);
INSERT INTO `sys_user_role`
VALUES (1715645217792868353, 1);
INSERT INTO `sys_user_role`
VALUES (1715655140035543041, 1);
INSERT INTO `sys_user_role`
VALUES (1715688813166346242, 1);
INSERT INTO `sys_user_role`
VALUES (1715695623109623810, 1);
INSERT INTO `sys_user_role`
VALUES (1716076523383177217, 1);
INSERT INTO `sys_user_role`
VALUES (1716077329079615490, 1);
INSERT INTO `sys_user_role`
VALUES (1716316658037178370, 1);
INSERT INTO `sys_user_role`
VALUES (1716375479287824386, 1);
INSERT INTO `sys_user_role`
VALUES (1716376929359380482, 1);
INSERT INTO `sys_user_role`
VALUES (1716449431389487106, 1);
INSERT INTO `sys_user_role`
VALUES (1716626232627707906, 1);
INSERT INTO `sys_user_role`
VALUES (1716668774639484929, 1);
INSERT INTO `sys_user_role`
VALUES (1716723582348050434, 1);
INSERT INTO `sys_user_role`
VALUES (1717010625036828674, 1);
INSERT INTO `sys_user_role`
VALUES (1717112818712723458, 1);
INSERT INTO `sys_user_role`
VALUES (1717171039955599361, 1);
INSERT INTO `sys_user_role`
VALUES (1717382776042569730, 1);
INSERT INTO `sys_user_role`
VALUES (1717383874597896194, 1);
INSERT INTO `sys_user_role`
VALUES (1717463477270102018, 1);
INSERT INTO `sys_user_role`
VALUES (1717550755342467074, 1);
INSERT INTO `sys_user_role`
VALUES (1718643906618605569, 1);
INSERT INTO `sys_user_role`
VALUES (1719357065528623105, 1);
INSERT INTO `sys_user_role`
VALUES (1719629669720145921, 1);
INSERT INTO `sys_user_role`
VALUES (1719631746265530370, 1);
INSERT INTO `sys_user_role`
VALUES (1719969371128086529, 1);
INSERT INTO `sys_user_role`
VALUES (1719994192431955970, 1);
INSERT INTO `sys_user_role`
VALUES (1720001597920264194, 1);
INSERT INTO `sys_user_role`
VALUES (1720054174099718145, 1);
INSERT INTO `sys_user_role`
VALUES (1720373256426635265, 1);
INSERT INTO `sys_user_role`
VALUES (1720615324298264578, 1);
INSERT INTO `sys_user_role`
VALUES (1720966085100191746, 1);
INSERT INTO `sys_user_role`
VALUES (1721433118342397954, 1);
INSERT INTO `sys_user_role`
VALUES (1721798759096270850, 1);
INSERT INTO `sys_user_role`
VALUES (1721869407395332097, 1);
INSERT INTO `sys_user_role`
VALUES (1721869952080232450, 1);
INSERT INTO `sys_user_role`
VALUES (1722083875718737921, 1);
INSERT INTO `sys_user_role`
VALUES (1722126825769185282, 1);
INSERT INTO `sys_user_role`
VALUES (1722453238653169665, 1);
INSERT INTO `sys_user_role`
VALUES (1722501722198552577, 1);
INSERT INTO `sys_user_role`
VALUES (1722546398997819394, 1);
INSERT INTO `sys_user_role`
VALUES (1722635856464097281, 1);
INSERT INTO `sys_user_role`
VALUES (1722652602847768578, 1);
INSERT INTO `sys_user_role`
VALUES (1722787874222682114, 1);
INSERT INTO `sys_user_role`
VALUES (1722799180870889473, 1);
INSERT INTO `sys_user_role`
VALUES (1722872660475817986, 1);
INSERT INTO `sys_user_role`
VALUES (1722874592401600514, 1);
INSERT INTO `sys_user_role`
VALUES (1722883137289367554, 1);
INSERT INTO `sys_user_role`
VALUES (1722918534182645762, 1);
INSERT INTO `sys_user_role`
VALUES (1723173295586848769, 1);
INSERT INTO `sys_user_role`
VALUES (1723222687891107841, 1);
INSERT INTO `sys_user_role`
VALUES (1723224404040921089, 1);
INSERT INTO `sys_user_role`
VALUES (1723225015520112641, 1);
INSERT INTO `sys_user_role`
VALUES (1723278284531478529, 1);
INSERT INTO `sys_user_role`
VALUES (1723330835209564161, 1);
INSERT INTO `sys_user_role`
VALUES (1723708198137147393, 1);
INSERT INTO `sys_user_role`
VALUES (1723754683843260417, 1);
INSERT INTO `sys_user_role`
VALUES (1723878185250369537, 1);
INSERT INTO `sys_user_role`
VALUES (1723940614634254337, 1);
INSERT INTO `sys_user_role`
VALUES (1723975861757325314, 1);
INSERT INTO `sys_user_role`
VALUES (1724306907803725826, 1);
INSERT INTO `sys_user_role`
VALUES (1724308252862492673, 1);
INSERT INTO `sys_user_role`
VALUES (1724382895124295681, 1);
INSERT INTO `sys_user_role`
VALUES (1724727778758406145, 1);
INSERT INTO `sys_user_role`
VALUES (1724815478295425026, 1);
INSERT INTO `sys_user_role`
VALUES (1725026071145107458, 1);
INSERT INTO `sys_user_role`
VALUES (1725026978817658881, 1);
INSERT INTO `sys_user_role`
VALUES (1725043562961457154, 1);
INSERT INTO `sys_user_role`
VALUES (1725058936893362178, 1);
INSERT INTO `sys_user_role`
VALUES (1725363117009162242, 1);
INSERT INTO `sys_user_role`
VALUES (1725538633251049474, 1);
INSERT INTO `sys_user_role`
VALUES (1725564937467875329, 1);
INSERT INTO `sys_user_role`
VALUES (1725891713243021314, 1);
INSERT INTO `sys_user_role`
VALUES (1725905000621932546, 1);
INSERT INTO `sys_user_role`
VALUES (1726440708294049793, 1);
INSERT INTO `sys_user_role`
VALUES (1726443526979584002, 1);
INSERT INTO `sys_user_role`
VALUES (1726445663797116929, 1);
INSERT INTO `sys_user_role`
VALUES (1726452867329687553, 1);
INSERT INTO `sys_user_role`
VALUES (1726472827451998209, 1);
INSERT INTO `sys_user_role`
VALUES (1726479651370696705, 1);
INSERT INTO `sys_user_role`
VALUES (1726487492674195458, 1);
INSERT INTO `sys_user_role`
VALUES (1726496513055784961, 1);
INSERT INTO `sys_user_role`
VALUES (1726498781398302722, 1);
INSERT INTO `sys_user_role`
VALUES (1726506873632587778, 1);
INSERT INTO `sys_user_role`
VALUES (1726529248394739714, 1);
INSERT INTO `sys_user_role`
VALUES (1726578079102664705, 1);
INSERT INTO `sys_user_role`
VALUES (1726582181383634946, 1);
INSERT INTO `sys_user_role`
VALUES (1726583555672506369, 1);
INSERT INTO `sys_user_role`
VALUES (1726596448690372609, 1);
INSERT INTO `sys_user_role`
VALUES (1726599361261207553, 1);
INSERT INTO `sys_user_role`
VALUES (1726604511749079041, 1);
INSERT INTO `sys_user_role`
VALUES (1726606973822304258, 1);
INSERT INTO `sys_user_role`
VALUES (1726609379524083713, 1);
INSERT INTO `sys_user_role`
VALUES (1726616151265640450, 1);
INSERT INTO `sys_user_role`
VALUES (1726775811478126594, 1);
INSERT INTO `sys_user_role`
VALUES (1726795490141667329, 1);
INSERT INTO `sys_user_role`
VALUES (1726798403169681410, 1);
INSERT INTO `sys_user_role`
VALUES (1726830794655399937, 1);
INSERT INTO `sys_user_role`
VALUES (1726862038013313026, 1);
INSERT INTO `sys_user_role`
VALUES (1726919220696186882, 1);
INSERT INTO `sys_user_role`
VALUES (1727140184050630658, 1);
INSERT INTO `sys_user_role`
VALUES (1727506163368722433, 1);
INSERT INTO `sys_user_role`
VALUES (1727518983086931969, 1);
INSERT INTO `sys_user_role`
VALUES (1727580969606840321, 1);
INSERT INTO `sys_user_role`
VALUES (1727590505323429890, 1);
INSERT INTO `sys_user_role`
VALUES (1727918393172164609, 1);
INSERT INTO `sys_user_role`
VALUES (1728249002000121857, 1);
INSERT INTO `sys_user_role`
VALUES (1728680561446486017, 1);
INSERT INTO `sys_user_role`
VALUES (1728964404182577153, 1);
INSERT INTO `sys_user_role`
VALUES (1729020459675611137, 1);
INSERT INTO `sys_user_role`
VALUES (1729051002043691009, 1);
INSERT INTO `sys_user_role`
VALUES (1729423744832172033, 1);
INSERT INTO `sys_user_role`
VALUES (1729429590291050497, 1);
INSERT INTO `sys_user_role`
VALUES (1729685493222375426, 1729685491108446210);
INSERT INTO `sys_user_role`
VALUES (1730050324466036738, 1);
INSERT INTO `sys_user_role`
VALUES (1730102403335254018, 1);
INSERT INTO `sys_user_role`
VALUES (1730129923250122754, 1);
INSERT INTO `sys_user_role`
VALUES (1730155108925763586, 1);
INSERT INTO `sys_user_role`
VALUES (1730273428207366145, 1);
INSERT INTO `sys_user_role`
VALUES (1730498722784669697, 1);
INSERT INTO `sys_user_role`
VALUES (1730815105229713410, 1);
INSERT INTO `sys_user_role`
VALUES (1730858886951923714, 1);
INSERT INTO `sys_user_role`
VALUES (1731357405659824130, 1);
INSERT INTO `sys_user_role`
VALUES (1731475532557090818, 1);
INSERT INTO `sys_user_role`
VALUES (1731480953627901953, 1);
INSERT INTO `sys_user_role`
VALUES (1731502381106495490, 1);
INSERT INTO `sys_user_role`
VALUES (1731524458442162177, 1);
INSERT INTO `sys_user_role`
VALUES (1731524630094053377, 1);
INSERT INTO `sys_user_role`
VALUES (1731524650293821441, 1);
INSERT INTO `sys_user_role`
VALUES (1731529253710233601, 1);
INSERT INTO `sys_user_role`
VALUES (1731559936046432258, 1);
INSERT INTO `sys_user_role`
VALUES (1731564032228884482, 1);
INSERT INTO `sys_user_role`
VALUES (1731565926737281026, 1);
INSERT INTO `sys_user_role`
VALUES (1731566918589513729, 1);
INSERT INTO `sys_user_role`
VALUES (1731567740094283778, 1);
INSERT INTO `sys_user_role`
VALUES (1731575439263563777, 1);
INSERT INTO `sys_user_role`
VALUES (1731583864055824385, 1);
INSERT INTO `sys_user_role`
VALUES (1731588155382464513, 1);
INSERT INTO `sys_user_role`
VALUES (1731589827840212993, 1);
INSERT INTO `sys_user_role`
VALUES (1731635461435719682, 1);
INSERT INTO `sys_user_role`
VALUES (1731668049902731266, 1);
INSERT INTO `sys_user_role`
VALUES (1731922694168412162, 1);
INSERT INTO `sys_user_role`
VALUES (1731944975456305153, 1);
INSERT INTO `sys_user_role`
VALUES (1731949019394506753, 1);
INSERT INTO `sys_user_role`
VALUES (1731951425054343170, 1);
INSERT INTO `sys_user_role`
VALUES (1732000242621513729, 1);
INSERT INTO `sys_user_role`
VALUES (1732027163380056066, 1);
INSERT INTO `sys_user_role`
VALUES (1732289382269353985, 1);
INSERT INTO `sys_user_role`
VALUES (1732289439282528258, 1);
INSERT INTO `sys_user_role`
VALUES (1732289699585228801, 1);
INSERT INTO `sys_user_role`
VALUES (1732290827173527553, 1);
INSERT INTO `sys_user_role`
VALUES (1732291549344595969, 1);
INSERT INTO `sys_user_role`
VALUES (1732293265184030721, 1);
INSERT INTO `sys_user_role`
VALUES (1732329664117506049, 1);
INSERT INTO `sys_user_role`
VALUES (1732334104450990081, 1);
INSERT INTO `sys_user_role`
VALUES (1732578671045672962, 1);
INSERT INTO `sys_user_role`
VALUES (1732584047426174978, 1);
INSERT INTO `sys_user_role`
VALUES (1732608690321129474, 1);
INSERT INTO `sys_user_role`
VALUES (1732678147815014401, 1);
INSERT INTO `sys_user_role`
VALUES (1732731410102910977, 1);
INSERT INTO `sys_user_role`
VALUES (1733005266763939841, 1);
INSERT INTO `sys_user_role`
VALUES (1733016149837774850, 1);
INSERT INTO `sys_user_role`
VALUES (1733053523871432705, 1);
INSERT INTO `sys_user_role`
VALUES (1733061400367497218, 1);
INSERT INTO `sys_user_role`
VALUES (1733167090469732353, 1);
INSERT INTO `sys_user_role`
VALUES (1733298702729641986, 1);
INSERT INTO `sys_user_role`
VALUES (1733488544511983617, 1);
INSERT INTO `sys_user_role`
VALUES (1733720554119659521, 1);
INSERT INTO `sys_user_role`
VALUES (1733846657777827842, 1);
INSERT INTO `sys_user_role`
VALUES (1733859832720031745, 1);
INSERT INTO `sys_user_role`
VALUES (1734137817339559938, 1);
INSERT INTO `sys_user_role`
VALUES (1734227535762849793, 1);
INSERT INTO `sys_user_role`
VALUES (1734492373726560257, 1);
INSERT INTO `sys_user_role`
VALUES (1734508040978726914, 1);
INSERT INTO `sys_user_role`
VALUES (1734513545461661697, 1);
INSERT INTO `sys_user_role`
VALUES (1734581580998451202, 1);
INSERT INTO `sys_user_role`
VALUES (1734751884580298754, 1);
INSERT INTO `sys_user_role`
VALUES (1734781716483612674, 1);
INSERT INTO `sys_user_role`
VALUES (1734833221987278849, 1);
INSERT INTO `sys_user_role`
VALUES (1734834063154946050, 1);
INSERT INTO `sys_user_role`
VALUES (1734880697666576386, 1);
INSERT INTO `sys_user_role`
VALUES (1734891995888427009, 1);
INSERT INTO `sys_user_role`
VALUES (1735132534701367297, 1);
INSERT INTO `sys_user_role`
VALUES (1735242647239991298, 1);
INSERT INTO `sys_user_role`
VALUES (1735486862444273666, 1);
INSERT INTO `sys_user_role`
VALUES (1735487912727355394, 1);
INSERT INTO `sys_user_role`
VALUES (1735542352767426561, 1);
INSERT INTO `sys_user_role`
VALUES (1735551915889598466, 1);
INSERT INTO `sys_user_role`
VALUES (1735616653411557377, 1);
INSERT INTO `sys_user_role`
VALUES (1735835864146714626, 1);
INSERT INTO `sys_user_role`
VALUES (1735953007769100289, 1);
INSERT INTO `sys_user_role`
VALUES (1735960189784891393, 1);
INSERT INTO `sys_user_role`
VALUES (1736265950381547522, 1);
INSERT INTO `sys_user_role`
VALUES (1736577606684844034, 1);
INSERT INTO `sys_user_role`
VALUES (1736638822375563266, 1);
INSERT INTO `sys_user_role`
VALUES (1736779069306511361, 1);
INSERT INTO `sys_user_role`
VALUES (1737028378602053634, 1);
INSERT INTO `sys_user_role`
VALUES (1737271234797314050, 1);
INSERT INTO `sys_user_role`
VALUES (1737315322405920770, 1);
INSERT INTO `sys_user_role`
VALUES (1737445221154234370, 1);
INSERT INTO `sys_user_role`
VALUES (1737452907568635906, 1);
INSERT INTO `sys_user_role`
VALUES (1737453186955419649, 1);
INSERT INTO `sys_user_role`
VALUES (1737717777685880833, 1);
INSERT INTO `sys_user_role`
VALUES (1737768515594166274, 1);
INSERT INTO `sys_user_role`
VALUES (1738108912170246145, 1);
INSERT INTO `sys_user_role`
VALUES (1738118086488825858, 1);
INSERT INTO `sys_user_role`
VALUES (1738520430804279297, 1);
INSERT INTO `sys_user_role`
VALUES (1738802060248817666, 1);
INSERT INTO `sys_user_role`
VALUES (1738812447119712257, 1);
INSERT INTO `sys_user_role`
VALUES (1738941480197234689, 1);
INSERT INTO `sys_user_role`
VALUES (1738963430776840194, 1);
INSERT INTO `sys_user_role`
VALUES (1739121784341995522, 1);
INSERT INTO `sys_user_role`
VALUES (1739166931951886338, 1);
INSERT INTO `sys_user_role`
VALUES (1739272055240073217, 1);
INSERT INTO `sys_user_role`
VALUES (1739451838930427905, 1);
INSERT INTO `sys_user_role`
VALUES (1739452037375533057, 1);
INSERT INTO `sys_user_role`
VALUES (1739452376946384898, 1);
INSERT INTO `sys_user_role`
VALUES (1739484503888961537, 1);
INSERT INTO `sys_user_role`
VALUES (1739485282335006722, 1);
INSERT INTO `sys_user_role`
VALUES (1739577551431999490, 1);
INSERT INTO `sys_user_role`
VALUES (1739825609910591489, 1);
INSERT INTO `sys_user_role`
VALUES (1739916453439152130, 1);
INSERT INTO `sys_user_role`
VALUES (1740188388454629378, 1);
INSERT INTO `sys_user_role`
VALUES (1741339991320580097, 1);
INSERT INTO `sys_user_role`
VALUES (1741803737633542145, 1);
INSERT INTO `sys_user_role`
VALUES (1741823858229923841, 1);
INSERT INTO `sys_user_role`
VALUES (1741845883943227393, 1);
INSERT INTO `sys_user_role`
VALUES (1742179775941201921, 1);
INSERT INTO `sys_user_role`
VALUES (1742437553771458562, 1);
INSERT INTO `sys_user_role`
VALUES (1742451201315254273, 1);
INSERT INTO `sys_user_role`
VALUES (1742469913120419841, 1);
INSERT INTO `sys_user_role`
VALUES (1742798283280568321, 1);
INSERT INTO `sys_user_role`
VALUES (1742798987701342210, 1);
INSERT INTO `sys_user_role`
VALUES (1742799476950126594, 1);
INSERT INTO `sys_user_role`
VALUES (1742799839619010562, 1);
INSERT INTO `sys_user_role`
VALUES (1742801019527057410, 1);
INSERT INTO `sys_user_role`
VALUES (1742804073915699202, 1);
INSERT INTO `sys_user_role`
VALUES (1742821280687149058, 1);
INSERT INTO `sys_user_role`
VALUES (1742821467476283394, 1);
INSERT INTO `sys_user_role`
VALUES (1742822775600009217, 1);
INSERT INTO `sys_user_role`
VALUES (1742823890928357377, 1);
INSERT INTO `sys_user_role`
VALUES (1742838225297821697, 1);
INSERT INTO `sys_user_role`
VALUES (1742902317295423490, 1);
INSERT INTO `sys_user_role`
VALUES (1742910854243373058, 1);
INSERT INTO `sys_user_role`
VALUES (1742961994725150721, 1);
INSERT INTO `sys_user_role`
VALUES (1742969861079388161, 1);
INSERT INTO `sys_user_role`
VALUES (1743068363130228737, 1);
INSERT INTO `sys_user_role`
VALUES (1743075924621479938, 1);
INSERT INTO `sys_user_role`
VALUES (1743079200725225474, 1);
INSERT INTO `sys_user_role`
VALUES (1743085878682144769, 1);
INSERT INTO `sys_user_role`
VALUES (1743110774967586818, 1);
INSERT INTO `sys_user_role`
VALUES (1743162481042870274, 1);
INSERT INTO `sys_user_role`
VALUES (1743166491284033537, 1);
INSERT INTO `sys_user_role`
VALUES (1743251016219447297, 1);
INSERT INTO `sys_user_role`
VALUES (1743469820367142914, 1);
INSERT INTO `sys_user_role`
VALUES (1743514389280522242, 1);
INSERT INTO `sys_user_role`
VALUES (1743519646916083714, 1);
INSERT INTO `sys_user_role`
VALUES (1743670356026654722, 1);
INSERT INTO `sys_user_role`
VALUES (1743892570516815874, 1);
INSERT INTO `sys_user_role`
VALUES (1743952049409146882, 1);
INSERT INTO `sys_user_role`
VALUES (1744268693259993089, 1);
INSERT INTO `sys_user_role`
VALUES (1744351384550567938, 1);
INSERT INTO `sys_user_role`
VALUES (1744561041202278402, 1);
INSERT INTO `sys_user_role`
VALUES (1744574752277196801, 1);
INSERT INTO `sys_user_role`
VALUES (1744619123995373569, 1);
INSERT INTO `sys_user_role`
VALUES (1744627110742913025, 1);
INSERT INTO `sys_user_role`
VALUES (1744634408357916673, 1);
INSERT INTO `sys_user_role`
VALUES (1744645281965207554, 1);
INSERT INTO `sys_user_role`
VALUES (1744724410316156930, 1);
INSERT INTO `sys_user_role`
VALUES (1744892307919400962, 1);
INSERT INTO `sys_user_role`
VALUES (1744903174606090241, 1);
INSERT INTO `sys_user_role`
VALUES (1744904968014983169, 1);
INSERT INTO `sys_user_role`
VALUES (1744905787204497410, 1);
INSERT INTO `sys_user_role`
VALUES (1744911513595473921, 1);
INSERT INTO `sys_user_role`
VALUES (1744912178359103490, 1);
INSERT INTO `sys_user_role`
VALUES (1744912486720139266, 1);
INSERT INTO `sys_user_role`
VALUES (1744915552240463874, 1);
INSERT INTO `sys_user_role`
VALUES (1744923917133869058, 1);
INSERT INTO `sys_user_role`
VALUES (1744971513579761666, 1);
INSERT INTO `sys_user_role`
VALUES (1744984070818426882, 1);
INSERT INTO `sys_user_role`
VALUES (1744984147393835010, 1);
INSERT INTO `sys_user_role`
VALUES (1744992401243041793, 1);
INSERT INTO `sys_user_role`
VALUES (1745011131444424706, 1);
INSERT INTO `sys_user_role`
VALUES (1745061549180514306, 1);
INSERT INTO `sys_user_role`
VALUES (1745346479991091201, 1);
INSERT INTO `sys_user_role`
VALUES (1745346822607007745, 1);
INSERT INTO `sys_user_role`
VALUES (1745368346374217730, 1);
INSERT INTO `sys_user_role`
VALUES (1745424741765259266, 1);
INSERT INTO `sys_user_role`
VALUES (1745426757090582530, 1);
INSERT INTO `sys_user_role`
VALUES (1745620173124575234, 1);
INSERT INTO `sys_user_role`
VALUES (1745623876426571777, 1);
INSERT INTO `sys_user_role`
VALUES (1745654577691664386, 1);
INSERT INTO `sys_user_role`
VALUES (1745663259879972865, 1);
INSERT INTO `sys_user_role`
VALUES (1745686038692012034, 1);
INSERT INTO `sys_user_role`
VALUES (1745738268480675842, 1);
INSERT INTO `sys_user_role`
VALUES (1745790952546017281, 1);
INSERT INTO `sys_user_role`
VALUES (1746397384551211009, 1);
INSERT INTO `sys_user_role`
VALUES (1746400980533551105, 1);
INSERT INTO `sys_user_role`
VALUES (1746522414111039489, 1);
INSERT INTO `sys_user_role`
VALUES (1746873386528223234, 1);
INSERT INTO `sys_user_role`
VALUES (1747067318369333249, 1);
INSERT INTO `sys_user_role`
VALUES (1747071365822361602, 1);
INSERT INTO `sys_user_role`
VALUES (1747153912031948801, 1);
INSERT INTO `sys_user_role`
VALUES (1747197655195922434, 1);
INSERT INTO `sys_user_role`
VALUES (1747519480203390977, 1);
INSERT INTO `sys_user_role`
VALUES (1747521265550831618, 1);
INSERT INTO `sys_user_role`
VALUES (1747523421662162945, 1);
INSERT INTO `sys_user_role`
VALUES (1747797864993075201, 1);
INSERT INTO `sys_user_role`
VALUES (1747800427213697025, 1);
INSERT INTO `sys_user_role`
VALUES (1747910191046275073, 1);
INSERT INTO `sys_user_role`
VALUES (1747923453217419265, 1);
INSERT INTO `sys_user_role`
VALUES (1748187110132232193, 1);
INSERT INTO `sys_user_role`
VALUES (1748260926648823809, 1);
INSERT INTO `sys_user_role`
VALUES (1748276826697445377, 1);
INSERT INTO `sys_user_role`
VALUES (1748312313952808962, 1);
INSERT INTO `sys_user_role`
VALUES (1748635584837529601, 1);
INSERT INTO `sys_user_role`
VALUES (1748642479459610625, 1);
INSERT INTO `sys_user_role`
VALUES (1748663294624346114, 1);
INSERT INTO `sys_user_role`
VALUES (1748703876608503810, 1);
INSERT INTO `sys_user_role`
VALUES (1748704145589219329, 1);
INSERT INTO `sys_user_role`
VALUES (1748708285178523649, 1);
INSERT INTO `sys_user_role`
VALUES (1748728575929430017, 1);
INSERT INTO `sys_user_role`
VALUES (1748761666442047490, 1);
INSERT INTO `sys_user_role`
VALUES (1748925826178035713, 1);
INSERT INTO `sys_user_role`
VALUES (1749259130492235778, 1);
INSERT INTO `sys_user_role`
VALUES (1749280237328871426, 1);
INSERT INTO `sys_user_role`
VALUES (1749289400549322754, 1);
INSERT INTO `sys_user_role`
VALUES (1749327661225291778, 1);
INSERT INTO `sys_user_role`
VALUES (1749365593797636097, 1);
INSERT INTO `sys_user_role`
VALUES (1749407786692325378, 1);
INSERT INTO `sys_user_role`
VALUES (1749519043344805890, 1);
INSERT INTO `sys_user_role`
VALUES (1749683041063219202, 1);
INSERT INTO `sys_user_role`
VALUES (1749683546774646786, 1);
INSERT INTO `sys_user_role`
VALUES (1749691765567860737, 1);
INSERT INTO `sys_user_role`
VALUES (1749705571236917249, 1);
INSERT INTO `sys_user_role`
VALUES (1749740828837359618, 1);
INSERT INTO `sys_user_role`
VALUES (1749741179162406914, 1);
INSERT INTO `sys_user_role`
VALUES (1749741340039131137, 1);
INSERT INTO `sys_user_role`
VALUES (1749747618241130497, 1);
INSERT INTO `sys_user_role`
VALUES (1749747701439344641, 1);
INSERT INTO `sys_user_role`
VALUES (1749786825391157250, 1);
INSERT INTO `sys_user_role`
VALUES (1749789665819963394, 1);
INSERT INTO `sys_user_role`
VALUES (1749797707705823234, 1);
INSERT INTO `sys_user_role`
VALUES (1749974903762210818, 1);
INSERT INTO `sys_user_role`
VALUES (1749982777750081537, 1);
INSERT INTO `sys_user_role`
VALUES (1749990634667134978, 1);
INSERT INTO `sys_user_role`
VALUES (1749991325137653761, 1);
INSERT INTO `sys_user_role`
VALUES (1749992779328016386, 1);
INSERT INTO `sys_user_role`
VALUES (1749993573204905985, 1);
INSERT INTO `sys_user_role`
VALUES (1749994406877351937, 1);
INSERT INTO `sys_user_role`
VALUES (1749995279187726337, 1);
INSERT INTO `sys_user_role`
VALUES (1749995486029828097, 1);
INSERT INTO `sys_user_role`
VALUES (1749995707686211586, 1);
INSERT INTO `sys_user_role`
VALUES (1750000406883749890, 1);
INSERT INTO `sys_user_role`
VALUES (1750000942706085889, 1);
INSERT INTO `sys_user_role`
VALUES (1750005079111913473, 1);
INSERT INTO `sys_user_role`
VALUES (1750428606466117633, 1);
INSERT INTO `sys_user_role`
VALUES (1750553534423126017, 1);
INSERT INTO `sys_user_role`
VALUES (1750690119441469441, 1);
INSERT INTO `sys_user_role`
VALUES (1750723725312413698, 1);
INSERT INTO `sys_user_role`
VALUES (1750724537434525697, 1);
INSERT INTO `sys_user_role`
VALUES (1750743381616119810, 1);
INSERT INTO `sys_user_role`
VALUES (1750822931356192769, 1);
INSERT INTO `sys_user_role`
VALUES (1750823004563574785, 1);
INSERT INTO `sys_user_role`
VALUES (1751548639330177026, 1);
INSERT INTO `sys_user_role`
VALUES (1751796140318658561, 1);
INSERT INTO `sys_user_role`
VALUES (1751889049818763265, 1);
INSERT INTO `sys_user_role`
VALUES (1751896081141600258, 1);
INSERT INTO `sys_user_role`
VALUES (1751949653564723201, 1);
INSERT INTO `sys_user_role`
VALUES (1751955373517443073, 1);
INSERT INTO `sys_user_role`
VALUES (1751980511470292993, 1);
INSERT INTO `sys_user_role`
VALUES (1752128867307884546, 1);
INSERT INTO `sys_user_role`
VALUES (1752128948195037185, 1);
INSERT INTO `sys_user_role`
VALUES (1752138835683708930, 1);
INSERT INTO `sys_user_role`
VALUES (1752148500127682561, 1);
INSERT INTO `sys_user_role`
VALUES (1752276638077816834, 1);
INSERT INTO `sys_user_role`
VALUES (1752299834210521089, 1);
INSERT INTO `sys_user_role`
VALUES (1752306117726703618, 1);
INSERT INTO `sys_user_role`
VALUES (1752504006021222402, 1);
INSERT INTO `sys_user_role`
VALUES (1752602885546840066, 1);
INSERT INTO `sys_user_role`
VALUES (1752724639351050242, 1);
INSERT INTO `sys_user_role`
VALUES (1753215436756357122, 1);
INSERT INTO `sys_user_role`
VALUES (1753402656570216449, 1);
INSERT INTO `sys_user_role`
VALUES (1753486557368029185, 1);
INSERT INTO `sys_user_role`
VALUES (1753797902466551809, 1);
INSERT INTO `sys_user_role`
VALUES (1753967757819908098, 1);
INSERT INTO `sys_user_role`
VALUES (1754016754462887938, 1);
INSERT INTO `sys_user_role`
VALUES (1754029247868440577, 1);
INSERT INTO `sys_user_role`
VALUES (1754413960445562882, 1);
INSERT INTO `sys_user_role`
VALUES (1754424078633537538, 1);
INSERT INTO `sys_user_role`
VALUES (1754764137119354881, 1);
INSERT INTO `sys_user_role`
VALUES (1755042084761899009, 1);
INSERT INTO `sys_user_role`
VALUES (1755047141691625473, 1);
INSERT INTO `sys_user_role`
VALUES (1756274975479173121, 1);
INSERT INTO `sys_user_role`
VALUES (1756308183021260801, 1);
INSERT INTO `sys_user_role`
VALUES (1757325877958938626, 1);
INSERT INTO `sys_user_role`
VALUES (1758445439802675202, 1);
INSERT INTO `sys_user_role`
VALUES (1759032628991234049, 1);
INSERT INTO `sys_user_role`
VALUES (1759050804781125634, 1);
INSERT INTO `sys_user_role`
VALUES (1759089524834045954, 1);
INSERT INTO `sys_user_role`
VALUES (1759092949802029057, 1);
INSERT INTO `sys_user_role`
VALUES (1759100324189573121, 1);
INSERT INTO `sys_user_role`
VALUES (1759103449889771521, 1);
INSERT INTO `sys_user_role`
VALUES (1759147026191749121, 1);
INSERT INTO `sys_user_role`
VALUES (1759413482020147202, 1);
INSERT INTO `sys_user_role`
VALUES (1759427862430486529, 1);
INSERT INTO `sys_user_role`
VALUES (1759428010174844929, 1);
INSERT INTO `sys_user_role`
VALUES (1759496088514465794, 1);
INSERT INTO `sys_user_role`
VALUES (1759764705965510657, 1);
INSERT INTO `sys_user_role`
VALUES (1759777481207320578, 1);
INSERT INTO `sys_user_role`
VALUES (1759806155667279873, 1);
INSERT INTO `sys_user_role`
VALUES (1759812015655227394, 1);
INSERT INTO `sys_user_role`
VALUES (1759815447778693121, 1);
INSERT INTO `sys_user_role`
VALUES (1759832486966726658, 1);
INSERT INTO `sys_user_role`
VALUES (1759858071113830402, 1);
INSERT INTO `sys_user_role`
VALUES (1759863475847827458, 1);
INSERT INTO `sys_user_role`
VALUES (1759868018195173378, 1);
INSERT INTO `sys_user_role`
VALUES (1759869729374736385, 1);
INSERT INTO `sys_user_role`
VALUES (1760186079276175362, 1);
INSERT INTO `sys_user_role`
VALUES (1760319626808922114, 1);
INSERT INTO `sys_user_role`
VALUES (1760347236137963522, 1);
INSERT INTO `sys_user_role`
VALUES (1760358546837868546, 1);
INSERT INTO `sys_user_role`
VALUES (1760377107434180609, 1);
INSERT INTO `sys_user_role`
VALUES (1760472305161998338, 1);
INSERT INTO `sys_user_role`
VALUES (1760472829932343298, 1);
INSERT INTO `sys_user_role`
VALUES (1760477732188721153, 1);
INSERT INTO `sys_user_role`
VALUES (1760502088176504833, 1);
INSERT INTO `sys_user_role`
VALUES (1760508166310203394, 1);
INSERT INTO `sys_user_role`
VALUES (1760511294409543681, 1);
INSERT INTO `sys_user_role`
VALUES (1760562604135682049, 1);
INSERT INTO `sys_user_role`
VALUES (1760841877480280066, 1);
INSERT INTO `sys_user_role`
VALUES (1760896840365510658, 1);
INSERT INTO `sys_user_role`
VALUES (1760903600501428226, 1);
INSERT INTO `sys_user_role`
VALUES (1761404022634844162, 1);
INSERT INTO `sys_user_role`
VALUES (1761954868732891138, 1);
INSERT INTO `sys_user_role`
VALUES (1761955584197267458, 1);
INSERT INTO `sys_user_role`
VALUES (1762003524345401345, 1);
INSERT INTO `sys_user_role`
VALUES (1762004833618366465, 1);
INSERT INTO `sys_user_role`
VALUES (1762010183880937474, 1);
INSERT INTO `sys_user_role`
VALUES (1762298283890839554, 1);
INSERT INTO `sys_user_role`
VALUES (1762363188014747649, 1);
INSERT INTO `sys_user_role`
VALUES (1762389902388367361, 1);
INSERT INTO `sys_user_role`
VALUES (1762401081961746434, 1);
INSERT INTO `sys_user_role`
VALUES (1762481911417540610, 1);
INSERT INTO `sys_user_role`
VALUES (1762482221645041665, 1);
INSERT INTO `sys_user_role`
VALUES (1762482243174404097, 1);
INSERT INTO `sys_user_role`
VALUES (1762483838461153282, 1);
INSERT INTO `sys_user_role`
VALUES (1762487212380262401, 1);
INSERT INTO `sys_user_role`
VALUES (1762498553535008770, 1);
INSERT INTO `sys_user_role`
VALUES (1762636163465138177, 1);
INSERT INTO `sys_user_role`
VALUES (1762655625413185537, 1);
INSERT INTO `sys_user_role`
VALUES (1762656108559257601, 1);
INSERT INTO `sys_user_role`
VALUES (1762673833499217922, 1);
INSERT INTO `sys_user_role`
VALUES (1762677825344163842, 1);
INSERT INTO `sys_user_role`
VALUES (1762677876015550465, 1);
INSERT INTO `sys_user_role`
VALUES (1762678082262061057, 1);
INSERT INTO `sys_user_role`
VALUES (1762678138012749825, 1);
INSERT INTO `sys_user_role`
VALUES (1762678144652333057, 1);
INSERT INTO `sys_user_role`
VALUES (1762678174192816129, 1);
INSERT INTO `sys_user_role`
VALUES (1762678472563019777, 1);
INSERT INTO `sys_user_role`
VALUES (1762678534596775938, 1);
INSERT INTO `sys_user_role`
VALUES (1762678534894571521, 1);
INSERT INTO `sys_user_role`
VALUES (1762678581635895298, 1);
INSERT INTO `sys_user_role`
VALUES (1762678844920745985, 1);
INSERT INTO `sys_user_role`
VALUES (1762679194973163522, 1);
INSERT INTO `sys_user_role`
VALUES (1762679425299173378, 1);
INSERT INTO `sys_user_role`
VALUES (1762679810776682498, 1);
INSERT INTO `sys_user_role`
VALUES (1762679862656028674, 1);
INSERT INTO `sys_user_role`
VALUES (1762679937360777217, 1);
INSERT INTO `sys_user_role`
VALUES (1762680184698884098, 1);
INSERT INTO `sys_user_role`
VALUES (1762680290076577794, 1);
INSERT INTO `sys_user_role`
VALUES (1762680350055124993, 1);
INSERT INTO `sys_user_role`
VALUES (1762681014038614017, 1);
INSERT INTO `sys_user_role`
VALUES (1762681042207559681, 1);
INSERT INTO `sys_user_role`
VALUES (1762681082732924929, 1);
INSERT INTO `sys_user_role`
VALUES (1762681088869191682, 1);
INSERT INTO `sys_user_role`
VALUES (1762681283195490306, 1);
INSERT INTO `sys_user_role`
VALUES (1762681876752420865, 1);
INSERT INTO `sys_user_role`
VALUES (1762681980129431553, 1);
INSERT INTO `sys_user_role`
VALUES (1762682038488977410, 1);
INSERT INTO `sys_user_role`
VALUES (1762682208211488769, 1);
INSERT INTO `sys_user_role`
VALUES (1762683406603833346, 1);
INSERT INTO `sys_user_role`
VALUES (1762683500048732162, 1);
INSERT INTO `sys_user_role`
VALUES (1762683740843724801, 1);
INSERT INTO `sys_user_role`
VALUES (1762683806404890625, 1);
INSERT INTO `sys_user_role`
VALUES (1762684131715108865, 1);
INSERT INTO `sys_user_role`
VALUES (1762684408442703874, 1);
INSERT INTO `sys_user_role`
VALUES (1762684686994821121, 1);
INSERT INTO `sys_user_role`
VALUES (1762686405808017409, 1);
INSERT INTO `sys_user_role`
VALUES (1762687370061729794, 1);
INSERT INTO `sys_user_role`
VALUES (1762687537527705602, 1);
INSERT INTO `sys_user_role`
VALUES (1762687814947360769, 1);
INSERT INTO `sys_user_role`
VALUES (1762688734347186177, 1);
INSERT INTO `sys_user_role`
VALUES (1762690035701305346, 1);
INSERT INTO `sys_user_role`
VALUES (1762690104575971330, 1);
INSERT INTO `sys_user_role`
VALUES (1762691273243283457, 1);
INSERT INTO `sys_user_role`
VALUES (1762691277462753282, 1);
INSERT INTO `sys_user_role`
VALUES (1762692468406013954, 1);
INSERT INTO `sys_user_role`
VALUES (1762693304498573314, 1);
INSERT INTO `sys_user_role`
VALUES (1762693710704332801, 1);
INSERT INTO `sys_user_role`
VALUES (1762694382220791809, 1);
INSERT INTO `sys_user_role`
VALUES (1762696242545610754, 1);
INSERT INTO `sys_user_role`
VALUES (1762696275626086402, 1);
INSERT INTO `sys_user_role`
VALUES (1762696945854894082, 1);
INSERT INTO `sys_user_role`
VALUES (1762698940057702402, 1);
INSERT INTO `sys_user_role`
VALUES (1762699511732948994, 1);
INSERT INTO `sys_user_role`
VALUES (1762701338956320769, 1);
INSERT INTO `sys_user_role`
VALUES (1762701352860438530, 1);
INSERT INTO `sys_user_role`
VALUES (1762703221934575617, 1);
INSERT INTO `sys_user_role`
VALUES (1762705239214444546, 1);
INSERT INTO `sys_user_role`
VALUES (1762705858788642817, 1);
INSERT INTO `sys_user_role`
VALUES (1762706220585111553, 1);
INSERT INTO `sys_user_role`
VALUES (1762707979655237633, 1);
INSERT INTO `sys_user_role`
VALUES (1762709372369686529, 1);
INSERT INTO `sys_user_role`
VALUES (1762717698755186689, 1);
INSERT INTO `sys_user_role`
VALUES (1762719280540471297, 1);
INSERT INTO `sys_user_role`
VALUES (1762719395619590146, 1);
INSERT INTO `sys_user_role`
VALUES (1762721161459322881, 1);
INSERT INTO `sys_user_role`
VALUES (1762721300685049857, 1);
INSERT INTO `sys_user_role`
VALUES (1762724284441612290, 1);
INSERT INTO `sys_user_role`
VALUES (1762728759105474561, 1);
INSERT INTO `sys_user_role`
VALUES (1762732886506131458, 1);
INSERT INTO `sys_user_role`
VALUES (1762744418904354818, 1);
INSERT INTO `sys_user_role`
VALUES (1762749711537188865, 1);
INSERT INTO `sys_user_role`
VALUES (1762749741056700418, 1);
INSERT INTO `sys_user_role`
VALUES (1762750396991320065, 1);
INSERT INTO `sys_user_role`
VALUES (1762752966828797954, 1);
INSERT INTO `sys_user_role`
VALUES (1762753464445218817, 1);
INSERT INTO `sys_user_role`
VALUES (1762753558548623362, 1);
INSERT INTO `sys_user_role`
VALUES (1762755306625478657, 1);
INSERT INTO `sys_user_role`
VALUES (1762756726481268737, 1);
INSERT INTO `sys_user_role`
VALUES (1762756744172843010, 1);
INSERT INTO `sys_user_role`
VALUES (1762760948073410562, 1);
INSERT INTO `sys_user_role`
VALUES (1762768424588062721, 1);
INSERT INTO `sys_user_role`
VALUES (1762770353779159041, 1);
INSERT INTO `sys_user_role`
VALUES (1762770690174922754, 1);
INSERT INTO `sys_user_role`
VALUES (1762773352299671554, 1);
INSERT INTO `sys_user_role`
VALUES (1762809323107954689, 1);
INSERT INTO `sys_user_role`
VALUES (1762839585439133698, 1);
INSERT INTO `sys_user_role`
VALUES (1762854389474177026, 1);
INSERT INTO `sys_user_role`
VALUES (1762962461110611969, 1);
INSERT INTO `sys_user_role`
VALUES (1763011242199920642, 1);
INSERT INTO `sys_user_role`
VALUES (1763014994155843586, 1);
INSERT INTO `sys_user_role`
VALUES (1763017291741048833, 1);
INSERT INTO `sys_user_role`
VALUES (1763021759299760129, 1);
INSERT INTO `sys_user_role`
VALUES (1763033286434140162, 1);
INSERT INTO `sys_user_role`
VALUES (1763034914528735233, 1);
INSERT INTO `sys_user_role`
VALUES (1763039329885138945, 1);
INSERT INTO `sys_user_role`
VALUES (1763046791925248001, 1);
INSERT INTO `sys_user_role`
VALUES (1763059898533851137, 1);
INSERT INTO `sys_user_role`
VALUES (1763074956366229505, 1);
INSERT INTO `sys_user_role`
VALUES (1763083906738335746, 1);
INSERT INTO `sys_user_role`
VALUES (1763087371808059394, 1);
INSERT INTO `sys_user_role`
VALUES (1763110723763351554, 1);
INSERT INTO `sys_user_role`
VALUES (1763119583433633794, 1);
INSERT INTO `sys_user_role`
VALUES (1763121912195100674, 1);
INSERT INTO `sys_user_role`
VALUES (1763150617374142466, 1);
INSERT INTO `sys_user_role`
VALUES (1763219512067928065, 1);
INSERT INTO `sys_user_role`
VALUES (1763232955600777217, 1);
INSERT INTO `sys_user_role`
VALUES (1763234635201425410, 1);
INSERT INTO `sys_user_role`
VALUES (1763246126281568257, 1);
INSERT INTO `sys_user_role`
VALUES (1763323873230106626, 1);
INSERT INTO `sys_user_role`
VALUES (1763384782623387650, 1);
INSERT INTO `sys_user_role`
VALUES (1763386804647014401, 1);
INSERT INTO `sys_user_role`
VALUES (1763396269777661953, 1);
INSERT INTO `sys_user_role`
VALUES (1763405607485353985, 1);
INSERT INTO `sys_user_role`
VALUES (1763432831823425537, 1);
INSERT INTO `sys_user_role`
VALUES (1763453676952268802, 1);
INSERT INTO `sys_user_role`
VALUES (1763456811204653057, 1);
INSERT INTO `sys_user_role`
VALUES (1763461579713064962, 1);
INSERT INTO `sys_user_role`
VALUES (1763491204732379137, 1);
INSERT INTO `sys_user_role`
VALUES (1763497378051612674, 1);
INSERT INTO `sys_user_role`
VALUES (1763559058706096130, 1);
INSERT INTO `sys_user_role`
VALUES (1763577018824876033, 1);
INSERT INTO `sys_user_role`
VALUES (1763633124087521281, 1);
INSERT INTO `sys_user_role`
VALUES (1763886812869775362, 1);
INSERT INTO `sys_user_role`
VALUES (1763913997563285506, 1);
INSERT INTO `sys_user_role`
VALUES (1764173595432013826, 1);
INSERT INTO `sys_user_role`
VALUES (1764261292183998465, 1);
INSERT INTO `sys_user_role`
VALUES (1764287995094585346, 1);
INSERT INTO `sys_user_role`
VALUES (1764461290695774209, 1);
INSERT INTO `sys_user_role`
VALUES (1764474718197993473, 1);
INSERT INTO `sys_user_role`
VALUES (1764482496870305794, 1);
INSERT INTO `sys_user_role`
VALUES (1764495637402439682, 1);
INSERT INTO `sys_user_role`
VALUES (1764498159743619073, 1);
INSERT INTO `sys_user_role`
VALUES (1764498751559913473, 1);
INSERT INTO `sys_user_role`
VALUES (1764514945641828354, 1);
INSERT INTO `sys_user_role`
VALUES (1764519088087453698, 1);
INSERT INTO `sys_user_role`
VALUES (1764520899728986114, 1);
INSERT INTO `sys_user_role`
VALUES (1764525084016988161, 1);
INSERT INTO `sys_user_role`
VALUES (1764539443405475842, 1);
INSERT INTO `sys_user_role`
VALUES (1764564174649249794, 1);
INSERT INTO `sys_user_role`
VALUES (1764583176607977474, 1);
INSERT INTO `sys_user_role`
VALUES (1764607755468505089, 1);
INSERT INTO `sys_user_role`
VALUES (1764634462757920770, 1);
INSERT INTO `sys_user_role`
VALUES (1764827973771915265, 1);
INSERT INTO `sys_user_role`
VALUES (1764831906313596929, 1);
INSERT INTO `sys_user_role`
VALUES (1764857801929715713, 1);
INSERT INTO `sys_user_role`
VALUES (1764882243925913602, 1);
INSERT INTO `sys_user_role`
VALUES (1764897874259816449, 1);
INSERT INTO `sys_user_role`
VALUES (1764945289142677505, 1);
INSERT INTO `sys_user_role`
VALUES (1764973230396354562, 1);
INSERT INTO `sys_user_role`
VALUES (1765026702110044161, 1);
INSERT INTO `sys_user_role`
VALUES (1765029529888829441, 1);
INSERT INTO `sys_user_role`
VALUES (1765032464647532546, 1);
INSERT INTO `sys_user_role`
VALUES (1765189908342321154, 1);
INSERT INTO `sys_user_role`
VALUES (1765214567611838465, 1);
INSERT INTO `sys_user_role`
VALUES (1765219002413035521, 1);
INSERT INTO `sys_user_role`
VALUES (1765220951434801153, 1);
INSERT INTO `sys_user_role`
VALUES (1765248990147325954, 1);
INSERT INTO `sys_user_role`
VALUES (1765249652247572481, 1);
INSERT INTO `sys_user_role`
VALUES (1765256689840893953, 1);
INSERT INTO `sys_user_role`
VALUES (1765258070287003649, 1);
INSERT INTO `sys_user_role`
VALUES (1765276219292069890, 1);
INSERT INTO `sys_user_role`
VALUES (1765276256986279938, 1);
INSERT INTO `sys_user_role`
VALUES (1765288006737539074, 1);
INSERT INTO `sys_user_role`
VALUES (1765312970979094529, 1);
INSERT INTO `sys_user_role`
VALUES (1765626857976840193, 1);
INSERT INTO `sys_user_role`
VALUES (1765662415604236289, 1);
INSERT INTO `sys_user_role`
VALUES (1765673187432546306, 1);
INSERT INTO `sys_user_role`
VALUES (1765733893087510530, 1);
INSERT INTO `sys_user_role`
VALUES (1765927148689326081, 1);
INSERT INTO `sys_user_role`
VALUES (1765946481549279233, 1);
INSERT INTO `sys_user_role`
VALUES (1765987575418880002, 1);
INSERT INTO `sys_user_role`
VALUES (1765991619675848705, 1);
INSERT INTO `sys_user_role`
VALUES (1765997037533822977, 1);
INSERT INTO `sys_user_role`
VALUES (1766008273063411714, 1);
INSERT INTO `sys_user_role`
VALUES (1766011496348286978, 1);
INSERT INTO `sys_user_role`
VALUES (1766017335771561986, 1);
INSERT INTO `sys_user_role`
VALUES (1766020112446947329, 1);
INSERT INTO `sys_user_role`
VALUES (1766085955713269762, 1);
INSERT INTO `sys_user_role`
VALUES (1766102635604639746, 1);
INSERT INTO `sys_user_role`
VALUES (1766323008493355009, 1);
INSERT INTO `sys_user_role`
VALUES (1766387294112612353, 1);
INSERT INTO `sys_user_role`
VALUES (1766842982618136577, 1);
INSERT INTO `sys_user_role`
VALUES (1767018925722730497, 1);
INSERT INTO `sys_user_role`
VALUES (1767098572703563778, 1);
INSERT INTO `sys_user_role`
VALUES (1767193870939488258, 1);
INSERT INTO `sys_user_role`
VALUES (1767371461667356673, 1);
INSERT INTO `sys_user_role`
VALUES (1767472876167397377, 1);
INSERT INTO `sys_user_role`
VALUES (1767484503956684801, 1);
INSERT INTO `sys_user_role`
VALUES (1767494435045146626, 1);
INSERT INTO `sys_user_role`
VALUES (1767502928200368129, 1);
INSERT INTO `sys_user_role`
VALUES (1767790695329333250, 1);
INSERT INTO `sys_user_role`
VALUES (1767797421759823874, 1);
INSERT INTO `sys_user_role`
VALUES (1767867514107756545, 1);
INSERT INTO `sys_user_role`
VALUES (1768123513418842114, 1);
INSERT INTO `sys_user_role`
VALUES (1768125846164897794, 1);
INSERT INTO `sys_user_role`
VALUES (1768137512021688322, 1);
INSERT INTO `sys_user_role`
VALUES (1768172797870768129, 1);
INSERT INTO `sys_user_role`
VALUES (1768257272084463617, 1);
INSERT INTO `sys_user_role`
VALUES (1768452168263172097, 1);
INSERT INTO `sys_user_role`
VALUES (1768487959811096578, 1);
INSERT INTO `sys_user_role`
VALUES (1768522172358754306, 1);
INSERT INTO `sys_user_role`
VALUES (1768523379651411969, 1);
INSERT INTO `sys_user_role`
VALUES (1768528826072596482, 1);
INSERT INTO `sys_user_role`
VALUES (1768554562896560130, 1);
INSERT INTO `sys_user_role`
VALUES (1768560191165988866, 1);
INSERT INTO `sys_user_role`
VALUES (1768560307197214722, 1);
INSERT INTO `sys_user_role`
VALUES (1768561334289989633, 1);
INSERT INTO `sys_user_role`
VALUES (1768565063735083009, 1);
INSERT INTO `sys_user_role`
VALUES (1768570261782167553, 1);
INSERT INTO `sys_user_role`
VALUES (1768598711431626753, 1);
INSERT INTO `sys_user_role`
VALUES (1768635967806668802, 1);
INSERT INTO `sys_user_role`
VALUES (1768887604487946241, 1);
INSERT INTO `sys_user_role`
VALUES (1768911351987077122, 1);
INSERT INTO `sys_user_role`
VALUES (1769186172289449986, 1);
INSERT INTO `sys_user_role`
VALUES (1769408371134857218, 1);
INSERT INTO `sys_user_role`
VALUES (1769520576635371521, 1);
INSERT INTO `sys_user_role`
VALUES (1769561862704758786, 1);
INSERT INTO `sys_user_role`
VALUES (1769569234722521089, 1);
INSERT INTO `sys_user_role`
VALUES (1769607528399273986, 1);
INSERT INTO `sys_user_role`
VALUES (1769617177890553857, 1);
INSERT INTO `sys_user_role`
VALUES (1769663440459694082, 1);
INSERT INTO `sys_user_role`
VALUES (1769908456541233154, 1);
INSERT INTO `sys_user_role`
VALUES (1769957357877043201, 1);
INSERT INTO `sys_user_role`
VALUES (1770021611783168002, 1);
INSERT INTO `sys_user_role`
VALUES (1770063295095087106, 1);
INSERT INTO `sys_user_role`
VALUES (1770063700436819970, 1);
INSERT INTO `sys_user_role`
VALUES (1770281104395837442, 1);
INSERT INTO `sys_user_role`
VALUES (1770288338521661441, 1);
INSERT INTO `sys_user_role`
VALUES (1770322814056333313, 1);
INSERT INTO `sys_user_role`
VALUES (1770338641849679874, 1);
INSERT INTO `sys_user_role`
VALUES (1770351581952802817, 1);
INSERT INTO `sys_user_role`
VALUES (1770357305466486786, 1);
INSERT INTO `sys_user_role`
VALUES (1770364755406028802, 1);
INSERT INTO `sys_user_role`
VALUES (1770381062524436482, 1);
INSERT INTO `sys_user_role`
VALUES (1770470677998534657, 1);
INSERT INTO `sys_user_role`
VALUES (1770642413331218434, 1);
INSERT INTO `sys_user_role`
VALUES (1770648858382630914, 1);
INSERT INTO `sys_user_role`
VALUES (1770715116272680962, 1);
INSERT INTO `sys_user_role`
VALUES (1770720646688997377, 1);
INSERT INTO `sys_user_role`
VALUES (1770726609303175170, 1);
INSERT INTO `sys_user_role`
VALUES (1770757521378181121, 1);
INSERT INTO `sys_user_role`
VALUES (1770759021907214338, 1);
INSERT INTO `sys_user_role`
VALUES (1771002145573240833, 1);
INSERT INTO `sys_user_role`
VALUES (1771019340902629377, 1);
INSERT INTO `sys_user_role`
VALUES (1771085212270788610, 1);
INSERT INTO `sys_user_role`
VALUES (1771091102206066689, 1);
INSERT INTO `sys_user_role`
VALUES (1771105696307806210, 1);
INSERT INTO `sys_user_role`
VALUES (1771529088861274114, 1);
INSERT INTO `sys_user_role`
VALUES (1772148936234565634, 1);
INSERT INTO `sys_user_role`
VALUES (1772170742823714818, 1);
INSERT INTO `sys_user_role`
VALUES (1772173596070313986, 1);
INSERT INTO `sys_user_role`
VALUES (1772181791232819201, 1);
INSERT INTO `sys_user_role`
VALUES (1772807697592832001, 1);
INSERT INTO `sys_user_role`
VALUES (1772821509767254018, 1);
INSERT INTO `sys_user_role`
VALUES (1772947270113251330, 1);
INSERT INTO `sys_user_role`
VALUES (1773149840576434178, 1);
INSERT INTO `sys_user_role`
VALUES (1773180693536919554, 1);
INSERT INTO `sys_user_role`
VALUES (1773192472325345282, 1);
INSERT INTO `sys_user_role`
VALUES (1773200350612377601, 1);
INSERT INTO `sys_user_role`
VALUES (1773307685607395329, 1);
INSERT INTO `sys_user_role`
VALUES (1773529379840282625, 1);
INSERT INTO `sys_user_role`
VALUES (1773543535003914241, 1);
INSERT INTO `sys_user_role`
VALUES (1773615949826052097, 1);
INSERT INTO `sys_user_role`
VALUES (1773714968015278082, 1);
INSERT INTO `sys_user_role`
VALUES (1773741523022123010, 1);
INSERT INTO `sys_user_role`
VALUES (1773774290929848321, 1);
INSERT INTO `sys_user_role`
VALUES (1773969452180258818, 1);
INSERT INTO `sys_user_role`
VALUES (1774094144111198210, 1);
INSERT INTO `sys_user_role`
VALUES (1774326191970926594, 1);
INSERT INTO `sys_user_role`
VALUES (1774595110106685441, 1);
INSERT INTO `sys_user_role`
VALUES (1774603290157113346, 1);
INSERT INTO `sys_user_role`
VALUES (1774671916088287233, 1);
INSERT INTO `sys_user_role`
VALUES (1774712059876728833, 1);
INSERT INTO `sys_user_role`
VALUES (1775005868787359746, 1);
INSERT INTO `sys_user_role`
VALUES (1775039514470637569, 1);
INSERT INTO `sys_user_role`
VALUES (1775046202846208002, 1);
INSERT INTO `sys_user_role`
VALUES (1775055115012399106, 1);
INSERT INTO `sys_user_role`
VALUES (1775058985780371458, 1);
INSERT INTO `sys_user_role`
VALUES (1775066829695082497, 1);
INSERT INTO `sys_user_role`
VALUES (1775078808497283074, 1);
INSERT INTO `sys_user_role`
VALUES (1775109977754427393, 1);
INSERT INTO `sys_user_role`
VALUES (1775109977771204609, 1);
INSERT INTO `sys_user_role`
VALUES (1775192704981786626, 1);
INSERT INTO `sys_user_role`
VALUES (1775421589681987586, 1);
INSERT INTO `sys_user_role`
VALUES (1776124571507613697, 1);
INSERT INTO `sys_user_role`
VALUES (1776550027549597698, 1);
INSERT INTO `sys_user_role`
VALUES (1776815081159254018, 1);
INSERT INTO `sys_user_role`
VALUES (1776827459129171969, 1);
INSERT INTO `sys_user_role`
VALUES (1776861348769947650, 1);
INSERT INTO `sys_user_role`
VALUES (1776864185373548546, 1);
INSERT INTO `sys_user_role`
VALUES (1776871215274516482, 1);
INSERT INTO `sys_user_role`
VALUES (1776872376396275714, 1);
INSERT INTO `sys_user_role`
VALUES (1776889562355589122, 1);
INSERT INTO `sys_user_role`
VALUES (1777118704363757570, 1);
INSERT INTO `sys_user_role`
VALUES (1777126438664527874, 1);
INSERT INTO `sys_user_role`
VALUES (1777157190659727362, 1);
INSERT INTO `sys_user_role`
VALUES (1777217669537062914, 1);
INSERT INTO `sys_user_role`
VALUES (1777220647320936449, 1);
INSERT INTO `sys_user_role`
VALUES (1777252116550508545, 1);
INSERT INTO `sys_user_role`
VALUES (1777260896986193921, 1);
INSERT INTO `sys_user_role`
VALUES (1777296499484254210, 1);
INSERT INTO `sys_user_role`
VALUES (1777301747972038657, 1);
INSERT INTO `sys_user_role`
VALUES (1777363539016409089, 1);
INSERT INTO `sys_user_role`
VALUES (1777483372982820866, 1);
INSERT INTO `sys_user_role`
VALUES (1777537906459402242, 1);
INSERT INTO `sys_user_role`
VALUES (1777610641428570114, 1);
INSERT INTO `sys_user_role`
VALUES (1777613556604067842, 1);
INSERT INTO `sys_user_role`
VALUES (1777718773123244034, 1);
INSERT INTO `sys_user_role`
VALUES (1777743939492503554, 1);
INSERT INTO `sys_user_role`
VALUES (1777887539056467969, 1);
INSERT INTO `sys_user_role`
VALUES (1777887799262699521, 1);
INSERT INTO `sys_user_role`
VALUES (1777890253115088897, 1);
INSERT INTO `sys_user_role`
VALUES (1777909423068274689, 1);
INSERT INTO `sys_user_role`
VALUES (1777930481544585218, 1);
INSERT INTO `sys_user_role`
VALUES (1777954050559303681, 1);
INSERT INTO `sys_user_role`
VALUES (1778078614597525506, 1);
INSERT INTO `sys_user_role`
VALUES (1778307871026307073, 1);
INSERT INTO `sys_user_role`
VALUES (1778341191034462209, 1);
INSERT INTO `sys_user_role`
VALUES (1778352526686281729, 1);
INSERT INTO `sys_user_role`
VALUES (1778591039688138754, 1);
INSERT INTO `sys_user_role`
VALUES (1778625241280274433, 1);
INSERT INTO `sys_user_role`
VALUES (1778645603636338689, 1);
INSERT INTO `sys_user_role`
VALUES (1779329016437530626, 1);
INSERT INTO `sys_user_role`
VALUES (1779509451201306625, 1);
INSERT INTO `sys_user_role`
VALUES (1781359789389049858, 1);
INSERT INTO `sys_user_role`
VALUES (1781463900025450497, 1);
INSERT INTO `sys_user_role`
VALUES (1781519961809940482, 1);
INSERT INTO `sys_user_role`
VALUES (1781570458679963650, 1);
INSERT INTO `sys_user_role`
VALUES (1781679536911609858, 1);
INSERT INTO `sys_user_role`
VALUES (1781680345497923586, 1);
INSERT INTO `sys_user_role`
VALUES (1781938051479711745, 1);
INSERT INTO `sys_user_role`
VALUES (1781979644345659393, 1);
INSERT INTO `sys_user_role`
VALUES (1781982608724537345, 1);
INSERT INTO `sys_user_role`
VALUES (1782339521316294658, 1);
INSERT INTO `sys_user_role`
VALUES (1782584811885596674, 1);
INSERT INTO `sys_user_role`
VALUES (1782597966938411009, 1);
INSERT INTO `sys_user_role`
VALUES (1782598345608564738, 1);
INSERT INTO `sys_user_role`
VALUES (1782599696132509698, 1);
INSERT INTO `sys_user_role`
VALUES (1782655923667505153, 1);
INSERT INTO `sys_user_role`
VALUES (1782658558470557698, 1);
INSERT INTO `sys_user_role`
VALUES (1782697212870037505, 1);
INSERT INTO `sys_user_role`
VALUES (1782711689380270082, 1);
INSERT INTO `sys_user_role`
VALUES (1782733890905083906, 1);
INSERT INTO `sys_user_role`
VALUES (1782734018948796418, 1);
INSERT INTO `sys_user_role`
VALUES (1782741134992379906, 1);
INSERT INTO `sys_user_role`
VALUES (1782926062560382978, 1);
INSERT INTO `sys_user_role`
VALUES (1782941277477834753, 1);
INSERT INTO `sys_user_role`
VALUES (1782982532157050881, 1);
INSERT INTO `sys_user_role`
VALUES (1783068876598317057, 1);
INSERT INTO `sys_user_role`
VALUES (1783086777506107393, 1);
INSERT INTO `sys_user_role`
VALUES (1783144268357079041, 1);
INSERT INTO `sys_user_role`
VALUES (1783297415947915265, 1);
INSERT INTO `sys_user_role`
VALUES (1783310569679523841, 1);
INSERT INTO `sys_user_role`
VALUES (1783326930816372738, 1);
INSERT INTO `sys_user_role`
VALUES (1783358421143293953, 1);
INSERT INTO `sys_user_role`
VALUES (1783421941125910530, 1);
INSERT INTO `sys_user_role`
VALUES (1783439451980206081, 1);
INSERT INTO `sys_user_role`
VALUES (1783471940098494466, 1);
INSERT INTO `sys_user_role`
VALUES (1783777388311777281, 1);
INSERT INTO `sys_user_role`
VALUES (1783796572785643521, 1);
INSERT INTO `sys_user_role`
VALUES (1783877442208960514, 1);
INSERT INTO `sys_user_role`
VALUES (1784199358216048642, 1);
INSERT INTO `sys_user_role`
VALUES (1784389326918029313, 1);
INSERT INTO `sys_user_role`
VALUES (1784400528377286657, 1);
INSERT INTO `sys_user_role`
VALUES (1784435756558880770, 1);
INSERT INTO `sys_user_role`
VALUES (1784457537797656577, 1);
INSERT INTO `sys_user_role`
VALUES (1784521057603538945, 1);
INSERT INTO `sys_user_role`
VALUES (1784522252246724609, 1);
INSERT INTO `sys_user_role`
VALUES (1784548227567202306, 1);
INSERT INTO `sys_user_role`
VALUES (1784569508068995073, 1);
INSERT INTO `sys_user_role`
VALUES (1784777389905162242, 1);
INSERT INTO `sys_user_role`
VALUES (1784783910114308097, 1);
INSERT INTO `sys_user_role`
VALUES (1784821184902344705, 1);
INSERT INTO `sys_user_role`
VALUES (1784838825360633858, 1);
INSERT INTO `sys_user_role`
VALUES (1784870260805087233, 1);
INSERT INTO `sys_user_role`
VALUES (1784910451020279810, 1);
INSERT INTO `sys_user_role`
VALUES (1785130539233193985, 1);
INSERT INTO `sys_user_role`
VALUES (1785240710601125890, 1);
INSERT INTO `sys_user_role`
VALUES (1785360485289439233, 1);
INSERT INTO `sys_user_role`
VALUES (1785588726424023041, 1);
INSERT INTO `sys_user_role`
VALUES (1785975035152019458, 1);
INSERT INTO `sys_user_role`
VALUES (1786448824117735425, 1);
INSERT INTO `sys_user_role`
VALUES (1787036511853850625, 1);
INSERT INTO `sys_user_role`
VALUES (1787040098730356738, 1);
INSERT INTO `sys_user_role`
VALUES (1787442869522636802, 1);
INSERT INTO `sys_user_role`
VALUES (1787802087576530946, 1);
INSERT INTO `sys_user_role`
VALUES (1787878100067119105, 1);
INSERT INTO `sys_user_role`
VALUES (1788016335816716290, 1);
INSERT INTO `sys_user_role`
VALUES (1788135951385718786, 1);
INSERT INTO `sys_user_role`
VALUES (1788136924611047425, 1);
INSERT INTO `sys_user_role`
VALUES (1788564791958401026, 1);
INSERT INTO `sys_user_role`
VALUES (1788861563763126273, 1);
INSERT INTO `sys_user_role`
VALUES (1789104577664217090, 1);
INSERT INTO `sys_user_role`
VALUES (1789215891946434561, 1);
INSERT INTO `sys_user_role`
VALUES (1789891068120231937, 1);
INSERT INTO `sys_user_role`
VALUES (1789916787885961218, 1);
INSERT INTO `sys_user_role`
VALUES (1790285085844664322, 1);
INSERT INTO `sys_user_role`
VALUES (1790395963663413250, 1);
INSERT INTO `sys_user_role`
VALUES (1790626495441698817, 1);
INSERT INTO `sys_user_role`
VALUES (1790733204311015425, 1);
INSERT INTO `sys_user_role`
VALUES (1790747738857832449, 1);
INSERT INTO `sys_user_role`
VALUES (1790893072141549570, 1);
INSERT INTO `sys_user_role`
VALUES (1790953693902045186, 1);
INSERT INTO `sys_user_role`
VALUES (1790986267617689601, 1);
INSERT INTO `sys_user_role`
VALUES (1791058271444172801, 1);
INSERT INTO `sys_user_role`
VALUES (1791123542645178370, 1);
INSERT INTO `sys_user_role`
VALUES (1791170948304764929, 1);
INSERT INTO `sys_user_role`
VALUES (1791173160204533762, 1);
INSERT INTO `sys_user_role`
VALUES (1791181681805524994, 1);
INSERT INTO `sys_user_role`
VALUES (1791184448041287681, 1);
INSERT INTO `sys_user_role`
VALUES (1791281872491544578, 1);
INSERT INTO `sys_user_role`
VALUES (1791281970680201217, 1);
INSERT INTO `sys_user_role`
VALUES (1791283037744693249, 1);
INSERT INTO `sys_user_role`
VALUES (1791285337913589762, 1);
INSERT INTO `sys_user_role`
VALUES (1791289816255856641, 1);
INSERT INTO `sys_user_role`
VALUES (1791296357612683266, 1);
INSERT INTO `sys_user_role`
VALUES (1791299213191315457, 1);
INSERT INTO `sys_user_role`
VALUES (1791308308178829314, 1);
INSERT INTO `sys_user_role`
VALUES (1791318977032781826, 1);
INSERT INTO `sys_user_role`
VALUES (1791371260403687425, 1);
INSERT INTO `sys_user_role`
VALUES (1791387421707116546, 1);
INSERT INTO `sys_user_role`
VALUES (1791447204858470402, 1);
INSERT INTO `sys_user_role`
VALUES (1791729117863124993, 1);
INSERT INTO `sys_user_role`
VALUES (1793165965818912770, 1);
INSERT INTO `sys_user_role`
VALUES (1793568337082740737, 1);
INSERT INTO `sys_user_role`
VALUES (1794560044937154561, 1);
INSERT INTO `sys_user_role`
VALUES (1794749939555143681, 1);
INSERT INTO `sys_user_role`
VALUES (1795107096276410369, 1);
INSERT INTO `sys_user_role`
VALUES (1795403915137032194, 1);
INSERT INTO `sys_user_role`
VALUES (1795789913440296962, 1);
INSERT INTO `sys_user_role`
VALUES (1796141206390349825, 1);
INSERT INTO `sys_user_role`
VALUES (1796355287995031553, 1);
INSERT INTO `sys_user_role`
VALUES (1796407753490997250, 1);
INSERT INTO `sys_user_role`
VALUES (1796463188688412674, 1);
INSERT INTO `sys_user_role`
VALUES (1796906411999272961, 1);
INSERT INTO `sys_user_role`
VALUES (1797537246867791874, 1);
INSERT INTO `sys_user_role`
VALUES (1797817711835127809, 1);
INSERT INTO `sys_user_role`
VALUES (1797909973524979713, 1);
INSERT INTO `sys_user_role`
VALUES (1798175479586791425, 1);
INSERT INTO `sys_user_role`
VALUES (1798235243616313345, 1);
INSERT INTO `sys_user_role`
VALUES (1798520237534388226, 1);
INSERT INTO `sys_user_role`
VALUES (1798712494199840770, 1);
INSERT INTO `sys_user_role`
VALUES (1799280384053518338, 1);
INSERT INTO `sys_user_role`
VALUES (1799744018567307266, 1);
INSERT INTO `sys_user_role`
VALUES (1800533174780338178, 1);
INSERT INTO `sys_user_role`
VALUES (1800536812638609409, 1);
INSERT INTO `sys_user_role`
VALUES (1800674959565430786, 1);
INSERT INTO `sys_user_role`
VALUES (1801079442480996354, 1);
INSERT INTO `sys_user_role`
VALUES (1801092008536088577, 1);
INSERT INTO `sys_user_role`
VALUES (1801164484339212289, 1);
INSERT INTO `sys_user_role`
VALUES (1801390702451924994, 1);
INSERT INTO `sys_user_role`
VALUES (1801448239394103297, 1);
INSERT INTO `sys_user_role`
VALUES (1801450423980564482, 1);
INSERT INTO `sys_user_role`
VALUES (1801600035647299585, 1);
INSERT INTO `sys_user_role`
VALUES (1801917626890756098, 1);
INSERT INTO `sys_user_role`
VALUES (1802151483346952194, 1);
INSERT INTO `sys_user_role`
VALUES (1802185387541962754, 1);
INSERT INTO `sys_user_role`
VALUES (1802352201437716481, 1);
INSERT INTO `sys_user_role`
VALUES (1802595299652706305, 1);
INSERT INTO `sys_user_role`
VALUES (1802615605641519105, 1);
INSERT INTO `sys_user_role`
VALUES (1802884960002416641, 1);
INSERT INTO `sys_user_role`
VALUES (1803244799710896130, 1);
INSERT INTO `sys_user_role`
VALUES (1803310345022251010, 1);
INSERT INTO `sys_user_role`
VALUES (1803350775793360898, 1);
INSERT INTO `sys_user_role`
VALUES (1803952381528145922, 1);
INSERT INTO `sys_user_role`
VALUES (1804409446046400513, 1);
INSERT INTO `sys_user_role`
VALUES (1804412156426616834, 1);
INSERT INTO `sys_user_role`
VALUES (1805074712967282689, 1);
INSERT INTO `sys_user_role`
VALUES (1806151742303535105, 1);
INSERT INTO `sys_user_role`
VALUES (1806589360086482945, 1);
INSERT INTO `sys_user_role`
VALUES (1806743654970458113, 1);
INSERT INTO `sys_user_role`
VALUES (1807019618258419713, 1);
INSERT INTO `sys_user_role`
VALUES (1807670449198628866, 1);
INSERT INTO `sys_user_role`
VALUES (1808432476074573826, 1);
INSERT INTO `sys_user_role`
VALUES (1809093167261450242, 1);
INSERT INTO `sys_user_role`
VALUES (1809123002226606082, 1);
INSERT INTO `sys_user_role`
VALUES (1811926844047654913, 1);
INSERT INTO `sys_user_role`
VALUES (1813103212164841473, 1);
INSERT INTO `sys_user_role`
VALUES (1815634871045087233, 1);
INSERT INTO `sys_user_role`
VALUES (1816485229208297473, 1);
INSERT INTO `sys_user_role`
VALUES (1821084376519434241, 1);
INSERT INTO `sys_user_role`
VALUES (1821169552259833858, 1);
INSERT INTO `sys_user_role`
VALUES (1821804728467873793, 1);
INSERT INTO `sys_user_role`
VALUES (1822834793930637314, 1);
INSERT INTO `sys_user_role`
VALUES (1822959243497914370, 1);
INSERT INTO `sys_user_role`
VALUES (1826249520908156930, 1);
INSERT INTO `sys_user_role`
VALUES (1829035060720123905, 1);
INSERT INTO `sys_user_role`
VALUES (1831211798115991553, 1);
INSERT INTO `sys_user_role`
VALUES (1831273555001950210, 1);
INSERT INTO `sys_user_role`
VALUES (1834083211252416513, 1);
INSERT INTO `sys_user_role`
VALUES (1838475187125043201, 1);
INSERT INTO `sys_user_role`
VALUES (1846455089220632577, 1);
INSERT INTO `sys_user_role`
VALUES (1847910185208987649, 1);
INSERT INTO `sys_user_role`
VALUES (1871910972567822337, 1);
INSERT INTO `sys_user_role`
VALUES (1897620177094057985, 1);
INSERT INTO `sys_user_role`
VALUES (1925795787894333441, 1729685491108446210);

-- ----------------------------
-- Table structure for t_workflow
-- ----------------------------
DROP TABLE IF EXISTS `t_workflow`;
CREATE TABLE `t_workflow`
(
    `id`          bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
    `uuid`        varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NOT NULL DEFAULT 'uuid',
    `title`       varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '标题',
    `user_id`     bigint(20) NOT NULL DEFAULT 0 COMMENT '用户ID',
    `is_public`   tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否公开',
    `is_enable`   tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否启用',
    `create_time` datetime                                                      NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_time` datetime                                                      NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `remark`      text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '备注',
    `is_deleted`  tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除 默认0不删除',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 120 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工作流定义（用户定义的工作流）| Workflow Definition' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of t_workflow
-- ----------------------------
INSERT INTO `t_workflow`
VALUES (119, '7c95c7892dd544788d90e49ce2fad966', '测试工作流', 1, 1, 1, '2025-11-07 16:44:41', '2025-11-07 16:44:41',
        '测试工作流', 0);

-- ----------------------------
-- Table structure for t_workflow_component
-- ----------------------------
DROP TABLE IF EXISTS `t_workflow_component`;
CREATE TABLE `t_workflow_component`
(
    `id`            bigint(20) NOT NULL AUTO_INCREMENT,
    `uuid`          varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NOT NULL DEFAULT '',
    `name`          varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NOT NULL DEFAULT '',
    `title`         varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
    `remark`        text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
    `display_order` int(11) NOT NULL DEFAULT 0,
    `is_enable`     tinyint(1) NOT NULL DEFAULT 0,
    `create_time`   datetime                                                      NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `update_time`   datetime                                                      NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `is_deleted`    tinyint(1) NOT NULL DEFAULT 0,
    PRIMARY KEY (`id`) USING BTREE,
    INDEX           `idx_display_order`(`display_order`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工作流组件库 | Workflow Component' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of t_workflow_component
-- ----------------------------
INSERT INTO `t_workflow_component`
VALUES (17, '5cd68dccbbb411f0bb7840c2ba9a7fbc', 'Start', '开始', '流程由此开始', 0, 1, '2025-11-07 16:32:49',
        '2025-11-07 16:32:49', 0);
INSERT INTO `t_workflow_component`
VALUES (18, '5cd6ac69bbb411f0bb7840c2ba9a7fbc', 'End', '结束', '流程由此结束', 0, 1, '2025-11-07 16:32:49',
        '2025-11-07 16:32:49', 0);
INSERT INTO `t_workflow_component`
VALUES (19, '5cd6c8eabbb411f0bb7840c2ba9a7fbc', 'Answer', '生成回答', '调用大语言模型回答问题', 0, 1,
        '2025-11-07 16:32:49', '2025-11-07 16:32:49', 0);

-- ----------------------------
-- Table structure for t_workflow_edge
-- ----------------------------
DROP TABLE IF EXISTS `t_workflow_edge`;
CREATE TABLE `t_workflow_edge`
(
    `id`               bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `uuid`             varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '边唯一标识',
    `workflow_id`      bigint(20) NOT NULL DEFAULT 0 COMMENT '所属工作流定义 id',
    `source_node_uuid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '起始节点 uuid',
    `source_handle`    varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '起始锚点标识',
    `target_node_uuid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '目标节点 uuid',
    `create_time`      datetime                                                     NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_time`      datetime                                                     NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `is_deleted`       tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除：0 正常，1 已删',
    PRIMARY KEY (`id`) USING BTREE,
    INDEX              `idx_workflow_edge_workflow_id`(`workflow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 199 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工作流定义的边 | Edge of Workflow Definition' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of t_workflow_edge
-- ----------------------------

-- ----------------------------
-- Table structure for t_workflow_node
-- ----------------------------
DROP TABLE IF EXISTS `t_workflow_node`;
CREATE TABLE `t_workflow_node`
(
    `id`                    bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `uuid`                  varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NOT NULL DEFAULT '' COMMENT '节点唯一标识',
    `workflow_id`           bigint(20) NOT NULL DEFAULT 0 COMMENT '所属工作流定义 id',
    `workflow_component_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '引用的组件 id',
    `user_id`               bigint(20) NOT NULL DEFAULT 0 COMMENT '创建人',
    `title`                 varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '节点标题',
    `remark`                varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '节点备注',
    `input_config`          json                                                          NOT NULL COMMENT '输入参数模板，例：{\"params\":[{\"name\":\"user_define_param01\",\"type\":\"string\"}]}',
    `node_config`           json NULL COMMENT '节点执行配置，例：{\"params\":[{\"prompt\":\"Summarize the following content:{user_define_param01}\"}]}',
    `position_x`            double                                                        NOT NULL DEFAULT 0 COMMENT '画布 x 坐标',
    `position_y`            double                                                        NOT NULL DEFAULT 0 COMMENT '画布 y 坐标',
    `create_time`           datetime                                                      NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_time`           datetime                                                      NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `is_deleted`            tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除：0 正常，1 已删',
    PRIMARY KEY (`id`) USING BTREE,
    INDEX                   `idx_workflow_node_workflow_id`(`workflow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 270 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工作流定义的节点 | Node of Workflow Definition' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of t_workflow_node
-- ----------------------------
INSERT INTO `t_workflow_node`
VALUES (269, 'f4660cebe26b439f8264ad0111b56c85', 119, 17, 0, '开始', '用户输入', '{
  \"ref_inputs\": [], \"user_inputs\": [{\"name\": \"var_user_input\", \"type\": 1, \"uuid\": \"dc9590d781764ace943bf03b383e742b\", \"title\": \"用户输入\", \"required\": false, \"max_length\": 1000}]}',
        '{}', 0, 0, '2025-11-07 16:44:41', '2025-11-07 16:44:41', 0);

-- ----------------------------
-- Table structure for t_workflow_runtime
-- ----------------------------
DROP TABLE IF EXISTS `t_workflow_runtime`;
CREATE TABLE `t_workflow_runtime`
(
    `id`            bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `uuid`          varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NOT NULL DEFAULT '' COMMENT '运行实例唯一标识',
    `user_id`       bigint(20) NOT NULL DEFAULT 0 COMMENT '启动人',
    `workflow_id`   bigint(20) NOT NULL DEFAULT 0 COMMENT '对应工作流定义 id',
    `input`         json NULL COMMENT '运行输入，例：{\"userInput01\":\"text01\",\"userInput02\":true,\"userInput03\":10,\"userInput04\":[\"selectedA\",\"selectedB\"],\"userInput05\":[\"https://a.com/a.xlsx\",\"https://a.com/b.png\"]}',
    `output`        json NULL COMMENT '运行输出，成功或失败的结果',
    `status`        smallint(6) NOT NULL DEFAULT 1 COMMENT '执行状态：1 就绪，2 执行中，3 成功，4 失败',
    `status_remark` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '状态补充说明，如失败原因',
    `create_time`   datetime                                                      NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_time`   datetime                                                      NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `is_deleted`    tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除：0 正常，1 已删',
    PRIMARY KEY (`id`) USING BTREE,
    INDEX           `idx_workflow_runtime_workflow_id`(`workflow_id`) USING BTREE,
    INDEX           `idx_workflow_runtime_user_id`(`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 297 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工作流实例（运行时）| Workflow Runtime' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of t_workflow_runtime
-- ----------------------------

-- ----------------------------
-- Table structure for t_workflow_runtime_node
-- ----------------------------
DROP TABLE IF EXISTS `t_workflow_runtime_node`;
CREATE TABLE `t_workflow_runtime_node`
(
    `id`                  bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
    `uuid`                varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci  NOT NULL DEFAULT '' COMMENT '节点运行实例唯一标识',
    `user_id`             bigint(20) NOT NULL DEFAULT 0 COMMENT '创建人',
    `workflow_runtime_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '所属运行实例 id',
    `node_id`             bigint(20) NOT NULL DEFAULT 0 COMMENT '对应工作流定义里的节点 id',
    `input`               json NULL COMMENT '节点本次输入数据',
    `output`              json NULL COMMENT '节点本次输出数据',
    `status`              smallint(6) NOT NULL DEFAULT 1 COMMENT '节点执行状态：1 进行中，2 失败，3 成功',
    `status_remark`       varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '状态补充说明，如失败堆栈',
    `create_time`         datetime                                                      NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_time`         datetime                                                      NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
    `is_deleted`          tinyint(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除：0 正常，1 已删',
    PRIMARY KEY (`id`) USING BTREE,
    INDEX                 `idx_runtime_node_runtime_id`(`workflow_runtime_id`) USING BTREE,
    INDEX                 `idx_runtime_node_node_id`(`node_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 805 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工作流实例（运行时）- 节点 | Workflow Runtime Node' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of t_workflow_runtime_node
-- ----------------------------

SET
FOREIGN_KEY_CHECKS = 1;
