/*
 Navicat Premium Dump SQL

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 80042 (8.0.42)
 Source Host           : localhost:3306
 Source Schema         : agent_skills

 Target Server Type    : MySQL
 Target Server Version : 80042 (8.0.42)
 File Encoding         : 65001

 Date: 10/04/2026 17:41:26
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for cms_category
-- ----------------------------
DROP TABLE IF EXISTS `cms_category`;
CREATE TABLE `cms_category`  (
  `category_id` bigint NOT NULL COMMENT '主键ID',
  `category_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '分类名称',
  `category_name_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '英文分类名称',
  `parent_id` bigint NULL DEFAULT 0 COMMENT '父分类ID',
  `level` int NULL DEFAULT 1 COMMENT '分类层级',
  `sort` int NULL DEFAULT 0 COMMENT '排序',
  `status` tinyint(1) NULL DEFAULT 1 COMMENT '状态（1启用，2禁用）',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
  `delete_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除 ：0 未删除，1已删除',
  PRIMARY KEY (`category_id`) USING BTREE,
  INDEX `idx_parent_id`(`parent_id` ASC) USING BTREE,
  INDEX `idx_status`(`status` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '分类表，记录内容的分类信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of cms_category
-- ----------------------------
INSERT INTO `cms_category` VALUES (1, '编程', 'Programming', 0, 1, 1, 1, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category` VALUES (2, '日常办公', 'Daily Office', 0, 1, 2, 1, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category` VALUES (3, '自媒体与电商', 'Self-media and E-commerce', 0, 1, 3, 1, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category` VALUES (4, '科研', 'Scientific Research', 0, 1, 4, 1, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category` VALUES (5, '商业', 'Commerce', 0, 1, 5, 1, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category` VALUES (6, '学科', 'Subject', 0, 1, 6, 1, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);

-- ----------------------------
-- Table structure for cms_category_tag
-- ----------------------------
DROP TABLE IF EXISTS `cms_category_tag`;
CREATE TABLE `cms_category_tag`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `category_id` bigint NOT NULL COMMENT '分类ID',
  `tag_id` bigint NOT NULL COMMENT '标签ID',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'system' COMMENT '创建人',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'system' COMMENT '更新人',
  `delete_flag` int NOT NULL DEFAULT 0 COMMENT '是否删除：0未删除，1已删除',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `uk_category_tag`(`category_id` ASC, `tag_id` ASC, `delete_flag` ASC) USING BTREE,
  INDEX `idx_category_id`(`category_id` ASC) USING BTREE,
  INDEX `idx_tag_id`(`tag_id` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 34 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '分类标签关联表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of cms_category_tag
-- ----------------------------
INSERT INTO `cms_category_tag` VALUES (1, 1, 1001, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (2, 1, 1002, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (3, 1, 1003, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (4, 1, 1004, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (5, 1, 1005, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (6, 2, 2001, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (7, 2, 2002, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (8, 2, 2003, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (9, 2, 2004, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (10, 2, 2005, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (11, 3, 3001, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (12, 3, 3002, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (13, 3, 3003, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (14, 3, 3004, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (15, 4, 4001, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (16, 4, 4002, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (17, 4, 4003, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (18, 4, 4004, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (19, 4, 4005, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (20, 4, 4006, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (21, 5, 5001, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (22, 5, 5002, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (23, 5, 5003, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (24, 5, 5004, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (25, 6, 6001, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (26, 6, 6002, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (27, 6, 6003, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (28, 6, 6004, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (29, 6, 6005, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (30, 6, 6006, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (31, 6, 6007, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (32, 6, 6008, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);
INSERT INTO `cms_category_tag` VALUES (33, 6, 6009, '2026-04-09 11:49:02', '2026-04-09 11:49:02', 'system', 'system', 0);

-- ----------------------------
-- Table structure for cms_tag
-- ----------------------------
DROP TABLE IF EXISTS `cms_tag`;
CREATE TABLE `cms_tag`  (
  `tag_id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `tag_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '标签名称',
  `tag_name_en` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '英文标签名称',
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签描述',
  `use_count` int NULL DEFAULT 0 COMMENT '使用次数',
  `status` tinyint(1) NULL DEFAULT 1 COMMENT '状态（1启用，2禁用）',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
  `delete_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除 ：0 未删除，1已删除',
  `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标签图标',
  PRIMARY KEY (`tag_id`) USING BTREE,
  UNIQUE INDEX `uk_tag_name`(`tag_name` ASC) USING BTREE,
  INDEX `idx_status`(`status` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6010 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '标签表，记录内容的标签信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of cms_tag
-- ----------------------------
INSERT INTO `cms_tag` VALUES (1001, '产品经理', 'Requirement Document', '', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'write_icon.png');
INSERT INTO `cms_tag` VALUES (1002, '前端开发', 'Front-end Development', '包含UI设计', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'web_icon.png');
INSERT INTO `cms_tag` VALUES (1003, '后端开发', 'Backend Development', '包含数据库开发', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'web_icon.png');
INSERT INTO `cms_tag` VALUES (1004, '测试审查', 'Code Testing', '代码测试、代码审查', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'settings_icon.png');
INSERT INTO `cms_tag` VALUES (1005, '代码规范', 'Code Standards', '包含版本管理', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'settings_icon.png');
INSERT INTO `cms_tag` VALUES (2001, '文档处理', 'Document Processing', '特指文档编辑、格式转换等，如word转pdf。不包含写作与报告等文档内容生成。', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'write_icon.png');
INSERT INTO `cms_tag` VALUES (2002, '数据处理', 'Data Processing', '', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'chart_icon.png');
INSERT INTO `cms_tag` VALUES (2003, '展示汇报', 'Work Reporting', '用ppt、海报、邮件等各种方式介绍自己的工作等', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'chart_icon.png');
INSERT INTO `cms_tag` VALUES (2004, '文案报告', 'Report Writing', '写申请书、领导致辞等各种文案，写各类调研分析报告', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'write_icon.png');
INSERT INTO `cms_tag` VALUES (2005, '个人助手', 'Student Assistant', '如日程管理、健身计划、会议记录、天气报告等日常常用工具', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'message_icon.png');
INSERT INTO `cms_tag` VALUES (3001, '文案创作', 'Copywriting', '自媒体与电商类的营销推广文案、策划', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'write_icon.png');
INSERT INTO `cms_tag` VALUES (3002, '信息分析', 'Information Scraping', '包括不限于数据获取、爆款分析、市场分析、预测流行元素等', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'web_icon.png');
INSERT INTO `cms_tag` VALUES (3003, '内容创作', 'Automatic Image Generation', '自媒体图文、音频、视频内容创作，电商产品效果图、宣传海报等', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'paint_icon.png');
INSERT INTO `cms_tag` VALUES (3004, '流量与运营', 'Video Generation', '分析流量，如何获取流量，如何运营电商产品与自媒体内容', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'paint_icon.png');
INSERT INTO `cms_tag` VALUES (4001, '论文写作', 'Thesis Writing', '特指学位论文、学术论文写作', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'write_icon.png');
INSERT INTO `cms_tag` VALUES (4002, '文献阅读', 'Literature Reading', '', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'write_icon.png');
INSERT INTO `cms_tag` VALUES (4003, '报告与汇报', 'Reports and Presentations', '', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'write_icon.png');
INSERT INTO `cms_tag` VALUES (4004, '科研绘图', 'Scientific Research Drawing', '特指科研类技术路线图、流程图、数据分析图等论文制图', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'paint_icon.png');
INSERT INTO `cms_tag` VALUES (4005, '申请书撰写', 'Application Writing', '', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'write_icon.png');
INSERT INTO `cms_tag` VALUES (4006, '数据分析', 'Data Analysis', '特指科研类数据分析，如实验数据分析等', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'chart_icon.png');
INSERT INTO `cms_tag` VALUES (5001, '市场推广', 'Market Research', '包括不限于营销策略、可行性分析、竞品分析、问卷调查、预测等等', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'chart_icon.png');
INSERT INTO `cms_tag` VALUES (5002, '财务分析', 'Financial Statement Analysis', '', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'chart_icon.png');
INSERT INTO `cms_tag` VALUES (5003, '企业管理', 'Process Approval', '包括不限于财务报销、招投标、企业OA等', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'settings_icon.png');
INSERT INTO `cms_tag` VALUES (5004, '企业战略', 'Social messaging', '企业发展的战略规划', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'message_icon.png');
INSERT INTO `cms_tag` VALUES (6001, '医学', 'Medical Category', '', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'settings_icon.png');
INSERT INTO `cms_tag` VALUES (6002, '法律', 'Legal Category', '', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'settings_icon.png');
INSERT INTO `cms_tag` VALUES (6003, '工程', 'Engineering Category', '包括不限于土木工程、环境工程、材料工程、机械工程、电器工程、能源工程等工程类学科，服务于这些学科的各类工具，包括不限于合同审查、可研报告、招投标等。绝对不包含软件开发。', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'settings_icon.png');
INSERT INTO `cms_tag` VALUES (6004, '艺术设计', 'Art and Design', '', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'design_icon.png');
INSERT INTO `cms_tag` VALUES (6005, '工商管理', 'Finance and Accounting', '与金融、财务、会计、企业管理、市场营销相关', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'chart_icon.png');
INSERT INTO `cms_tag` VALUES (6006, '生物', 'Biology Category', '', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'settings_icon.png');
INSERT INTO `cms_tag` VALUES (6007, '教育', 'Normal Education Category', '师范类，与教育相关', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'message_icon.png');
INSERT INTO `cms_tag` VALUES (6008, '影视动漫', 'Film and Animation', '包括不限于视频生成、视频剪辑', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'paint_icon.png');
INSERT INTO `cms_tag` VALUES (6009, '理科', 'Science', '包括不限于化学、物理、力学、数学等非应用型学科', 0, 1, '2026-04-09 16:36:51', '2026-04-09 16:36:51', 'system', 'system', 0, 'settings_icon.png');

-- ----------------------------
-- Table structure for model_price
-- ----------------------------
DROP TABLE IF EXISTS `model_price`;
CREATE TABLE `model_price`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `vendor` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '厂商',
  `model_name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '模型名称',
  `input_price` decimal(10, 4) NOT NULL COMMENT '输入价格：元/百万Token',
  `output_price` decimal(10, 4) NOT NULL COMMENT '输出价格：元/百万Token',
  `unit` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '百万Token',
  `input_per_cent` bigint NOT NULL COMMENT '1分钱可购买输入Token数',
  `output_per_cent` bigint NOT NULL COMMENT '1分钱可购买输出Token数',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '备注',
  `created_time` datetime NULL DEFAULT NULL,
  `updated_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `idx_vendor`(`vendor` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '大模型Token价格表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of model_price
-- ----------------------------
INSERT INTO `model_price` VALUES (1, '字节跳动', '豆包 Lite', 0.6000, 1.2000, NULL, 1666667, 833333, '普惠模型', NULL, NULL);
INSERT INTO `model_price` VALUES (2, '字节跳动', '豆包 Pro', 2.0000, 6.0000, NULL, 500000, 166667, '高级模型', NULL, NULL);
INSERT INTO `model_price` VALUES (3, '百度', 'ERNIE 3.5 Turbo', 0.8000, 3.2000, NULL, 1250000, 312500, '常用免费模型', NULL, NULL);
INSERT INTO `model_price` VALUES (4, '百度', 'ERNIE 4.5 Turbo', 3.0000, 9.0000, NULL, 333333, 111111, '高阶模型', NULL, NULL);
INSERT INTO `model_price` VALUES (5, '阿里巴巴', 'Qwen Turbo', 0.3000, 0.6000, NULL, 3333333, 1666667, '超低价普惠', NULL, NULL);
INSERT INTO `model_price` VALUES (6, '阿里巴巴', 'Qwen 3.5 Plus', 4.0000, 12.0000, NULL, 250000, 83333, '企业级', NULL, NULL);
INSERT INTO `model_price` VALUES (7, '深度求索', 'DeepSeek V3.2', 0.2700, 1.0800, NULL, 3703704, 925926, '性价比极高', NULL, NULL);
INSERT INTO `model_price` VALUES (8, '智谱AI', 'GLM-5 Turbo', 2.1600, 18.3600, NULL, 462963, 54493, '高性能', NULL, NULL);
INSERT INTO `model_price` VALUES (9, '腾讯', '混元标准版', 4.5000, 9.0000, NULL, 222222, 111111, '腾讯官方', NULL, NULL);
INSERT INTO `model_price` VALUES (10, 'OpenAI', 'GPT-4o Mini', 1.0800, 4.3200, NULL, 925926, 231481, '海外平价', NULL, NULL);
INSERT INTO `model_price` VALUES (11, 'OpenAI', 'GPT-4o', 18.0000, 72.0000, NULL, 55556, 13889, '高端', NULL, NULL);
INSERT INTO `model_price` VALUES (12, 'Anthropic', 'Claude Haiku', 7.2000, 36.0000, NULL, 138889, 27778, '轻量款', NULL, NULL);
INSERT INTO `model_price` VALUES (13, 'Anthropic', 'Claude Sonnet', 21.6000, 108.0000, NULL, 46296, 9259, '企业款', NULL, NULL);
INSERT INTO `model_price` VALUES (14, 'Anthropic', 'Claude Opus', 36.0000, 180.0000, NULL, 27778, 5556, '旗舰款', NULL, NULL);
INSERT INTO `model_price` VALUES (15, 'Google', 'Gemini 2.5 Flash', 1.8000, 18.0000, NULL, 555556, 55556, '闪电款', NULL, NULL);
INSERT INTO `model_price` VALUES (16, '阿里云(通义千问)', 'qwen3.5-plus', 20.0000, 40.0000, '百万Token', 5000, 2500, '通义千问旗舰版大模型', '2026-04-08 14:10:42', '2026-04-08 14:10:42');
INSERT INTO `model_price` VALUES (17, '深度求索(DeepSeek)', 'deepseek-chat', 8.0000, 16.0000, '百万Token', 12500, 6250, 'DeepSeek通用对话模型', '2026-04-08 14:10:42', '2026-04-08 14:10:42');

-- ----------------------------
-- Table structure for sys_dict
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict`;
CREATE TABLE `sys_dict`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '字典表ID',
  `dict_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典编码',
  `dict_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字典名称',
  `dict_cn` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典值中文文本',
  `dict_en` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典值英文文本',
  `dict_value` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典值',
  `sorts` int NULL DEFAULT NULL COMMENT '字典排序',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `delete_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除 ：0 未删除，1已删除',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `idx_dict_code`(`dict_code` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统字典表，记录系统字典信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_dict
-- ----------------------------

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user`  (
  `user_id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `user_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户登录名称',
  `pwd` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码（非明文）',
  `real_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '真实姓名',
  `tel` varchar(20) 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 '邮箱',
  `salt` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '加点盐（登录时候要用到的随机数）',
  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `enable` tinyint(1) NULL DEFAULT 1 COMMENT '是否启用（1启用，2禁用）',
  `delete_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除 ：0 未删除，1已删除',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
  `session_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'AI会话ID',
  PRIMARY KEY (`user_id`) USING BTREE,
  UNIQUE INDEX `uk_user_name`(`user_name` ASC) USING BTREE,
  INDEX `idx_enable`(`enable` ASC) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统用户表，记录系统用户信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (1, 'admin', '0b27fc4dd8f5900831eb3d361ac96f9c', '系统管理员', '13800138000', 'admin@example.com', '123456', '系统管理员', '2026-01-20 18:10:20', '2026-03-30 11:23:53', 1, 0, NULL, NULL, '4ce276ca-847c-4c41-9bf7-aa59f160b00d');
INSERT INTO `sys_user` VALUES (2, 'approver', '5f1d7a84db00d2fce00b31a7fc73224f', '内容审核员', '13800138001', 'approver@example.com', '123456', '内容审核员', '2026-01-20 18:10:20', '2026-02-28 08:17:20', 1, 0, NULL, NULL, NULL);
INSERT INTO `sys_user` VALUES (3, 'normal', '5f1d7a84db00d2fce00b31a7fc73224f', '普通用户', '13800138002', 'normal@example.com', '123456', '普通用户', '2026-01-20 18:10:20', '2026-02-28 08:17:20', 1, 0, NULL, NULL, NULL);
INSERT INTO `sys_user` VALUES (4, 'wangzw', '5f1d7a84db00d2fce00b31a7fc73224f', '王志维', '13476286187', 'o97fmn.n4o67@vip.qq.com', '123456', 'id incididunt do non', '2025-10-06 10:28:27', '2026-04-08 12:32:08', 1, 0, NULL, NULL, '4250014a-0d11-4848-be4d-06e1a09c8591');
INSERT INTO `sys_user` VALUES (7, '18727427349', '5f1d7a84db00d2fce00b31a7fc73224f', NULL, '18727427349', NULL, '123456', NULL, NULL, '2026-03-20 01:32:39', 1, 0, NULL, NULL, '64e6b677-4db6-4350-a961-0fc627314ea6');
INSERT INTO `sys_user` VALUES (8, '15663874057', '5f1d7a84db00d2fce00b31a7fc73224f', NULL, '15663874057', NULL, '123456', NULL, NULL, '2026-03-20 01:32:46', 1, 0, NULL, NULL, 'a7591562-4061-4272-97f9-5686d4b4b40b');
INSERT INTO `sys_user` VALUES (9, 'w2003210612', '9fcc67024102144bc4781f4f677817c7', '王snail', '18627886625', NULL, '666666', NULL, NULL, '2026-03-20 01:32:54', 1, 0, NULL, NULL, '4250014a-0d11-4848-be4d-06e1a09c8593');
INSERT INTO `sys_user` VALUES (10, '13027721422', '9fcc67024102144bc4781f4f677817c7', NULL, '13027721422', NULL, '666666', NULL, NULL, '2026-03-06 06:43:06', 1, 0, NULL, NULL, NULL);
INSERT INTO `sys_user` VALUES (11, '13163331326', '9fcc67024102144bc4781f4f677817c7', NULL, '13163331326', NULL, '666666', NULL, NULL, '2026-03-20 01:33:01', 1, 0, NULL, NULL, '5babceb6-c4cc-4f34-befc-160b0ce47d32');
INSERT INTO `sys_user` VALUES (12, 'ls20260320', 'd337ce81444f9cd8f14cb3a58027b1f3', '王老师', '18771987559', NULL, '1773988503660', NULL, NULL, '2026-03-20 14:35:03', 1, 0, NULL, NULL, NULL);

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role`  (
  `role_id` bigint NOT NULL COMMENT '角色ID',
  `user_id` bigint NOT NULL COMMENT '用户ID',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `delete_flag` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除 ：0 未删除，1已删除',
  `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
  `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人',
  PRIMARY KEY (`role_id`, `user_id`) USING BTREE,
  INDEX `idx_user_id`(`user_id` ASC) 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, '2026-01-26 03:47:06', '2026-01-26 03:47:06', 0, NULL, NULL);
INSERT INTO `sys_user_role` VALUES (1, 4, '2026-03-30 10:25:27', '2026-03-30 10:25:27', 0, NULL, NULL);
INSERT INTO `sys_user_role` VALUES (2, 2, '2026-01-26 03:47:06', '2026-01-26 03:47:06', 0, NULL, NULL);
INSERT INTO `sys_user_role` VALUES (3, 3, '2026-01-26 03:47:06', '2026-01-26 03:47:06', 0, NULL, NULL);

SET FOREIGN_KEY_CHECKS = 1;
