/*
 Navicat Premium Data Transfer

 Source Server         : 127.0.0.1 MySQL
 Source Server Type    : MySQL
 Source Server Version : 80200 (8.2.0)
 Source Host           : 127.0.0.1:3306
 Source Schema         : ruoyi-vue-pro

 Target Server Type    : MySQL
 Target Server Version : 80200 (8.2.0)
 File Encoding         : 65001

 Date: 15/03/2025 07:44:11
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for ai_api_key
-- ----------------------------
DROP TABLE IF EXISTS `ai_api_key`;
CREATE TABLE `ai_api_key`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '名称',
  `api_key` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '密钥',
  `platform` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '平台',
  `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '自定义 API 地址',
  `status` int NOT NULL COMMENT '状态',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI API 密钥表';

-- ----------------------------
-- Records of ai_api_key
-- ----------------------------
BEGIN;
INSERT INTO `ai_api_key` (`id`, `name`, `api_key`, `platform`, `url`, `status`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (1, '【OpenAI】ChatGPT', 'sk-aN6nWn3fILjrgLFT0fC4Aa60B72e4253826c77B29dC94f17', 'OpenAI', 'https://api.holdai.top', 0, '', '2024-05-10 01:37:55', '1', '2025-02-23 16:58:46', b'0', 1), (2, '呵呵', '123321', 'OpenAI', NULL, 0, '1', '2024-05-11 16:46:18', '1', '2024-05-17 15:15:08', b'1', 1), (3, '【Meta】Ollama', ' ', 'Ollama', 'http://127.0.0.1:11434', 0, '1', '2024-05-17 23:04:13', '1', '2024-07-05 01:30:10', b'0', 1), (4, '【百度】文心一言', 'x0cuLZ7XsaTCU08vuJWO87Lg|R9mYF9dl9KASgi5RUq0FQt3wRisSnOcK', 'YiYan', NULL, 0, '1', '2024-05-18 09:26:02', '1', '2024-07-05 01:30:10', b'0', 1), (5, '【讯飞】星火', '75b161ed2aef4719b275d6e7f2a4d4cd|YWYxYWI2MTA4ODI2NGZlYTQyNjAzZTcz', 'XingHuo', NULL, 0, '1', '2024-05-18 10:09:42', '1', '2025-02-23 18:35:06', b'0', 1), (6, '【阿里】通义千问', 'sk-7d903764249848cfa912733146da12d1', 'TongYi', NULL, 0, '1', '2024-05-18 10:33:12', '1', '2025-02-24 10:24:50', b'0', 1), (7, 'StableDiffusion', 'sk-e53UqbboF8QJCscYvzJscJxJXoFcFg4iJjl1oqgE7baJETmx', 'StableDiffusion', NULL, 0, '1', '2024-06-01 15:11:18', '1', '2024-07-05 01:30:10', b'0', 1), (8, '【本地】Ollama', 'null', 'Ollama', 'http://localhost:11434', 0, '1', '2024-06-01 20:04:43', '1', '2025-02-24 09:21:16', b'0', 1), (9, 'Suno', 'Suno', 'Suno', 'http://127.0.0.1:3001', 0, '1', '2024-06-29 09:14:28', '1', '2024-07-05 01:30:10', b'0', 1), (10, 'Midjourney', 'sk-dZEPiVaNcT3FHhef51996bAa0bC74806BeAb620dA5Da10Bf', 'Midjourney', 'https://api.holdai.top/mj', 0, '1', '2024-06-29 09:40:20', '1', '2024-07-05 01:30:10', b'0', 1), (11, 'DeepSeek', 'sk-5b612c071f904fd59808dc07c9a4f1b8', 'DeepSeek', NULL, 0, '1', '2024-07-06 12:06:04', '1', '2025-03-13 21:18:31', b'0', 1), (12, '智谱', '2f35fb6ca4ea41fab898729b7fac086c.6ESSfPcCkxaKEUlR', 'ZhiPu', NULL, 0, '1', '2024-07-06 18:01:15', '1', '2025-03-11 07:47:46', b'0', 1), (13, '【微软 OpenAI】ChatGPT', 'XXX', 'AzureOpenAI', 'https://eastusprejade.openai.azure.com', 0, '1', '2024-08-10 14:09:27', '1', '2024-08-10 15:08:27', b'0', 1), (14, '字节豆包', '5c1b5747-26d2-4ebd-a4e0-dd0e8d8b4272', 'DouBao', NULL, 0, '1', '2025-02-23 19:52:37', '1', '2025-02-23 19:52:37', b'0', 1), (15, '腾讯混元', 'sk-bcd', 'HunYuan', NULL, 0, '1', '2025-02-23 20:59:10', '1', '2025-02-24 09:20:04', b'0', 1), (16, '腾讯知识引擎', 'sk-abc', 'HunYuan', 'https://api.lkeap.cloud.tencent.com', 0, '1', '2025-02-23 20:59:49', '1', '2025-02-24 09:20:00', b'0', 1), (17, '【本地】deepseek-r1', 'null', 'Ollama', 'http://localhost:11434', 0, '1', '2025-02-24 09:20:31', '1', '2025-02-24 09:21:40', b'1', 1), (18, '硅基流动', 'sk-epsakfenqnyzoxhmbucsxlhkdqlcbnimslqoivkshalvdozz', 'SiliconFlow', '', 0, '1', '2025-02-24 20:34:19', '1', '2025-02-24 20:34:19', b'0', 1), (19, 'MiniMax', '[REDACTED], 'MiniMax', NULL, 0, '1', '2025-03-11 20:06:35', '1', '2025-03-11 20:06:35', b'0', 1), (20, '月之暗灭', 'sk-aHYYV1SARscItye5QQRRNbXij4fy65Ee7pNZlC9gsSQnUKXA', 'Moonshot', NULL, 0, '1', '2025-03-11 20:07:27', '1', '2025-03-11 20:07:27', b'0', 1), (21, 'FastGPT', 'fastgpt-aqcc61kFtF8CeaglnGAfQOCIDWwjGdJVJHv6hIlMo28otFlva2aZNK', 'OpenAI', 'https://cloud.fastgpt.cn/api', 0, '1', '2025-03-12 13:51:06', '1', '2025-03-12 20:06:12', b'0', 1), (22, 'Dify', 'app-4hy2d7fJauSbrKbzTKX1afuP', 'OpenAI', 'http://127.0.0.1:3000', 0, '1', '2025-03-12 21:26:34', '1', '2025-03-12 21:50:29', b'0', 1);
COMMIT;

-- ----------------------------
-- Table structure for ai_chat_conversation
-- ----------------------------
DROP TABLE IF EXISTS `ai_chat_conversation`;
CREATE TABLE `ai_chat_conversation`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '对话编号',
  `user_id` bigint NOT NULL COMMENT '用户编号',
  `role_id` bigint NULL DEFAULT NULL COMMENT '聊天角色',
  `title` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '对话标题',
  `model_id` bigint NOT NULL COMMENT '模型编号',
  `model` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模型标识',
  `pinned` bit(1) NOT NULL COMMENT '是否置顶',
  `pinned_time` datetime NULL DEFAULT NULL COMMENT '置顶时间',
  `system_message` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '角色设定',
  `temperature` double NOT NULL COMMENT '温度参数',
  `max_tokens` int NOT NULL COMMENT '单条回复的最大 Token 数量',
  `max_contexts` int NOT NULL COMMENT '上下文的最大 Message 数量',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '创建人',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '更新人',
  `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NULL DEFAULT NULL COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1781604279872581774 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI 聊天对话表';

-- ----------------------------
-- Records of ai_chat_conversation
-- ----------------------------
BEGIN;
INSERT INTO `ai_chat_conversation` (`id`, `user_id`, `role_id`, `title`, `model_id`, `model`, `pinned`, `pinned_time`, `system_message`, `temperature`, `max_tokens`, `max_contexts`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (1781604279872581684, 1, 10, '新对话', 14, 'qwen-72b-chat', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 2, '1', '2024-05-20 22:22:39', '1', '2024-07-05 01:29:39', b'1', 1), (1781604279872581685, 1, 10, 'gpt测试', 11, 'gpt-3.5-turbo', b'1', '2024-05-21 16:26:29', '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-21 09:37:38', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581686, 1, 10, '新的gpt测试', 11, 'gpt-3.5-turbo', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-21 14:43:32', '1', '2024-07-05 01:29:41', b'1', 1), (1781604279872581687, 1, 10, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-21 16:37:12', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581688, 1, 10, '新对话', 10, 'ERNIE 4.0', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-21 16:38:14', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581689, 1, 10, '新对话', 14, 'qwen-72b-chat', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-21 16:40:23', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581690, 1, 10, '新对话111', 11, 'gpt-3.5-turbo', b'1', '2024-05-21 20:20:26', '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-21 16:42:06', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581691, 1, 10, '新对话1112', 11, 'gpt-3.5-turbo', b'0', '2024-05-22 07:25:38', '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-21 20:12:18', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581692, 1, 10, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-21 20:12:32', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581693, 1, 10, '通用 AI 助手', 11, 'gpt-3.5-turbo', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-22 07:26:06', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581694, 1, 10, '测试各种逻辑', 12, 'llama3', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 2, 20, '1', '2024-05-22 09:55:37', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581695, 1, 10, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-22 10:46:38', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581696, 1, 10, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-23 20:37:42', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581697, 1, 10, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-23 20:41:25', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581698, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 20, 20, '1', '2024-05-24 12:46:36', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581699, 1, NULL, '新对话', 10, 'ERNIE 4.0', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-05-24 12:48:25', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581700, 1, NULL, '新对话', 10, 'ERNIE 4.0', b'0', NULL, NULL, 1, 20, 20, '1', '2024-05-24 12:49:47', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581701, 1, NULL, '新对话', 10, 'ERNIE 4.0', b'0', NULL, NULL, 1, 20, 20, '1', '2024-05-24 12:51:30', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581702, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 20, 20, '1', '2024-05-24 12:53:03', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581703, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 20, 20, '1', '2024-05-24 14:05:36', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581704, 1, 10, '通用 AI 助手', 11, 'gpt-3.5-turbo', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-24 14:06:52', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581705, 1, 10, '通用 AI 助手', 11, 'gpt-3.5-turbo', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 20, 20, '1', '2024-05-24 14:16:46', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581706, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 20, 20, '1', '2024-05-24 15:48:36', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581707, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 20, 20, '1', '2024-05-24 15:52:13', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581708, 1, 10, '通用 AI 助手', 11, 'gpt-3.5-turbo', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 4096, 20, '1', '2024-05-24 20:58:12', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581709, 1, 11, 'Python 专家', 12, 'llama3', b'0', NULL, '我希望你能作为一名 python 专家。我将向你提供有关我的技术问题的所有信息，而你的角色是解决我的问题。你应该用你的计算机科学、网络基础设施和 IT 安全知识来解决我的问题。在你的回答中，使用聪明的、简单的、为各种层次的人所理解的语言会有帮助。逐步解释你的解决方案并使用要点是很有帮助的。尽量避免过多的技术细节，但在必要时使用它们。我希望你用解决方案来回答，而不是写任何解释。', 1, 4096, 10, '1', '2024-05-25 11:45:22', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581710, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 20, 20, '1', '2024-05-25 11:48:51', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581711, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 20, 20, '1', '2024-05-25 13:08:02', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581712, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 20, 20, '1', '2024-05-25 13:08:17', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581713, 1, NULL, '测试讯飞', 13, 'generalv3.5', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-05-25 13:17:28', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581714, 1, NULL, '测试千问', 14, 'qwen-72b-chat', b'0', NULL, NULL, 1, 1000, 20, '1', '2024-05-25 13:20:22', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581715, 1, 12, '小可爱角色', 17, 'deepseek-chat', b'1', '2024-07-04 23:39:14', '你好，我是宠物小精灵大师！', 1, 4096, 20, '1', '2024-05-25 13:25:51', '1', '2024-07-11 09:35:22', b'0', 1), (1781604279872581716, 1, NULL, '新对话', 15, 'Qwen-1.8B', b'0', NULL, NULL, 1, 2000, 20, '1', '2024-06-01 20:06:19', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581717, 1, NULL, '新对话', 14, 'qwen-72b-chat', b'1', '2024-07-04 23:39:15', NULL, 1, 4096, 20, '1', '2024-06-01 20:08:09', '1', '2024-07-06 10:05:01', b'1', 1), (1781604279872581718, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-06-01 21:53:36', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581719, 1, NULL, '新对话', 9, 'ERNIE-3.5-8K', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-06-02 08:52:56', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581720, 1, NULL, '新对话', 9, 'ERNIE-3.5-8K', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-06-02 09:07:19', '1', '2024-07-05 01:29:53', b'1', 1), (1781604279872581721, 1, NULL, '新对话', 9, 'ERNIE-3.5-8K', b'1', '2024-07-04 23:39:12', NULL, 0.5, 1000, 20, '1', '2024-06-02 09:13:16', '1', '2024-07-06 10:05:03', b'1', 1), (1781604279872581722, 1, NULL, '新对话', 13, 'generalv3.5', b'1', '2024-07-04 23:39:12', NULL, 1, 4096, 20, '1', '2024-06-29 17:31:06', '1', '2024-07-06 10:05:06', b'1', 1), (1781604279872581723, 1, NULL, '新对话', 14, 'qwen-72b-chat', b'1', '2024-07-04 23:39:10', NULL, 1, 2000, 20, '1', '2024-06-29 17:52:44', '1', '2024-07-06 10:05:09', b'1', 1), (1781604279872581724, 1, NULL, '新对话', 10, 'ERNIE 4.0', b'1', '2024-07-04 23:39:09', NULL, 1, 1000, 20, '1', '2024-06-29 18:08:45', '1', '2024-07-06 10:05:11', b'1', 1), (1781604279872581725, 1, NULL, '新对话', 14, 'qwen-72b-chat', b'1', '2024-07-04 23:39:07', NULL, 1, 1000, 20, '1', '2024-06-29 18:51:22', '1', '2024-07-06 10:05:12', b'1', 1), (1781604279872581726, 1, NULL, '新对话', 19, 'GLM-4', b'0', NULL, NULL, 1, 1024, 20, '1', '2024-07-05 00:08:15', '1', '2024-07-06 10:03:43', b'1', 1), (1781604279872581727, 1, NULL, '讯飞星火', 13, 'generalv3.5', b'0', NULL, '', 1, 4096, 20, '1', '2024-07-06 08:43:54', '1', '2024-07-07 12:38:09', b'1', 1), (1781604279872581728, 1, NULL, 'deepseek', 17, 'deepseek-chat', b'1', '2024-07-08 13:19:12', NULL, 1, 4096, 20, '1', '2024-07-06 12:07:31', '1', '2024-07-08 13:19:12', b'0', 1), (1781604279872581729, 1, NULL, 'llama3', 12, 'llama3', b'1', '2024-07-08 13:19:10', NULL, 1, 4096, 20, '1', '2024-07-06 14:47:03', '1', '2024-07-08 13:19:10', b'0', 1), (1781604279872581730, 1, NULL, '通义千问', 54, 'qwen-max-latest', b'1', '2024-07-07 21:58:29', NULL, 1, 2000, 20, '1', '2024-07-06 15:43:43', '1', '2025-03-13 21:34:22', b'0', 1), (1781604279872581731, 1, NULL, '新对话', 10, 'ERNIE 4.0', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-07-06 15:55:30', '1', '2024-07-06 10:04:11', b'1', 1), (1781604279872581732, 1, NULL, '新对话', 16, 'ernie_speed', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-07-06 16:31:46', '1', '2024-07-06 10:04:02', b'1', 1), (1781604279872581733, 1, NULL, '文心一言', 16, 'ernie_speed', b'1', '2024-07-08 13:19:09', '你是一个 java 专家', 1, 4096, 20, '1', '2024-07-06 16:32:37', '1', '2025-03-13 21:28:41', b'0', 1), (1781604279872581734, 1, NULL, 'gpt-3.5', 11, 'gpt-3.5-turbo', b'1', '2024-07-08 13:19:08', NULL, 1, 4096, 20, '1', '2024-07-06 18:01:48', '1', '2025-02-23 17:04:43', b'0', 1), (1781604279872581735, 1, NULL, '智谱 GLM-4', 19, 'GLM-4', b'1', '2024-07-08 13:19:06', NULL, 0.75, 4096, 20, '1', '2024-07-06 18:05:14', '1', '2024-07-08 13:19:06', b'0', 1), (1781604279872581736, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-07-07 18:41:05', '1', '2024-07-07 10:41:08', b'1', 1), (1781604279872581737, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-07-07 20:28:58', '1', '2024-07-07 12:38:30', b'1', 1), (1781604279872581738, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-07-07 20:33:58', '1', '2024-07-07 12:38:27', b'1', 1), (1781604279872581739, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-07-07 20:37:50', '1', '2024-07-07 12:38:23', b'1', 1), (1781604279872581740, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-07-07 20:37:57', '1', '2024-07-07 12:38:21', b'1', 1), (1781604279872581741, 104, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '104', '2024-07-07 20:40:29', '104', '2024-07-07 12:40:31', b'1', 1), (1781604279872581742, 104, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '104', '2024-07-07 20:42:26', '104', '2024-07-07 12:42:53', b'1', 1), (1781604279872581743, 104, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '104', '2024-07-07 20:44:35', '104', '2024-07-07 20:44:35', b'0', 1), (1781604279872581744, 1, NULL, '新对话', 17, 'deepseek-chat', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-07-07 21:02:33', '1', '2024-07-08 05:22:42', b'1', 1), (1781604279872581745, 1, 12, '小可爱角色', 18, 'deepseek-coder', b'0', NULL, '你好，我是宠物小精灵大师！', 1, 4096, 20, '1', '2024-07-07 21:08:46', '1', '2024-07-08 05:22:42', b'1', 1), (1781604279872581746, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-07-07 21:23:20', '1', '2024-07-07 13:23:26', b'1', 1), (1781604279872581747, 1, 12, '小可爱角色', 11, 'gpt-3.5-turbo', b'0', NULL, '你好，我是宠物小精灵大师！', 1, 4096, 20, '1', '2024-07-07 22:03:26', '1', '2024-07-08 05:22:42', b'1', 1), (1781604279872581748, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-07-07 22:07:34', '1', '2024-07-08 05:19:04', b'1', 1), (1781604279872581749, 1, 12, '小可爱角色', 11, 'gpt-3.5-turbo', b'0', NULL, '你好，我是宠物小精灵大师！', 1, 4096, 20, '1', '2024-07-08 13:18:15', '1', '2024-07-08 05:22:42', b'1', 1), (1781604279872581750, 1, 12, '小可爱角色', 11, 'gpt-3.5-turbo', b'0', NULL, '你好，我是宠物小精灵大师！', 1, 4096, 20, '1', '2024-07-08 20:55:44', '1', '2024-07-08 12:55:59', b'1', 1), (1781604279872581751, 1, 12, '小可爱角色', 11, 'gpt-3.5-turbo', b'0', NULL, '你好，我是宠物小精灵大师！', 1, 4096, 20, '1', '2024-07-08 20:56:01', '1', '2024-07-08 13:10:16', b'1', 1), (1781604279872581752, 1, 12, '小可爱角色', 11, 'gpt-3.5-turbo', b'0', NULL, '你好，我是宠物小精灵大师！', 1, 4096, 20, '1', '2024-07-08 20:56:40', '1', '2024-07-08 12:56:44', b'1', 1), (1781604279872581753, 1, NULL, '新对话', 20, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '1', '2024-08-10 14:10:53', '1', '2024-08-10 14:17:19', b'0', 1), (1781604279872581754, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-02-23 17:03:23', '1', '2025-02-23 17:03:31', b'1', 1), (1781604279872581755, 1, NULL, '讯飞星火', 55, '4.0Ultra', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-02-23 18:32:31', '1', '2025-03-14 11:24:30', b'0', 1), (1781604279872581756, 1, NULL, '本地（tongyi）', 50, 'qwen2.5', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-02-23 19:00:56', '1', '2025-03-13 16:36:34', b'0', 1), (1781604279872581757, 1, NULL, '字节豆包', 22, 'doubao-1-5-lite-32k-250115', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-02-23 19:56:19', '1', '2025-02-23 19:56:37', b'0', 1), (1781604279872581758, 1, NULL, '字节 deepseek', 23, 'deepseek-r1-250120', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-02-23 19:58:44', '1', '2025-02-23 19:59:04', b'0', 1), (1781604279872581759, 1, NULL, '腾讯混元', 11, 'gpt-3.5-turbo', b'0', '2025-02-23 21:02:38', NULL, 1, 4096, 20, '1', '2025-02-23 21:01:57', '1', '2025-02-23 21:02:40', b'0', 1), (1781604279872581760, 1, NULL, '腾讯 deepseek', 25, 'deepseek-r1', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-02-23 21:02:11', '1', '2025-02-23 21:02:37', b'0', 1), (1781604279872581761, 1, NULL, '本地（deepseek-r1）', 26, 'deepseek-r1', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-02-24 09:22:37', '1', '2025-02-24 09:22:55', b'0', 1), (1781604279872581762, 1, NULL, '阿里云 deepseek', 28, 'deepseek-v3', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-02-24 10:17:37', '1', '2025-02-24 10:24:56', b'0', 1), (1781604279872581763, 1, NULL, '硅基流动 deepseek', 52, 'Pro/deepseek-ai/DeepSeek-V3', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-02-24 20:35:21', '1', '2025-03-13 21:06:11', b'0', 1), (1781604279872581764, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-03-09 18:31:53', '1', '2025-03-09 18:31:53', b'0', 1), (1781604279872581765, 1, 16, '测试知识库', 13, 'generalv3.5', b'0', NULL, '一个小助手', 1, 4096, 20, '1', '2025-03-09 18:33:03', '1', '2025-03-09 18:52:01', b'0', 1), (1781604279872581766, 1, 10, '通用 AI 助手', 11, 'gpt-3.5-turbo', b'0', NULL, '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', 1, 4096, 20, '1', '2025-03-10 20:22:17', '1', '2025-03-10 20:22:17', b'0', 1), (1781604279872581767, 1, NULL, '月之暗灭', 53, 'moonshot-v1-128k', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-03-11 20:10:29', '1', '2025-03-13 21:15:46', b'0', 1), (1781604279872581768, 1, NULL, 'MiniMax', 51, 'MiniMax-Text-01', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-03-11 20:10:53', '1', '2025-03-13 20:38:40', b'0', 1), (1781604279872581769, 1, NULL, 'FastGPT', 47, 'FastGPT', b'0', '2025-03-12 13:51:52', NULL, 1, 4096, 20, '1', '2025-03-12 13:51:50', '1', '2025-03-12 13:52:29', b'0', 1), (1781604279872581770, 1, NULL, 'Dify', 48, 'Dify', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-03-12 21:27:38', '1', '2025-03-12 21:27:51', b'0', 1), (1781604279872581771, 1, NULL, '新对话', 11, 'gpt-3.5-turbo', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-03-13 12:43:05', '1', '2025-03-13 12:47:13', b'1', 1), (1781604279872581772, 1, NULL, '新对话', 54, 'qwen-max', b'0', NULL, NULL, 1, 4096, 20, '1', '2025-03-13 12:47:08', '1', '2025-03-13 21:32:39', b'0', 1), (1781604279872581773, 1, 17, '一个可以查询天气的小助手', 11, 'gpt-3.5-turbo', b'0', NULL, '天气小助手', 1, 4096, 20, '1', '2025-03-14 20:03:31', '1', '2025-03-14 20:03:31', b'0', 1);
COMMIT;

-- ----------------------------
-- Table structure for ai_chat_message
-- ----------------------------
DROP TABLE IF EXISTS `ai_chat_message`;
CREATE TABLE `ai_chat_message`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '消息编号',
  `conversation_id` bigint NOT NULL COMMENT '对话编号',
  `reply_id` bigint NULL DEFAULT NULL COMMENT '回复编号',
  `user_id` bigint NOT NULL COMMENT '用户编号',
  `role_id` bigint NULL DEFAULT NULL COMMENT '角色编号',
  `type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '消息类型',
  `model` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模型标识',
  `model_id` bigint NOT NULL COMMENT '模型编号',
  `content` varchar(10240) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '消息内容',
  `use_context` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否携带上下文',
  `segment_ids` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '段落编号数组',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '创建人',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '更新人',
  `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NULL DEFAULT NULL COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2737 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI 聊天消息表';

-- ----------------------------
-- Records of ai_chat_message
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for ai_chat_role
-- ----------------------------
DROP TABLE IF EXISTS `ai_chat_role`;
CREATE TABLE `ai_chat_role`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '角色编号',
  `user_id` bigint NULL DEFAULT NULL COMMENT '用户编号',
  `model_id` bigint NULL DEFAULT NULL COMMENT '模型编号',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '角色名称',
  `avatar` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '头像',
  `category` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '角色类别',
  `sort` int NOT NULL DEFAULT 0 COMMENT '角色排序',
  `description` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '角色描述',
  `system_message` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '角色上下文',
  `knowledge_ids` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '关联的知识库编号数组',
  `tool_ids` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '关联的工具编号数组',
  `public_status` bit(1) NOT NULL COMMENT '是否公开',
  `status` tinyint NULL DEFAULT NULL COMMENT '状态',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI 聊天角色表';

-- ----------------------------
-- Records of ai_chat_role
-- ----------------------------
BEGIN;
INSERT INTO `ai_chat_role` (`id`, `user_id`, `model_id`, `name`, `avatar`, `category`, `sort`, `description`, `system_message`, `knowledge_ids`, `tool_ids`, `public_status`, `status`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (10, NULL, 11, '通用 AI 助手', 'http://test.cloud.iocoder.cn/eaef5f41acb911dd718429a0702dcc3c61160d16e57ba1d543132fab58934f9f.png', '助手', 1, '默认角色', '您好，我是您的AI智能助手，我会尽力回答您的问题或提供有用的建议！！！！', NULL, NULL, b'1', 0, '1', '2024-05-13 20:44:48', '1', '2024-07-05 01:30:30', b'0', 1), (11, NULL, 14, 'Python 专家', 'http://test.cloud.iocoder.cn/5c5528504c307d34af504f39bc4e7007d2f6f31ee00dab699cc91584d1af8aca.png', '编程开发', 2, 'Python', '我希望你能作为一名 python 专家。我将向你提供有关我的技术问题的所有信息，而你的角色是解决我的问题。你应该用你的计算机科学、网络基础设施和 IT 安全知识来解决我的问题。在你的回答中，使用聪明的、简单的、为各种层次的人所理解的语言会有帮助。逐步解释你的解决方案并使用要点是很有帮助的。尽量避免过多的技术细节，但在必要时使用它们。我希望你用解决方案来回答，而不是写任何解释。', NULL, '17', b'1', 0, '1', '2024-05-17 23:23:20', '1', '2025-03-14 21:10:47', b'0', 1), (12, 1, NULL, '小可爱角色', 'http://test.cloud.iocoder.cn/5752750225f522ba794b16ad0b0e73d268093760546ebc2519b1a5dfc5b064d1.jpg', NULL, 0, '卡比兽，爱睡觉', '你好，我是宠物小精灵大师！', NULL, NULL, b'0', 0, '1', '2024-05-25 13:25:46', '1', '2024-07-05 01:30:30', b'0', 1), (13, NULL, 17, '写作助手', 'http://test.cloud.iocoder.cn/2a124ba5743f9572fcbd2718a64ba599618c96ddba6c7391ad35906cd3f37f94.png', '写作', 10, '一个厉害的写手高手', '你是一个非常会写作的人！', NULL, NULL, b'1', 0, '1', '2024-07-10 22:55:58', '1', '2024-07-10 22:56:04', b'0', 1), (14, NULL, 17, '脑图助手', 'http://test.cloud.iocoder.cn/7401c394a43280732e6aaa715fbfefadc33eeb8fab8f45f6b53f1acf6b22ae29.png', '写作', 11, '一个厉害的思维大师！', '你是一位非常优秀的思维导图助手，你会把用户的所有提问都总结成思维导图，然后以 Markdown 格式输出。markdown 只需要输出一级标题，二级标题，三级标题，四级标题，最多输出四级，除此之外不要输出任何其他 markdown 标记。下面是一个合格的例子：\n             # Geek-AI 助手\n             ## 完整的开源系统\n             ### 前端开源\n             ### 后端开源\n             ## 支持各种大模型\n             ### OpenAI\n             ### Azure\n             ### 文心一言\n             ### 通义千问\n             ## 集成多种收费方式\n             ### 支付宝\n             ### 微信\n            除此之外不要任何解释性语句。', NULL, NULL, b'1', 0, '1', '2024-07-29 21:47:20', '1', '2024-07-29 21:48:00', b'0', 1), (15, NULL, 26, '测试知识库', 'http://test.cloud.iocoder.cn/d3a7656aae53c8f063d4578c7a65f9045ef25420ff32cc32dd121a60abcf9127.png', '助手', 10, '我只是个小助手', '一个问答助手', '3', NULL, b'1', 0, '1', '2025-03-09 17:35:36', '1', '2025-03-09 18:32:34', b'1', 1), (16, 1, 21, '测试知识库', 'http://test.cloud.iocoder.cn/a2cfbf52d157911ecfb29c4a26b4a19247f6bb2c97a5104c46c970fc235880ef.png', '助手', 0, '测试一下', '一个小助手', '2', NULL, b'0', 0, '1', '2025-03-09 18:33:01', '1', '2025-03-09 18:51:04', b'0', 1), (17, 1, NULL, '一个可以查询天气的小助手', 'http://test.cloud.iocoder.cn/de74fdbe9ad40173345d4cd1e2b684fcbb5e797f7b7cc37b42dcbaa20dcf6bb3.png', NULL, 0, '查查查天气', '天气小助手', '', '18', b'0', 0, '1', '2025-03-14 20:03:27', '1', '2025-03-14 20:03:27', b'0', 1);
COMMIT;

-- ----------------------------
-- Table structure for ai_image
-- ----------------------------
DROP TABLE IF EXISTS `ai_image`;
CREATE TABLE `ai_image`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `user_id` bigint NOT NULL COMMENT '用户编号',
  `prompt` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '提示词',
  `platform` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '平台',
  `model_id` bigint NULL DEFAULT NULL COMMENT '模型编号',
  `model` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模型',
  `width` int NOT NULL COMMENT '图片宽度',
  `height` int NOT NULL COMMENT '图片高度',
  `status` tinyint NOT NULL COMMENT '绘画状态',
  `finish_time` datetime NULL DEFAULT NULL COMMENT '完成时间',
  `error_message` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '错误信息',
  `public_status` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否发布',
  `pic_url` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '图片地址',
  `options` json NULL COMMENT '绘制参数',
  `task_id` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '任务编号',
  `buttons` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'mj buttons 按钮',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 198 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI 绘画表';

-- ----------------------------
-- Records of ai_image
-- ----------------------------
BEGIN;
INSERT INTO `ai_image` (`id`, `user_id`, `prompt`, `platform`, `model_id`, `model`, `width`, `height`, `status`, `finish_time`, `error_message`, `public_status`, `pic_url`, `options`, `task_id`, `buttons`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (143, 1, '中国旗袍', 'Midjourney', 0, 'midjourney', 1, 1, 20, NULL, '', b'0', 'https://api.holdai.top/mj/image/1719316376919887', '{\"model\": \"midjourney\", \"width\": 1, \"height\": 1, \"prompt\": \"中国旗袍\", \"version\": \"6.0\", \"base64Array\": []}', '1719316376919887', '[{\"customId\":\"MJ::JOB::upsample::1::06aa3e66-0e97-49cc-8201-e0295d883de4\",\"emoji\":\"\",\"label\":\"U1\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::upsample::2::06aa3e66-0e97-49cc-8201-e0295d883de4\",\"emoji\":\"\",\"label\":\"U2\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::upsample::3::06aa3e66-0e97-49cc-8201-e0295d883de4\",\"emoji\":\"\",\"label\":\"U3\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::upsample::4::06aa3e66-0e97-49cc-8201-e0295d883de4\",\"emoji\":\"\",\"label\":\"U4\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::reroll::0::06aa3e66-0e97-49cc-8201-e0295d883de4::SOLO\",\"emoji\":\"🔄\",\"label\":\"\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::variation::1::06aa3e66-0e97-49cc-8201-e0295d883de4\",\"emoji\":\"\",\"label\":\"V1\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::variation::2::06aa3e66-0e97-49cc-8201-e0295d883de4\",\"emoji\":\"\",\"label\":\"V2\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::variation::3::06aa3e66-0e97-49cc-8201-e0295d883de4\",\"emoji\":\"\",\"label\":\"V3\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::variation::4::06aa3e66-0e97-49cc-8201-e0295d883de4\",\"emoji\":\"\",\"label\":\"V4\",\"type\":\"2\",\"style\":\"2\"}]', '1', '2024-06-25 19:52:56', '1', '2024-07-05 01:30:19', b'1', 1), (144, 1, '中国旗袍', 'Midjourney', 0, 'midjourney', 1, 1, 20, NULL, '', b'0', 'https://api.holdai.top/mj/image/1719317928368230', '{\"model\": \"midjourney\", \"width\": 1, \"height\": 1, \"prompt\": \"中国旗袍\", \"version\": \"6.0\", \"base64Array\": []}', '1719317928368230', '[{\"customId\":\"MJ::JOB::upsample_v6_2x_subtle::1::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8::SOLO\",\"emoji\":\"upscale_1\",\"label\":\"Upscale (Subtle)\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::upsample_v6_2x_creative::1::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8::SOLO\",\"emoji\":\"upscale_1\",\"label\":\"Upscale (Creative)\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::low_variation::1::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8::SOLO\",\"emoji\":\"🪄\",\"label\":\"Vary (Subtle)\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::high_variation::1::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8::SOLO\",\"emoji\":\"🪄\",\"label\":\"Vary (Strong)\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::Inpaint::1::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8::SOLO\",\"emoji\":\"🖌️\",\"label\":\"Vary (Region)\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::Outpaint::50::1::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8::SOLO\",\"emoji\":\"🔍\",\"label\":\"Zoom Out 2x\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::Outpaint::75::1::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8::SOLO\",\"emoji\":\"🔍\",\"label\":\"Zoom Out 1.5x\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::CustomZoom::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8\",\"emoji\":\"🔍\",\"label\":\"Custom Zoom\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::pan_left::1::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8::SOLO\",\"emoji\":\"⬅️\",\"label\":\"\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::pan_right::1::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8::SOLO\",\"emoji\":\"➡️\",\"label\":\"\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::pan_up::1::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8::SOLO\",\"emoji\":\"⬆️\",\"label\":\"\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::pan_down::1::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8::SOLO\",\"emoji\":\"⬇️\",\"label\":\"\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::BOOKMARK::5a1bbe5d-8e98-4a2c-a904-b820cf17c5d8\",\"emoji\":\"❤️\",\"label\":\"\",\"type\":\"2\",\"style\":\"2\"}]', '1', '2024-06-25 20:18:53', '1', '2024-07-05 01:30:19', b'1', 1), (145, 1, '中国长城', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 1024, 1024, 30, NULL, NULL, b'0', NULL, NULL, NULL, NULL, '1', '2024-06-25 20:19:32', NULL, '2024-07-05 01:30:19', b'1', 1), (149, 1, '中国旗袍', 'Midjourney', 0, 'midjourney', 1, 1, 10, NULL, '', b'0', NULL, '{\"model\": \"midjourney\", \"width\": 1, \"height\": 1, \"prompt\": \"中国旗袍\", \"version\": \"6.0\", \"base64Array\": []}', '1719321552804536', '[]', '1', '2024-06-25 21:19:12', NULL, '2024-07-05 01:30:19', b'1', 1), (150, 1, '中国旗袍', 'Midjourney', 0, 'midjourney', 1, 1, 20, NULL, '', b'0', 'https://api.holdai.top/mj/image/1719321858504740', '{\"model\": \"midjourney\", \"width\": 1, \"height\": 1, \"prompt\": \"中国旗袍\", \"version\": \"6.0\", \"base64Array\": []}', '1719321858504740', '[{\"customId\":\"MJ::JOB::upsample::1::3ad9cb8d-bd10-416d-b782-f0bd1c7b978a\",\"emoji\":\"\",\"label\":\"U1\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::upsample::2::3ad9cb8d-bd10-416d-b782-f0bd1c7b978a\",\"emoji\":\"\",\"label\":\"U2\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::upsample::3::3ad9cb8d-bd10-416d-b782-f0bd1c7b978a\",\"emoji\":\"\",\"label\":\"U3\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::upsample::4::3ad9cb8d-bd10-416d-b782-f0bd1c7b978a\",\"emoji\":\"\",\"label\":\"U4\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::reroll::0::3ad9cb8d-bd10-416d-b782-f0bd1c7b978a::SOLO\",\"emoji\":\"🔄\",\"label\":\"\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::variation::1::3ad9cb8d-bd10-416d-b782-f0bd1c7b978a\",\"emoji\":\"\",\"label\":\"V1\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::variation::2::3ad9cb8d-bd10-416d-b782-f0bd1c7b978a\",\"emoji\":\"\",\"label\":\"V2\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::variation::3::3ad9cb8d-bd10-416d-b782-f0bd1c7b978a\",\"emoji\":\"\",\"label\":\"V3\",\"type\":\"2\",\"style\":\"2\"},{\"customId\":\"MJ::JOB::variation::4::3ad9cb8d-bd10-416d-b782-f0bd1c7b978a\",\"emoji\":\"\",\"label\":\"V4\",\"type\":\"2\",\"style\":\"2\"}]', '1', '2024-06-25 21:24:17', NULL, '2024-07-05 01:30:19', b'1', 1), (151, 1, '元气少女', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 512, 512, 30, NULL, '403 - {\"id\":\"ce0ccae3ff85b8b2f80b7540f8149663\",\"message\":\"Your request was flagged by our content moderation system, as a result your request was denied and you were not charged.\",\"name\":\"content_moderation\"}\n', b'0', NULL, '{\"seed\": \"-1\", \"steps\": \"20\", \"sampler\": \"Euler a\"}', NULL, NULL, '1', '2024-06-26 12:58:27', NULL, '2024-07-05 01:30:19', b'1', 1), (152, 1, '元气少女1111', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 512, 512, 10, NULL, NULL, b'0', NULL, '{\"seed\": \"-1\", \"steps\": \"20\", \"sampler\": \"Euler a\"}', NULL, NULL, '1', '2024-06-26 12:59:33', '1', '2024-07-05 01:30:19', b'1', 1), (153, 1, '中国长城', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 1024, 1024, 10, NULL, NULL, b'0', NULL, NULL, NULL, NULL, '1', '2024-06-26 13:00:53', '1', '2024-07-05 01:30:19', b'1', 1), (154, 1, '中国长城', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 1024, 1024, 30, NULL, NULL, b'0', NULL, NULL, NULL, NULL, '1', '2024-06-26 13:01:14', NULL, '2024-07-05 01:30:19', b'1', 1), (155, 1, '中国长城', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 1024, 1024, 30, NULL, NULL, b'0', NULL, NULL, NULL, NULL, '1', '2024-06-26 13:01:22', NULL, '2024-07-05 01:30:19', b'1', 1), (156, 1, '中国长城', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 1024, 1024, 30, NULL, NULL, b'0', NULL, NULL, NULL, NULL, '1', '2024-06-26 13:03:12', NULL, '2024-07-05 01:30:19', b'1', 1), (157, 1, '中国长城', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 1024, 1024, 10, NULL, NULL, b'0', NULL, NULL, NULL, NULL, '1', '2024-06-26 22:03:47', '1', '2024-07-05 01:30:19', b'1', 1), (158, 1, '中国长城', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 1024, 1024, 20, NULL, NULL, b'1', 'http://test.cloud.iocoder.cn/3b98892b9a9aabd703c1fd55ac470f4d7e111df1111cc8c791d7340509d1e872.png', NULL, NULL, NULL, '1', '2024-06-26 22:06:33', '1', '2024-07-05 01:30:19', b'0', 1), (159, 1, '古装美女', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 512, 512, 30, NULL, '403 - {\"id\":\"5e1d75324304df2c4ec692701663d2cf\",\"message\":\"Your request was flagged by our content moderation system, as a result your request was denied and you were not charged.\",\"name\":\"content_moderation\"}\n', b'0', NULL, '{\"seed\": \"-1\", \"steps\": \"20\", \"sampler\": \"Euler a\"}', NULL, NULL, '1', '2024-06-28 22:36:24', NULL, '2024-07-05 01:30:19', b'1', 1), (160, 1, '中国长城', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 1024, 1024, 20, NULL, NULL, b'1', 'http://test.cloud.iocoder.cn/205bd3cdfe44451def5877831db068fa799a3c429c8960f73cfc322aaf68a581.png', NULL, NULL, NULL, '1', '2024-06-28 22:50:21', '1', '2024-07-29 23:04:49', b'0', 1), (162, 1, '中国旗袍', 'Midjourney', 0, 'midjourney', 1, 1, 10, NULL, NULL, b'0', NULL, '{\"model\": \"midjourney\", \"width\": 1, \"height\": 1, \"prompt\": \"中国旗袍\", \"version\": \"6.0\", \"base64Array\": []}', '1719625407392835', NULL, '1', '2024-06-29 09:43:26', '1', '2024-07-05 01:30:19', b'1', 1), (163, 1, '童话小屋', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 512, 512, 30, NULL, '403 - {\"id\":\"01e617a005af036be5429dbde97cd225\",\"message\":\"Your request was flagged by our content moderation system, as a result your request was denied and you were not charged.\",\"name\":\"content_moderation\"}\n', b'0', NULL, '{\"seed\": \"42\", \"scale\": \"7.5\", \"steps\": \"20\", \"sampler\": \"DDIM\", \"stylePreset\": \"3d-model\", \"clipGuidancePreset\": \"NONE\"}', NULL, NULL, '1', '2024-07-02 21:45:35', NULL, '2024-07-05 01:30:19', b'1', 1), (164, 1, 'Dog', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 512, 512, 20, NULL, NULL, b'0', 'http://test.cloud.iocoder.cn/4d7205820505d15af8ee196a645053a67be1bc92ac53d140e0211f8a85cc2159.png', '{\"seed\": \"42\", \"scale\": \"7.5\", \"steps\": \"20\", \"sampler\": \"DDIM\", \"stylePreset\": \"3d-model\", \"clipGuidancePreset\": \"NONE\"}', NULL, NULL, '1', '2024-07-02 21:53:19', NULL, '2024-07-05 01:30:19', b'0', 1), (165, 1, 'DOG', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 512, 512, 20, NULL, NULL, b'0', 'http://test.cloud.iocoder.cn/0643739244c444f754bf3caeca6b594f38b971e34d1ec3616ee9f227b87854f7.png', '{\"seed\": \"42\", \"scale\": \"7.5\", \"steps\": \"20\", \"sampler\": \"DDIM\", \"stylePreset\": \"3d-model\", \"clipGuidancePreset\": \"NONE\"}', NULL, NULL, '1', '2024-07-03 13:46:00', NULL, '2024-07-05 01:30:19', b'1', 1), (168, 1, '可爱的小喵星人', 'OpenAI', 0, 'dall-e-3', 1024, 1024, 30, NULL, '401 - {\"message\":\"余额不足 (request id: 6686ba868ae546fba0dde505bc91f9be)\",\"type\":\"chat_api_error\"}', b'0', NULL, '{\"style\": \"vivid\"}', NULL, NULL, '1', '2024-07-04 23:06:44', NULL, '2024-07-05 01:30:19', b'1', 1), (171, 1, 'cat', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 512, 512, 30, NULL, NULL, b'0', NULL, '{\"seed\": \"42\", \"scale\": \"7.5\", \"steps\": \"20\", \"sampler\": \"DDIM\", \"stylePreset\": \"3d-model\", \"clipGuidancePreset\": \"NONE\"}', NULL, NULL, '1', '2024-07-05 08:55:39', NULL, '2024-07-05 01:30:19', b'1', 1), (172, 1, 'cat', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 512, 512, 20, NULL, NULL, b'0', 'http://test.cloud.iocoder.cn/151cd3894be10a1412e1c987d94e4a22f82f29d8e957aec3ce5a43b5c7edf1c0.png', '{\"seed\": \"42\", \"scale\": \"7.5\", \"steps\": \"20\", \"sampler\": \"DDIM\", \"stylePreset\": \"3d-model\", \"clipGuidancePreset\": \"NONE\"}', NULL, NULL, '1', '2024-07-05 08:56:51', NULL, '2024-07-05 01:30:19', b'0', 1), (173, 1, 'Chinese Cheongsam', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 512, 512, 20, '2024-07-09 09:21:15', NULL, b'0', 'http://test.cloud.iocoder.cn/2d977b8551f98e29f51ca77f7cd360f20ae598f22390cfcd20ac4e33bb62e8fa.png', '{\"seed\": \"42\", \"scale\": \"7.5\", \"steps\": \"20\", \"sampler\": \"DDIM\", \"stylePreset\": \"3d-model\", \"clipGuidancePreset\": \"NONE\"}', NULL, NULL, '1', '2024-07-09 09:21:04', NULL, '2024-07-09 01:22:50', b'1', 1), (174, 1, 'Cartoon Avatar', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 512, 512, 20, '2024-07-09 09:23:02', NULL, b'0', 'http://test.cloud.iocoder.cn/253c7c5678527428bd6541a84c74250f73e814f67dcf50d1e78a3b89f4570783.png', '{\"seed\": \"42\", \"scale\": \"7.5\", \"steps\": \"20\", \"sampler\": \"DDIM\", \"stylePreset\": \"3d-model\", \"clipGuidancePreset\": \"NONE\"}', NULL, NULL, '1', '2024-07-09 09:22:55', NULL, '2024-07-09 09:23:02', b'0', 1), (175, 1, 'Mech Warrior', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 512, 512, 20, '2024-07-09 09:32:42', NULL, b'0', 'http://test.cloud.iocoder.cn/98e684cdb6dd1b7cf2aaa339c18804f087f1228488cbb2a33b669da6840ac3a6.png', '{\"seed\": \"42\", \"scale\": \"7.5\", \"steps\": \"20\", \"sampler\": \"DDIM\", \"stylePreset\": \"3d-model\", \"clipGuidancePreset\": \"NONE\"}', NULL, NULL, '1', '2024-07-09 09:32:36', NULL, '2024-07-09 09:32:42', b'0', 1), (176, 1, '中国旗袍', 'OpenAI', 0, 'dall-e-3', 1024, 1024, 30, '2024-07-09 20:58:53', '403 - {\"error\":{\"message\":\"user quota is not enough (request id: 20240709205850415016113iWBwnDbD)\",\"type\":\"new_api_error\",\"param\":\"\",\"code\":\"insufficient_user_quota\"}}', b'0', NULL, '{\"style\": \"vivid\"}', NULL, NULL, '1', '2024-07-09 20:58:49', NULL, '2024-07-09 13:31:01', b'1', 1), (177, 1, '中国旗袍', 'OpenAI', 0, 'dall-e-3', 1024, 1024, 30, '2024-07-09 21:00:30', '403 - {\"error\":{\"message\":\"user quota is not enough (request id: 20240709210028210666548schCBPTY)\",\"type\":\"new_api_error\",\"param\":\"\",\"code\":\"insufficient_user_quota\"}}', b'0', NULL, '{\"style\": \"vivid\"}', NULL, NULL, '1', '2024-07-09 21:00:26', NULL, '2024-07-09 13:31:10', b'1', 1), (180, 1, '中国旗袍', 'Midjourney', 0, 'midjourney', 3, 4, 10, NULL, NULL, b'0', NULL, '{\"model\": \"midjourney\", \"width\": 3, \"height\": 4, \"prompt\": \"中国旗袍\", \"version\": \"5.2\", \"referImageUrl\": \"http://test.cloud.iocoder.cn/cfbfd5b613da2a4936ccb23e928436a0774fff92ded96abfd23590092b905ee5.png\"}', '1720531569304050', NULL, '1', '2024-07-09 21:26:05', '1', '2024-07-12 15:58:49', b'1', 1), (181, 1, '中国旗袍', 'Midjourney', 0, 'midjourney', 1, 1, 10, NULL, NULL, b'0', NULL, '{\"model\": \"midjourney\", \"width\": 1, \"height\": 1, \"prompt\": \"中国旗袍\", \"version\": \"6.0\", \"referImageUrl\": null}', '1720531838679205', NULL, '1', '2024-07-09 21:30:37', '1', '2024-07-12 15:58:52', b'1', 1), (182, 1, '313213', 'StableDiffusion', 0, 'stable-diffusion-v1-6', 512, 512, 20, '2024-07-09 21:31:16', NULL, b'0', 'http://test.cloud.iocoder.cn/6fa3cb6da61aa58180ffaa0ab0fd5ec72a15f56182b8bfe5fd90329a703d05d0.png', '{\"seed\": \"42\", \"scale\": \"7.5\", \"steps\": \"20\", \"sampler\": \"DDIM\", \"stylePreset\": \"3d-model\", \"clipGuidancePreset\": \"NONE\"}', NULL, NULL, '1', '2024-07-09 21:31:07', NULL, '2024-07-09 21:31:16', b'0', 1), (183, 1, '古装美女', 'TongYi', 0, 'wanx-v1', 512, 512, 20, '2024-07-11 21:04:41', NULL, b'1', 'http://test.cloud.iocoder.cn/2ef633461eb9d79c4d73b1e29be734aaacb4261b766fc8cd3115bf5f5a3ff4d8.png', '{}', NULL, NULL, '1', '2024-07-11 21:04:07', '1', '2025-03-03 21:25:08', b'1', 1), (184, 1, '童话小屋', 'ZhiPu', 0, 'cogview-3', 512, 512, 30, '2024-07-12 23:59:05', 'Cannot read the array length because \"data\" is null', b'0', NULL, '{}', NULL, NULL, '1', '2024-07-12 23:58:56', NULL, '2024-07-12 16:00:58', b'1', 1), (185, 1, '童话小屋', 'ZhiPu', 0, 'cogview-3', 512, 512, 30, '2024-07-13 00:01:36', 'Cannot read the array length because \"data\" is null', b'0', NULL, '{}', NULL, NULL, '1', '2024-07-13 00:01:00', NULL, '2024-07-12 16:03:14', b'1', 1), (186, 1, '童话小屋', 'ZhiPu', 0, 'cogview-3', 512, 512, 20, '2024-07-13 00:03:24', NULL, b'0', 'http://test.cloud.iocoder.cn/3e99eea008aa0cf40f283d6d5b373cf7c1aaccc3461d9273495d94aaf1ae4eb7.jpg', '{}', NULL, NULL, '1', '2024-07-13 00:03:12', NULL, '2024-07-13 00:03:24', b'0', 1), (187, 1, '中国旗袍', 'TongYi', 0, 'wanx-v1', 512, 512, 30, '2024-07-13 11:08:57', '{\"statusCode\":400,\"message\":\"Input data may contain inappropriate content.\",\"code\":\"DataInspectionFailed\",\"isJson\":true,\"requestId\":\"e7b9a905-4b7e-9a1e-bf09-2ff1da80c1ca\"}', b'0', NULL, '{}', NULL, NULL, '1', '2024-07-13 11:08:56', NULL, '2024-07-13 03:10:05', b'1', 1), (188, 1, '中国旗袍', 'ZhiPu', 0, 'cogview-3', 512, 512, 20, '2024-07-13 11:10:20', NULL, b'1', 'http://test.cloud.iocoder.cn/a29678c6feffc280180d11946ae2b0326abc4e815639034739f089564edddd52.jpg', '{}', NULL, NULL, '1', '2024-07-13 11:10:08', '1', '2024-07-29 23:04:44', b'0', 1), (189, 1, '童话小屋', 'TongYi', 0, 'wanx-v1', 512, 512, 20, '2024-07-13 11:11:07', NULL, b'1', 'http://test.cloud.iocoder.cn/2827f638e324aeb5e461fc479546962e832b2609e3a76271847c6de4c5387855.png', '{}', NULL, NULL, '1', '2024-07-13 11:10:34', '1', '2024-07-29 23:04:42', b'0', 1), (190, 1, '321321', 'TongYi', NULL, 'wanx-v1', 512, 512, 30, '2025-03-03 12:40:18', 'Cannot invoke \"org.springframework.ai.image.ImageGeneration.getOutput()\" because the return value of \"org.springframework.ai.image.ImageResponse.getResult()\" is null', b'0', NULL, '{}', NULL, NULL, '1', '2025-03-03 12:40:03', '1', '2025-03-03 12:40:42', b'1', 1), (191, 1, '小图片', 'ZhiPu', NULL, 'cogview-3', 512, 512, 30, '2025-03-03 12:40:40', '429 - {\"error\":{\"code\":\"1113\",\"message\":\"您的账户已欠费，请充值后重试。\"}}', b'0', NULL, '{}', NULL, NULL, '1', '2025-03-03 12:40:39', '1', '2025-03-03 20:25:30', b'1', 1), (192, 1, '测试', 'TongYi', 31, 'wanx-v1', 512, 512, 30, '2025-03-03 20:25:07', 'Cannot invoke \"org.springframework.ai.image.ImageGeneration.getOutput()\" because the return value of \"org.springframework.ai.image.ImageResponse.getResult()\" is null', b'0', NULL, '{}', NULL, NULL, '1', '2025-03-03 20:24:51', '1', '2025-03-03 20:25:27', b'1', 1), (193, 1, '测试', 'TongYi', 31, 'wanx-v1', 512, 512, 30, '2025-03-03 20:26:00', 'Cannot invoke \"org.springframework.ai.image.ImageGeneration.getOutput()\" because the return value of \"org.springframework.ai.image.ImageResponse.getResult()\" is null', b'0', NULL, '{}', NULL, NULL, '1', '2025-03-03 20:25:32', '1', '2025-03-03 20:33:21', b'1', 1), (194, 1, '喵星人', 'ZhiPu', 34, 'cogview-3', 512, 512, 20, '2025-03-03 20:33:42', NULL, b'0', 'http://test.cloud.iocoder.cn/79e6ca2f314d3ea275d6ce585514947111fa239a1a901e26b627edd524a0de18.jpg', '{}', NULL, NULL, '1', '2025-03-03 20:33:31', NULL, '2025-03-03 20:33:42', b'0', 1), (195, 1, '313', 'OpenAI', 35, 'dall-e-3', 1024, 1024, 30, '2025-03-03 20:58:24', '400 - {\"error\":{\"message\":\"Your request was rejected as a result of our safety system. Your prompt may contain text that is not allowed by our safety system.   (request id: B20250303205821518379138MVIDOoms)\",\"type\":\"new_api_error\",\"param\":\"\",\"code\":\"content_policy_violation\"}}', b'0', NULL, '{\"style\": \"vivid\"}', NULL, NULL, '1', '2025-03-03 20:58:21', '1', '2025-03-03 20:58:48', b'1', 1), (196, 1, 'Chinese Cheongsam', 'StableDiffusion', 37, 'stable-diffusion-v1-6', 512, 512, 30, '2025-03-03 21:32:19', '429 - {\"id\":\"504200efe8d69610748ca0a2528a66c0\",\"message\":\"Your organization does not have enough balance to request this action (need $0.008664285714324501, have $0.00019546 in active grants, $0 in balance).\",\"name\":\"insufficient_balance\"}\n', b'0', NULL, '{\"seed\": \"42\", \"scale\": \"7.5\", \"steps\": \"20\", \"sampler\": \"DDIM\", \"stylePreset\": \"3d-model\", \"clipGuidancePreset\": \"NONE\"}', NULL, NULL, '1', '2025-03-03 21:32:14', NULL, '2025-03-03 21:32:19', b'0', 1);
COMMIT;

-- ----------------------------
-- Table structure for ai_knowledge
-- ----------------------------
DROP TABLE IF EXISTS `ai_knowledge`;
CREATE TABLE `ai_knowledge`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '知识库名称',
  `description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '知识库描述',
  `embedding_model_id` bigint NOT NULL COMMENT '向量模型编号',
  `embedding_model` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '向量模型标识',
  `top_k` int NOT NULL COMMENT 'topK',
  `similarity_threshold` double NOT NULL COMMENT '相似度阈值',
  `status` tinyint NOT NULL COMMENT '是否启用',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI 知识库表';

-- ----------------------------
-- Records of ai_knowledge
-- ----------------------------
BEGIN;
INSERT INTO `ai_knowledge` (`id`, `name`, `description`, `embedding_model_id`, `embedding_model`, `top_k`, `similarity_threshold`, `status`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (2, '测试标题', '测试描述', 45, 'embo-01', 3, 0.5, 0, '1', '2025-03-02 18:23:35', '1', '2025-03-11 20:15:45', b'0', 1), (3, '测试 QdrantVectorStore', '测试 QdrantVectorStore', 45, 'minimax-text-01', 2, 0.5, 0, '1', '2025-03-05 12:57:33', '1', '2025-03-11 20:13:01', b'0', 1), (4, '测试 RedisVectorStore', NULL, 30, 'nomic-embed-text', 10, 0.1, 0, '1', '2025-03-08 17:51:34', '1', '2025-03-08 17:51:34', b'0', 1), (5, '测试 MilvusVectorStore', NULL, 30, 'nomic-embed-text', 10, 0.1, 0, '1', '2025-03-09 09:15:12', '1', '2025-03-09 09:15:12', b'0', 1);
COMMIT;

-- ----------------------------
-- Table structure for ai_knowledge_document
-- ----------------------------
DROP TABLE IF EXISTS `ai_knowledge_document`;
CREATE TABLE `ai_knowledge_document`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `knowledge_id` bigint NOT NULL COMMENT '知识库编号',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文档名称',
  `url` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '文件 URL',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '内容',
  `content_length` int NOT NULL COMMENT '字符数',
  `tokens` int NOT NULL COMMENT 'token 数量',
  `segment_max_tokens` int NOT NULL COMMENT '分片最大 Token 数',
  `retrieval_count` int NOT NULL DEFAULT 0 COMMENT '召回次数',
  `status` tinyint NOT NULL COMMENT '是否启用',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 25 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI 知识库文档表';

-- ----------------------------
-- Records of ai_knowledge_document
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for ai_knowledge_segment
-- ----------------------------
DROP TABLE IF EXISTS `ai_knowledge_segment`;
CREATE TABLE `ai_knowledge_segment`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `knowledge_id` bigint NOT NULL COMMENT '知识库编号',
  `document_id` bigint NOT NULL COMMENT '文档编号',
  `content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '分段内容',
  `content_length` int NOT NULL COMMENT '字符数',
  `vector_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '向量库的编号',
  `tokens` int NOT NULL COMMENT 'token 数量',
  `retrieval_count` int NOT NULL DEFAULT 0 COMMENT '召回次数',
  `status` tinyint NOT NULL COMMENT '是否启用',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 183 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI 知识库分段表';

-- ----------------------------
-- Records of ai_knowledge_segment
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for ai_mind_map
-- ----------------------------
DROP TABLE IF EXISTS `ai_mind_map`;
CREATE TABLE `ai_mind_map`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `user_id` bigint NOT NULL COMMENT '用户编号',
  `prompt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '生成内容提示',
  `generated_content` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '生成的思维导图内容',
  `platform` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '平台',
  `model_id` bigint NOT NULL COMMENT '模型编号',
  `model` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模型',
  `error_message` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '错误信息',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI 思维导图表';

-- ----------------------------
-- Records of ai_mind_map
-- ----------------------------
BEGIN;
INSERT INTO `ai_mind_map` (`id`, `user_id`, `prompt`, `generated_content`, `platform`, `model_id`, `model`, `error_message`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (1, 1, '32132312', NULL, 'OpenAI', 0, 'gpt-3.5-turbo', '403 Forbidden from POST https://api.holdai.top/v1/chat/completions', '1', '2024-07-29 21:43:30', NULL, '2024-08-10 09:27:48', b'1', 1), (2, 1, 'vue 技术栈！', '# Vue 技术栈\n## 核心框架\n### Vue.js\n### Vue Router\n### Vuex\n## 构建工具\n### Webpack\n### Vite\n## UI 框架\n### Element UI\n### Vuetify\n### Ant Design Vue\n## 状态管理\n### Pinia\n### Vuex\n## 测试工具\n### Vue Test Utils\n### Jest\n## 服务器端渲染\n### Nuxt.js\n## 静态站点生成\n### VuePress\n### VitePress', 'DeepSeek', 0, 'deepseek-chat', NULL, '1', '2024-07-29 21:48:11', NULL, '2024-07-29 21:48:18', b'0', 1), (3, 1, '生成一个 Vue 核心关键点', '# Vue 核心关键点\n## 数据绑定\n### 单向数据绑定\n### 双向数据绑定\n## 组件系统\n### 组件定义\n### 组件通信\n#### 父子组件通信\n#### 非父子组件通信\n## 生命周期钩子\n### 创建阶段\n### 挂载阶段\n### 更新阶段\n### 销毁阶段\n## 指令\n### v-bind\n### v-model\n### v-on\n### v-for\n### v-if\n## 计算属性和侦听器\n### 计算属性\n### 侦听器\n## 插槽\n### 默认插槽\n### 具名插槽\n### 作用域插槽\n## 路由\n### Vue Router\n### 路由配置\n### 路由导航\n## 状态管理\n### Vuex\n### 状态\n###  mutations\n###  actions\n###  getters', 'DeepSeek', 0, 'deepseek-chat', NULL, '1', '2024-07-29 21:56:45', NULL, '2024-07-29 21:56:56', b'0', 1);
COMMIT;

-- ----------------------------
-- Table structure for ai_model
-- ----------------------------
DROP TABLE IF EXISTS `ai_model`;
CREATE TABLE `ai_model`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `key_id` bigint NOT NULL COMMENT 'API 秘钥编号',
  `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模型名字',
  `model` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模型标识',
  `platform` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模型平台',
  `type` tinyint NOT NULL COMMENT '模型类型',
  `sort` int NOT NULL COMMENT '排序',
  `status` tinyint NOT NULL COMMENT '状态',
  `temperature` double NULL DEFAULT NULL COMMENT '温度参数',
  `max_tokens` int NULL DEFAULT NULL COMMENT '单条回复的最大 Token 数量',
  `max_contexts` int NULL DEFAULT NULL COMMENT '上下文的最大 Message 数量',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 56 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI 模型表';

-- ----------------------------
-- Records of ai_model
-- ----------------------------
BEGIN;
INSERT INTO `ai_model` (`id`, `key_id`, `name`, `model`, `platform`, `type`, `sort`, `status`, `temperature`, `max_tokens`, `max_contexts`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (9, 4, 'ernie-tiny-8k', 'ernie-tiny-8k', 'YiYan', 1, 100, 0, NULL, NULL, NULL, '', '2024-05-10 01:38:04', '1', '2025-03-03 01:26:22', b'0', 1), (10, 4, 'ERNIE 4.0', 'ERNIE 4.0', 'YiYan', 1, 100, 0, 1, 4096, 10, '', '2024-05-10 01:38:04', '1', '2025-03-03 01:26:22', b'1', 1), (11, 1, 'gpt-3.5-turbo', 'gpt-3.5-turbo', 'OpenAI', 1, 0, 0, 1, 4096, 20, '1', '2024-05-11 17:57:56', '1', '2025-03-03 01:26:22', b'0', 1), (12, 3, 'llama3', 'llama3', 'Ollama', 1, 1, 0, 1, 4096, 10, '1', '2024-05-17 23:16:38', '1', '2025-03-03 01:26:22', b'0', 1), (13, 5, '星火大模型3.5', 'generalv3.5', 'XingHuo', 1, 5, 0, NULL, NULL, NULL, '1', '2024-05-18 10:10:21', '1', '2025-03-03 01:26:22', b'0', 1), (14, 6, 'qwen-72b-chat', 'qwen-72b-chat', 'TongYi', 1, 6, 0, 1, 2000, 20, '1', '2024-05-18 10:33:47', '1', '2025-03-03 01:26:22', b'0', 1), (15, 6, 'Qwen-7B', 'Qwen-7B', 'TongYi', 1, 1000, 0, 1, 4096, 20, '1', '2024-06-01 20:05:14', '1', '2025-03-03 01:26:22', b'0', 1), (16, 4, 'ernie_speed', 'ernie_speed', 'YiYan', 1, 2000, 0, 1, 4096, 10, '1', '2024-06-02 09:00:21', '1', '2025-03-03 01:26:22', b'0', 1), (17, 11, 'deepseek-chat', 'deepseek-chat', 'DeepSeek', 1, 300, 0, 0.75, 4096, 20, '1', '2024-07-06 12:06:47', '1', '2025-03-03 01:26:22', b'0', 1), (18, 11, 'deepseek-reasoner', 'deepseek-reasoner', 'DeepSeek', 1, 301, 0, 1, 4096, 20, '1', '2024-07-06 12:07:25', '1', '2025-03-03 01:26:22', b'0', 1), (19, 12, 'GLM-4', 'GLM-4', 'ZhiPu', 1, 400, 0, 0.75, 2000, 20, '1', '2024-07-06 18:01:45', '1', '2025-03-03 01:26:22', b'0', 1), (20, 13, '【微软】gpt-35-turbo', 'gpt-35-turbo', 'AzureOpenAI', 1, 2000, 0, 1, 4096, 20, '1', '2024-08-10 14:10:07', '1', '2025-03-03 01:26:22', b'0', 1), (21, 8, 'qwen:4b', 'qwen:4b', 'Ollama', 1, 9999, 0, NULL, NULL, NULL, '1', '2025-02-23 19:05:00', '1', '2025-03-03 01:26:22', b'0', 1), (22, 14, 'doubao-1-5-lite-32k', 'doubao-1-5-lite-32k-250115', 'DouBao', 1, 350, 0, NULL, NULL, NULL, '1', '2025-02-23 19:53:24', '1', '2025-03-03 01:26:22', b'0', 1), (23, 14, 'deepseek-r1-zijie', 'deepseek-r1-250120', 'DouBao', 1, 351, 0, NULL, NULL, NULL, '1', '2025-02-23 19:58:32', '1', '2025-03-03 01:26:22', b'0', 1), (24, 15, 'hunyuan-turbo', 'hunyuan-turbo', 'HunYuan', 1, 380, 0, NULL, NULL, NULL, '1', '2025-02-23 21:00:37', '1', '2025-03-03 01:26:22', b'0', 1), (25, 16, 'deepseek-r1-tengxun', 'deepseek-r1', 'HunYuan', 1, 381, 0, NULL, NULL, NULL, '1', '2025-02-23 21:01:20', '1', '2025-03-03 01:26:22', b'0', 1), (26, 8, 'deepseek-r1-local', 'deepseek-r1', 'Ollama', 1, 10000, 0, NULL, NULL, NULL, '1', '2025-02-24 09:22:32', '1', '2025-03-03 01:26:22', b'0', 1), (27, 6, 'deepseek-r1-aliyun', 'deepseek-r1', 'TongYi', 1, 7, 0, NULL, NULL, NULL, '1', '2025-02-24 10:05:51', '1', '2025-03-03 01:26:22', b'0', 1), (28, 6, 'deepseek-v3-aliyun', 'deepseek-v3', 'TongYi', 1, 8, 0, NULL, NULL, NULL, '1', '2025-02-24 10:24:29', '1', '2025-03-03 01:26:22', b'0', 1), (29, 18, 'deepseek-r1-siliconflow', 'deepseek-ai/DeepSeek-R1', 'SiliconFlow', 1, 12000, 0, NULL, NULL, NULL, '1', '2025-02-24 20:35:18', '1', '2025-03-03 01:26:22', b'0', 1), (30, 8, 'nomic-embed-text', 'nomic-embed-text', 'Ollama', 5, 20000, 0, NULL, NULL, NULL, '1', '2025-02-24 20:35:18', '1', '2025-03-03 01:51:28', b'0', 1), (31, 6, 'wanx-v1', 'wanx-v1', 'TongYi', 2, 3005, 0, NULL, NULL, NULL, '1', '2025-03-03 20:08:49', '1', '2025-03-03 21:36:24', b'0', 1), (32, 6, 'wanx-sketch-to-image-v1', 'wanx-sketch-to-image-v1', 'TongYi', 2, 3005, 0, NULL, NULL, NULL, '1', '2025-03-03 20:09:05', '1', '2025-03-03 21:36:20', b'0', 1), (33, 4, 'sd_xl', 'sd_xl', 'YiYan', 2, 3004, 0, NULL, NULL, NULL, '1', '2025-03-03 20:30:49', '1', '2025-03-03 21:36:14', b'0', 1), (34, 12, 'cogview-3', 'cogview-3', 'ZhiPu', 2, 3003, 0, NULL, NULL, NULL, '1', '2025-03-03 20:31:40', '1', '2025-03-03 21:36:07', b'0', 1), (35, 1, 'dall-e-3', 'dall-e-3', 'OpenAI', 2, 3002, 0, NULL, NULL, NULL, '1', '2025-03-03 20:56:55', '1', '2025-03-03 21:36:02', b'0', 1), (36, 1, 'dall-e-2', 'dall-e-2', 'OpenAI', 2, 3002, 0, NULL, NULL, NULL, '1', '2025-03-03 20:57:57', '1', '2025-03-03 21:35:58', b'0', 1), (37, 7, 'stable-diffusion-v1-6', 'stable-diffusion-v1-6', 'StableDiffusion', 2, 3001, 0, NULL, NULL, NULL, '1', '2025-03-03 21:30:59', '1', '2025-03-03 21:35:48', b'0', 1), (38, 10, 'midjourney', 'midjourney', 'Midjourney', 2, 3000, 0, NULL, NULL, NULL, '1', '2025-03-03 21:35:01', '1', '2025-03-03 21:35:01', b'0', 1), (39, 10, 'niji', 'niji', 'Midjourney', 2, 3000, 0, NULL, NULL, NULL, '1', '2025-03-03 21:35:23', '1', '2025-03-03 21:35:23', b'0', 1), (40, 8, 'mxbai-embed-large', 'mxbai-embed-large', 'Ollama', 5, 20000, 0, NULL, NULL, NULL, '1', '2025-03-10 09:10:33', '1', '2025-03-10 09:10:33', b'0', 1), (41, 6, 'text-embedding-v3', 'text-embedding-v3', 'TongYi', 5, 20000, 0, NULL, NULL, NULL, '1', '2025-03-10 22:04:30', '1', '2025-03-10 22:04:30', b'0', 1), (42, 12, 'embedding-3', 'embedding-3', 'ZhiPu', 5, 20000, 0, NULL, NULL, NULL, '1', '2025-03-11 07:48:21', '1', '2025-03-11 07:48:21', b'0', 1), (43, 1, 'text-embedding-ada-002	', 'text-embedding-ada-002	', 'OpenAI', 5, 20000, 0, NULL, NULL, NULL, '1', '2025-03-11 09:38:09', '1', '2025-03-11 09:40:54', b'0', 1), (44, 19, 'abab6.5g-chat', 'abab6.5g-chat', 'MiniMax', 1, 500, 0, NULL, NULL, NULL, '1', '2025-03-11 20:08:03', '1', '2025-03-11 20:08:15', b'0', 1), (45, 19, 'embo-01', 'embo-01', 'MiniMax', 5, 20000, 0, NULL, NULL, NULL, '1', '2025-03-11 20:08:47', '1', '2025-03-11 20:15:17', b'0', 1), (46, 20, 'moonshot-v1-8k', 'moonshot-v1-8k', 'Moonshot', 1, 600, 0, NULL, NULL, NULL, '1', '2025-03-11 20:10:24', '1', '2025-03-11 20:10:24', b'0', 1), (47, 21, 'FastGPT', 'FastGPT', 'OpenAI', 1, 8888, 0, NULL, NULL, NULL, '1', '2025-03-12 13:51:46', '1', '2025-03-12 13:51:46', b'0', 1), (48, 22, 'Dify', 'Dify', 'OpenAI', 1, 8888, 0, NULL, NULL, NULL, '1', '2025-03-12 21:27:34', '1', '2025-03-12 21:27:34', b'0', 1), (49, 1, 'gpt-4o-mini', 'gpt-4o-mini', 'OpenAI', 1, 0, 0, 1, 4096, 20, '1', '2025-03-13 12:46:02', '1', '2025-03-13 12:47:02', b'0', 1), (50, 8, 'qwen2.5', 'qwen2.5', 'Ollama', 1, 9999, 0, NULL, NULL, NULL, '1', '2025-03-13 15:05:15', '1', '2025-03-13 20:38:28', b'0', 1), (51, 19, 'MiniMax-Text-01', 'MiniMax-Text-01', 'MiniMax', 1, 500, 0, NULL, NULL, NULL, '1', '2025-03-13 20:37:48', '1', '2025-03-13 20:38:06', b'0', 1), (52, 18, 'deepseek-v3-siliconflow-vip', 'Pro/deepseek-ai/DeepSeek-V3', 'SiliconFlow', 1, 12000, 0, NULL, NULL, NULL, '1', '2025-03-13 21:06:01', '1', '2025-03-13 21:06:01', b'0', 1), (53, 20, 'moonshot-v1-128k', 'moonshot-v1-128k', 'Moonshot', 1, 600, 0, NULL, NULL, NULL, '1', '2025-03-13 21:15:16', '1', '2025-03-13 21:15:16', b'0', 1), (54, 6, 'qwen-max-latest', 'qwen-max-latest', 'TongYi', 1, 6, 0, NULL, NULL, NULL, '1', '2025-03-13 21:32:27', '1', '2025-03-13 21:34:12', b'0', 1), (55, 5, '4.0Ultra', '4.0Ultra', 'XingHuo', 1, 5, 0, NULL, NULL, NULL, '1', '2025-03-14 11:24:14', '1', '2025-03-14 11:24:14', b'0', 1);
COMMIT;

-- ----------------------------
-- Table structure for ai_music
-- ----------------------------
DROP TABLE IF EXISTS `ai_music`;
CREATE TABLE `ai_music`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `user_id` bigint NOT NULL COMMENT '用户编号',
  `title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '音乐名称',
  `lyric` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '歌词',
  `image_url` varchar(600) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '图片地址',
  `audio_url` varchar(600) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '音频地址',
  `video_url` varchar(600) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '视频地址',
  `status` tinyint NOT NULL COMMENT '音乐状态',
  `description` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '描述词',
  `prompt` varchar(2048) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '提示词',
  `platform` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模型平台',
  `model_id` bigint NOT NULL COMMENT '模型编号',
  `model` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模型',
  `generate_mode` tinyint NOT NULL COMMENT '生成模式',
  `tags` varchar(600) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '音乐风格标签',
  `duration` double NULL DEFAULT NULL COMMENT '音乐时长',
  `public_status` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否发布',
  `task_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '任务编号',
  `error_message` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '错误信息',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 37 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI 音乐表';

-- ----------------------------
-- Records of ai_music
-- ----------------------------
BEGIN;
INSERT INTO `ai_music` (`id`, `user_id`, `title`, `lyric`, `image_url`, `audio_url`, `video_url`, `status`, `description`, `prompt`, `platform`, `model_id`, `model`, `generate_mode`, `tags`, `duration`, `public_status`, `task_id`, `error_message`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (1, 1, '幸福的旋律', '[Verse]\n阳光撒满了街道\n梦想在心中起跑\n[Verse 2]\n快乐随着风在笑\n青春在时光里跳\n[Chorus]\n哼着熟悉的歌谣\n幸福就在我怀抱\n奔向未来的征兆\n一起创造美好\n[Verse 3]\n花开在晨曦微笑\n心跳伴随音符跳\n[Bridge]\n让烦恼都退烧\n世界只剩心跳\n[Chorus]\n哼着熟悉的歌谣\n幸福就在我怀抱\n奔向未来的征兆\n一起创造美好', 'https://cdn1.suno.ai/image_73032eee-470e-46ff-a9bd-abb3e67b2934.png', 'http://test.cloud.iocoder.cn/12f3702f71bf3d1e7eadbc0d611afca58868b783fe9c8b30bf913b4aa74e3af1.mp3', 'https://cdn1.suno.ai/73032eee-470e-46ff-a9bd-abb3e67b2934.mp4', 20, '来一首快乐的歌曲', '[Verse]\n阳光撒满了街道\n梦想在心中起跑\n\n[Verse 2]\n快乐随着风在笑\n青春在时光里跳\n\n[Chorus]\n哼着熟悉的歌谣\n幸福就在我怀抱\n奔向未来的征兆\n一起创造美好\n\n[Verse 3]\n花开在晨曦微笑\n心跳伴随音符跳\n\n[Bridge]\n让烦恼都退烧\n世界只剩心跳\n\n[Chorus]\n哼着熟悉的歌谣\n幸福就在我怀抱\n奔向未来的征兆\n一起创造美好', 'Suno', 0, 'chirp-v3.5', 2, '[\"pop\"]', 145.96, b'0', '73032eee-470e-46ff-a9bd-abb3e67b2934', NULL, '1', '2024-06-27 21:08:42', '1', '2024-07-05 01:30:16', b'0', 1), (2, 1, '幸福的旋律', '[Verse]\n阳光撒满了街道\n梦想在心中起跑\n[Verse 2]\n快乐随着风在笑\n青春在时光里跳\n[Chorus]\n哼着熟悉的歌谣\n幸福就在我怀抱\n奔向未来的征兆\n一起创造美好\n[Verse 3]\n花开在晨曦微笑\n心跳伴随音符跳\n[Bridge]\n让烦恼都退烧\n世界只剩心跳\n[Chorus]\n哼着熟悉的歌谣\n幸福就在我怀抱\n奔向未来的征兆\n一起创造美好', 'http://test.cloud.iocoder.cn/e8e50a3fd176756069c7cd2117d32b3eddec58c2439d1e8faf8f08d23a7fd992.png', 'https://cdn1.suno.ai/727a5f9b-102d-438a-909a-13f31c433dbb.mp3', 'http://test.cloud.iocoder.cn/bb48fe2b19211d80f3522b2528b12dad6f72a95c674cff4a6b8c0396ed954a4b.mp4', 20, '来一首快乐的歌曲', '[Verse]\n阳光撒满了街道\n梦想在心中起跑\n\n[Verse 2]\n快乐随着风在笑\n青春在时光里跳\n\n[Chorus]\n哼着熟悉的歌谣\n幸福就在我怀抱\n奔向未来的征兆\n一起创造美好\n\n[Verse 3]\n花开在晨曦微笑\n心跳伴随音符跳\n\n[Bridge]\n让烦恼都退烧\n世界只剩心跳\n\n[Chorus]\n哼着熟悉的歌谣\n幸福就在我怀抱\n奔向未来的征兆\n一起创造美好', 'Suno', 0, 'chirp-v3.5', 2, '[\"pop\"]', 121.48, b'0', '727a5f9b-102d-438a-909a-13f31c433dbb', NULL, '1', '2024-06-27 21:08:42', '1', '2024-07-05 01:30:16', b'0', 1), (3, 1, '快乐的时光', '[Verse]\n阳光洒在天空下\n笑脸藏不住啊\n[Verse 2]\n伙伴们聚在一起\n欢笑声不停歇\n[Chorus]\n快乐就在眼前\n一起尽情欢笑\n跳舞不停的旋转\n快乐围绕着我们\n[Verse 3]\n时间在快乐中飞\n烦恼都忘掉了\n[Bridge]\n闭上眼用心感觉\n幸福在心中荡漾\n[Chorus]\n快乐就在眼前\n一起尽情欢笑\n跳舞不停的旋转\n快乐围绕着我们', 'https://cdn1.suno.ai/image_c300a71d-237d-4d82-a884-00ccab42f10e.png', 'https://cdn1.suno.ai/c300a71d-237d-4d82-a884-00ccab42f10e.mp3', 'https://cdn1.suno.ai/c300a71d-237d-4d82-a884-00ccab42f10e.mp4', 20, '来一首快乐的歌曲', '[Verse]\n阳光洒在天空下\n笑脸藏不住啊\n\n[Verse 2]\n伙伴们聚在一起\n欢笑声不停歇\n\n[Chorus]\n快乐就在眼前\n一起尽情欢笑\n跳舞不停的旋转\n快乐围绕着我们\n\n[Verse 3]\n时间在快乐中飞\n烦恼都忘掉了\n\n[Bridge]\n闭上眼用心感觉\n幸福在心中荡漾\n\n[Chorus]\n快乐就在眼前\n一起尽情欢笑\n跳舞不停的旋转\n快乐围绕着我们', 'Suno', 0, 'chirp-v3.5', 2, '[\"pop\"]', NULL, b'0', 'c300a71d-237d-4d82-a884-00ccab42f10e', NULL, '1', '2024-06-27 21:12:14', '1', '2024-07-05 01:30:16', b'0', 1), (4, 1, '快乐的时光', '[Verse]\n阳光洒在天空下\n笑脸藏不住啊\n[Verse 2]\n伙伴们聚在一起\n欢笑声不停歇\n[Chorus]\n快乐就在眼前\n一起尽情欢笑\n跳舞不停的旋转\n快乐围绕着我们\n[Verse 3]\n时间在快乐中飞\n烦恼都忘掉了\n[Bridge]\n闭上眼用心感觉\n幸福在心中荡漾\n[Chorus]\n快乐就在眼前\n一起尽情欢笑\n跳舞不停的旋转\n快乐围绕着我们', 'https://cdn1.suno.ai/image_bc9ed3f8-8666-4af4-99a0-8ffd4c78db89.png', 'https://cdn1.suno.ai/bc9ed3f8-8666-4af4-99a0-8ffd4c78db89.mp3', 'https://cdn1.suno.ai/bc9ed3f8-8666-4af4-99a0-8ffd4c78db89.mp4', 20, '来一首快乐的歌曲', '[Verse]\n阳光洒在天空下\n笑脸藏不住啊\n\n[Verse 2]\n伙伴们聚在一起\n欢笑声不停歇\n\n[Chorus]\n快乐就在眼前\n一起尽情欢笑\n跳舞不停的旋转\n快乐围绕着我们\n\n[Verse 3]\n时间在快乐中飞\n烦恼都忘掉了\n\n[Bridge]\n闭上眼用心感觉\n幸福在心中荡漾\n\n[Chorus]\n快乐就在眼前\n一起尽情欢笑\n跳舞不停的旋转\n快乐围绕着我们', 'Suno', 0, 'chirp-v3.5', 2, '[\"pop\", \"good\"]', NULL, b'1', 'bc9ed3f8-8666-4af4-99a0-8ffd4c78db89', NULL, '1', '2024-06-27 21:12:14', '1', '2024-07-05 01:30:16', b'0', 1), (33, 1, 'Happy Song', '创作一首带有轻松吉他旋律的流行歌曲，[verse] 描述夏日海滩的宁静，[chorus] 节奏加快，表达对自由的向往。', 'https://cdn1.suno.ai/image_57395779-d801-4b46-b502-11531268bf0c.png', 'https://cdn1.suno.ai/None.mp3', '', 30, NULL, NULL, 'Suno', 0, 'chirp-v3', 2, '[\"Happy\"]', NULL, b'0', '57395779-d801-4b46-b502-11531268bf0c', NULL, '1', '2024-07-04 23:26:12', '1', '2024-07-05 01:30:16', b'0', 1), (34, 1, 'Happy Song', '创作一首带有轻松吉他旋律的流行歌曲，[verse] 描述夏日海滩的宁静，[chorus] 节奏加快，表达对自由的向往。', 'https://cdn1.suno.ai/image_c0d6e94b-3388-44be-9591-9a5704de106a.png', '', '', 10, NULL, NULL, 'Suno', 0, 'chirp-v3', 2, '[\"Happy\"]', NULL, b'0', 'c0d6e94b-3388-44be-9591-9a5704de106a', NULL, '1', '2024-07-04 23:26:12', '1', '2024-07-05 01:30:16', b'0', 1), (35, 1, 'Sunshine in My Soul', '[Verse]\nSunny days no cloud in sight\nEvery step feels so light\nLaughter echoes all around\nFeet moving to the sound\n[Verse 2]\nColors bright like neon lights\nHeart\'s glowing with delight\nJoy fills every single street\nDancing to a happy beat\n[Chorus]\nSunshine in my soul today\nWorries all just float away\nLiving in this moment bright\nEverything\'s gonna be alright', 'https://cdn1.suno.ai/image_ce3e7d91-bce0-4163-a66d-f58dd41a695e.png', 'https://cdn1.suno.ai/None.mp3', '', 30, 'happy music', NULL, 'Suno', 0, 'chirp-v3', 1, '[\"pop feel-good\"]', NULL, b'0', 'ce3e7d91-bce0-4163-a66d-f58dd41a695e', NULL, '1', '2024-07-04 23:26:20', '1', '2024-07-05 01:30:16', b'0', 1), (36, 1, 'Sunshine in My Soul', '[Verse]\nSunny days no cloud in sight\nEvery step feels so light\nLaughter echoes all around\nFeet moving to the sound\n[Verse 2]\nColors bright like neon lights\nHeart\'s glowing with delight\nJoy fills every single street\nDancing to a happy beat\n[Chorus]\nSunshine in my soul today\nWorries all just float away\nLiving in this moment bright\nEverything\'s gonna be alright', 'https://cdn1.suno.ai/image_57e6d837-96c0-4b4f-b022-20c776d7ef4b.png', '', '', 10, 'happy music', NULL, 'Suno', 0, 'chirp-v3', 1, '[\"pop feel-good\"]', NULL, b'0', '57e6d837-96c0-4b4f-b022-20c776d7ef4b', NULL, '1', '2024-07-04 23:26:20', '1', '2024-07-05 01:30:16', b'0', 1);
COMMIT;

-- ----------------------------
-- Table structure for ai_tool
-- ----------------------------
DROP TABLE IF EXISTS `ai_tool`;
CREATE TABLE `ai_tool`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '工具编号',
  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '工具名称',
  `description` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '工具描述',
  `status` tinyint NOT NULL COMMENT '状态',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI 工具表';

-- ----------------------------
-- Records of ai_tool
-- ----------------------------
BEGIN;
INSERT INTO `ai_tool` (`id`, `name`, `description`, `status`, `creator`, `create_time`, `updater`, `update_time`, `deleted`, `tenant_id`) VALUES (17, 'directory_list', '列出指定目录的文件列表', 0, '1', '2025-03-14 19:28:41', '1', '2025-03-14 19:28:41', b'0', 1), (18, 'weather_query', '查询指定城市的天气信息', 0, '1', '2025-03-14 19:28:59', '1', '2025-03-14 19:28:59', b'0', 1);
COMMIT;

-- ----------------------------
-- Table structure for ai_write
-- ----------------------------
DROP TABLE IF EXISTS `ai_write`;
CREATE TABLE `ai_write`  (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号',
  `user_id` bigint NOT NULL COMMENT '用户编号',
  `type` int NULL DEFAULT NULL COMMENT '写作类型',
  `platform` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '平台',
  `model_id` bigint NOT NULL COMMENT '模型编号',
  `model` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '模型',
  `prompt` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '生成内容提示',
  `generated_content` varchar(5120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '生成的内容',
  `original_content` varchar(5120) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '原文',
  `length` tinyint NULL DEFAULT NULL COMMENT '长度提示词',
  `format` tinyint NULL DEFAULT NULL COMMENT '格式提示词',
  `tone` tinyint NULL DEFAULT NULL COMMENT '语气提示词',
  `language` tinyint NULL DEFAULT NULL COMMENT '语言提示词',
  `error_message` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '错误信息',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 226 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'AI 写作表';

-- ----------------------------
-- Records of ai_write
-- ----------------------------
BEGIN;
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
