Commit b058090a77d16054a947c7ade975da9d6d9d7b3a
1 parent
38a9c1a7
【更新】更新sql脚本
Showing
1 changed file
with
90 additions
and
69 deletions
yudao-module-ai/yudao-module-ai-biz/src/main/resources/chat.sql
| @@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
| 11 | Target Server Version : 80034 (8.0.34) | 11 | Target Server Version : 80034 (8.0.34) |
| 12 | File Encoding : 65001 | 12 | File Encoding : 65001 |
| 13 | 13 | ||
| 14 | - Date: 28/04/2024 11:50:47 | 14 | + Date: 08/05/2024 18:10:05 |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | SET NAMES utf8mb4; | 17 | SET NAMES utf8mb4; |
| @@ -24,24 +24,31 @@ DROP TABLE IF EXISTS `ai_chat_conversation`; | @@ -24,24 +24,31 @@ DROP TABLE IF EXISTS `ai_chat_conversation`; | ||
| 24 | CREATE TABLE `ai_chat_conversation` ( | 24 | CREATE TABLE `ai_chat_conversation` ( |
| 25 | `id` bigint NOT NULL AUTO_INCREMENT, | 25 | `id` bigint NOT NULL AUTO_INCREMENT, |
| 26 | `user_id` bigint DEFAULT NULL COMMENT '用户id', | 26 | `user_id` bigint DEFAULT NULL COMMENT '用户id', |
| 27 | - `chat_role_id` bigint DEFAULT NULL COMMENT '聊天角色', | ||
| 28 | - `chat_role_name` varchar(128) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '聊天角色名称', | 27 | + `role_id` bigint DEFAULT NULL COMMENT '聊天角色', |
| 29 | `title` varchar(256) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '标题', | 28 | `title` varchar(256) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '标题', |
| 30 | `type` varchar(16) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '对话类型', | 29 | `type` varchar(16) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '对话类型', |
| 31 | `chat_count` int DEFAULT NULL COMMENT '聊天次数', | 30 | `chat_count` int DEFAULT NULL COMMENT '聊天次数', |
| 31 | + `model_id` bigint DEFAULT NULL COMMENT '模型id', | ||
| 32 | + `model` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '模型', | ||
| 33 | + `pinned` blob COMMENT '是否置顶', | ||
| 34 | + `temperature` double DEFAULT NULL COMMENT '温度参数', | ||
| 35 | + `max_tokens` int DEFAULT NULL COMMENT '单条回复的最大 Token 数量', | ||
| 36 | + `max_contexts` int DEFAULT NULL COMMENT '上下文的最大 Message 数量', | ||
| 32 | `create_time` datetime DEFAULT NULL COMMENT '创建时间', | 37 | `create_time` datetime DEFAULT NULL COMMENT '创建时间', |
| 33 | `update_time` datetime DEFAULT NULL COMMENT '更新时间', | 38 | `update_time` datetime DEFAULT NULL COMMENT '更新时间', |
| 34 | `creator` bigint DEFAULT NULL COMMENT '创建用户', | 39 | `creator` bigint DEFAULT NULL COMMENT '创建用户', |
| 35 | `updater` bigint DEFAULT NULL COMMENT '更新用户', | 40 | `updater` bigint DEFAULT NULL COMMENT '更新用户', |
| 36 | `deleted` bit(1) DEFAULT b'0' COMMENT '删除', | 41 | `deleted` bit(1) DEFAULT b'0' COMMENT '删除', |
| 37 | PRIMARY KEY (`id`) | 42 | PRIMARY KEY (`id`) |
| 38 | -) ENGINE=InnoDB AUTO_INCREMENT=1781604279872581645 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin; | 43 | +) ENGINE=InnoDB AUTO_INCREMENT=1781604279872581650 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin; |
| 39 | 44 | ||
| 40 | -- ---------------------------- | 45 | -- ---------------------------- |
| 41 | -- Records of ai_chat_conversation | 46 | -- Records of ai_chat_conversation |
| 42 | -- ---------------------------- | 47 | -- ---------------------------- |
| 43 | BEGIN; | 48 | BEGIN; |
| 44 | -INSERT INTO `ai_chat_conversation` (`id`, `user_id`, `chat_role_id`, `chat_role_name`, `title`, `type`, `chat_count`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (1781604279872581644, 1, NULL, NULL, '中国好看吗?', 'userChat', 32, '2024-04-20 16:59:32', '2024-04-20 16:59:32', 1, 1, b'0'); | 49 | +INSERT INTO `ai_chat_conversation` (`id`, `user_id`, `role_id`, `title`, `type`, `chat_count`, `model_id`, `model`, `pinned`, `temperature`, `max_tokens`, `max_contexts`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (1781604279872581647, 1, NULL, '新增对话', NULL, NULL, 9, 'ERNIE-3.5-8K', 0x30, NULL, NULL, NULL, '2024-05-07 16:20:06', '2024-05-07 16:20:06', 1, 1, b'1'); |
| 50 | +INSERT INTO `ai_chat_conversation` (`id`, `user_id`, `role_id`, `title`, `type`, `chat_count`, `model_id`, `model`, `pinned`, `temperature`, `max_tokens`, `max_contexts`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (1781604279872581648, 1, 9, '新增对话', NULL, NULL, 9, 'ERNIE-3.5-8K', 0x30, NULL, NULL, NULL, '2024-05-07 16:20:35', '2024-05-07 16:20:35', 1, 1, b'0'); | ||
| 51 | +INSERT INTO `ai_chat_conversation` (`id`, `user_id`, `role_id`, `title`, `type`, `chat_count`, `model_id`, `model`, `pinned`, `temperature`, `max_tokens`, `max_contexts`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (1781604279872581649, 1, NULL, '新增对话', NULL, NULL, 9, 'ERNIE-3.5-8K', 0x30, NULL, NULL, NULL, '2024-05-07 16:22:37', '2024-05-07 16:22:37', 1, 1, b'0'); | ||
| 45 | COMMIT; | 52 | COMMIT; |
| 46 | 53 | ||
| 47 | -- ---------------------------- | 54 | -- ---------------------------- |
| @@ -50,83 +57,64 @@ COMMIT; | @@ -50,83 +57,64 @@ COMMIT; | ||
| 50 | DROP TABLE IF EXISTS `ai_chat_message`; | 57 | DROP TABLE IF EXISTS `ai_chat_message`; |
| 51 | CREATE TABLE `ai_chat_message` ( | 58 | CREATE TABLE `ai_chat_message` ( |
| 52 | `id` bigint NOT NULL AUTO_INCREMENT, | 59 | `id` bigint NOT NULL AUTO_INCREMENT, |
| 53 | - `chat_conversation_id` bigint DEFAULT NULL COMMENT '对话id', | 60 | + `conversation_id` bigint DEFAULT NULL COMMENT '对话id', |
| 54 | `user_id` bigint DEFAULT NULL COMMENT '用户id', | 61 | `user_id` bigint DEFAULT NULL COMMENT '用户id', |
| 55 | - `message` text COLLATE utf8mb4_0900_bin COMMENT '对话message', | ||
| 56 | - `message_type` varchar(16) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '对话类型system、user、assistant\n', | ||
| 57 | - `top_k` float DEFAULT NULL COMMENT '在生成消息时采用的Top-K采样大小', | ||
| 58 | - `top_p` float DEFAULT NULL COMMENT 'Top-P核采样方法的概率阈值', | ||
| 59 | - `temperature` float DEFAULT NULL COMMENT '用于调整生成回复的随机性和多样性程度', | 62 | + `role_id` bigint DEFAULT NULL COMMENT '角色id', |
| 63 | + `type` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '类型system、user、assistant\n', | ||
| 64 | + `model` varchar(32) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '模型', | ||
| 65 | + `model_id` bigint DEFAULT NULL COMMENT '模型id', | ||
| 66 | + `content` varchar(2048) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '内容', | ||
| 67 | + `tokens` int DEFAULT NULL COMMENT '消耗 Token 数量', | ||
| 68 | + `temperature` double DEFAULT NULL COMMENT '用于调整生成回复的随机性和多样性程度', | ||
| 69 | + `max_tokens` int DEFAULT NULL COMMENT '单条回复的最大 Token 数量', | ||
| 70 | + `max_contexts` int DEFAULT NULL COMMENT '上下文的最大 Message 数量', | ||
| 60 | `create_time` datetime DEFAULT NULL COMMENT '创建时间', | 71 | `create_time` datetime DEFAULT NULL COMMENT '创建时间', |
| 61 | `update_time` datetime DEFAULT NULL COMMENT '更新时间', | 72 | `update_time` datetime DEFAULT NULL COMMENT '更新时间', |
| 62 | `creator` bigint DEFAULT NULL COMMENT '创建用户', | 73 | `creator` bigint DEFAULT NULL COMMENT '创建用户', |
| 63 | `updater` bigint DEFAULT NULL COMMENT '更新用户', | 74 | `updater` bigint DEFAULT NULL COMMENT '更新用户', |
| 64 | `deleted` bit(1) DEFAULT b'0' COMMENT '删除', | 75 | `deleted` bit(1) DEFAULT b'0' COMMENT '删除', |
| 65 | PRIMARY KEY (`id`) USING BTREE | 76 | PRIMARY KEY (`id`) USING BTREE |
| 66 | -) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin; | 77 | +) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin; |
| 67 | 78 | ||
| 68 | -- ---------------------------- | 79 | -- ---------------------------- |
| 69 | -- Records of ai_chat_message | 80 | -- Records of ai_chat_message |
| 70 | -- ---------------------------- | 81 | -- ---------------------------- |
| 71 | BEGIN; | 82 | BEGIN; |
| 72 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (1, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-20 18:22:41', '2024-04-20 18:22:41', 1, 1, b'0'); | ||
| 73 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (2, 1781604279872581644, 1, '作为一个AI助手,我没有个人感受和偏好。但是,中国是一个拥有丰富历史、文化和自然景观的国家,有许多令人惊叹的地方,如长城、故宫、西湖、张家界、九寨沟等著名景点,吸引了无数国内外游客的喜爱。每个人对于\"好看\"的定义可能不同,但中国无疑有着独特的魅力和多样性。', 'system', NULL, NULL, NULL, '2024-04-20 18:22:44', '2024-04-20 18:22:44', 1, 1, b'0'); | ||
| 74 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (3, 1781604279872581644, 1, '苹果是什么颜色?', 'user', NULL, NULL, NULL, '2024-04-20 18:23:05', '2024-04-20 18:23:05', 1, 1, b'0'); | ||
| 75 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (4, 1781604279872581644, 1, '苹果的颜色可以根据品种的不同而有所差异。常见的苹果颜色有红色、黄色和青绿色。除了这些基本颜色,苹果还可能呈现出淡红色、深红色等不同的红色调。\n\n这些颜色只是影响苹果的外观,对苹果的口感和营养价值没有影响。苹果口感酸甜,营养丰富,深受人们喜爱。', 'system', NULL, NULL, NULL, '2024-04-20 18:23:11', '2024-04-20 18:23:11', NULL, NULL, b'0'); | ||
| 76 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (5, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-23 10:46:48', '2024-04-23 10:46:48', 1, 1, b'0'); | ||
| 77 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (6, 1781604279872581644, 1, '作为一个AI助手,我没有个人感受和偏好。但是,中国是一个拥有丰富历史、文化和自然景观的国家,有许多令人惊叹的地方,如长城、故宫、西湖、张家界、九寨沟等著名景点,吸引了无数国内外游客的喜爱。每个人对于\"好看\"的定义可能不同,但中国无疑有着独特的魅力和多样性。', 'system', NULL, NULL, NULL, '2024-04-23 10:46:52', '2024-04-23 10:46:52', 1, 1, b'0'); | ||
| 78 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (7, 1781604279872581644, 1, '苹果是什么颜色?', 'user', NULL, NULL, NULL, '2024-04-23 10:46:55', '2024-04-23 10:46:55', 1, 1, b'0'); | ||
| 79 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (8, 1781604279872581644, 1, '苹果的颜色因品种和成熟度的不同而异。常见的苹果颜色有红色、黄色和青绿色。除此之外,还有一些苹果品种可能呈现出淡红色、深红色等不同的红色调,或者带有条纹或斑点。总的来说,苹果的颜色非常多样化,但最常见的是红色、黄色和青绿色。', 'system', NULL, NULL, NULL, '2024-04-23 10:47:03', '2024-04-23 10:47:03', NULL, NULL, b'0'); | ||
| 80 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (9, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-23 13:49:16', '2024-04-23 13:49:16', 1, 1, b'0'); | ||
| 81 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (10, 1781604279872581644, 1, '作为一个AI助手,我没有个人感受和偏好。但是,中国是一个拥有丰富历史、文化和自然景观的国家,有许多令人惊叹的地方,如长城、故宫、西湖、张家界、九寨沟等著名景点,吸引了无数国内外游客的喜爱。每个人对于\"好看\"的定义可能不同,但中国无疑有着独特的魅力和多样性。', 'system', NULL, NULL, NULL, '2024-04-23 13:49:19', '2024-04-23 13:49:19', 1, 1, b'0'); | ||
| 82 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (11, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-25 17:55:39', '2024-04-25 17:55:39', 1, 1, b'0'); | ||
| 83 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (12, 1781604279872581644, 1, 'NoSuchBeanDefinitionException: No qualifying bean of type \'cn.iocoder.yudao.framework.ai.chatqianwen.QianWenChatClient\' available', 'system', NULL, NULL, NULL, '2024-04-25 17:55:39', '2024-04-25 17:55:39', 1, 1, b'0'); | ||
| 84 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (13, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-25 17:56:12', '2024-04-25 17:56:12', 1, 1, b'0'); | ||
| 85 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (14, 1781604279872581644, 1, 'NoSuchBeanDefinitionException: No qualifying bean of type \'cn.iocoder.yudao.framework.ai.chatqianwen.QianWenChatClient\' available', 'system', NULL, NULL, NULL, '2024-04-25 17:56:12', '2024-04-25 17:56:12', 1, 1, b'0'); | ||
| 86 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (15, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-25 17:56:24', '2024-04-25 17:56:24', 1, 1, b'0'); | ||
| 87 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (16, 1781604279872581644, 1, 'NoSuchBeanDefinitionException: No qualifying bean of type \'cn.iocoder.yudao.framework.ai.chatqianwen.QianWenChatClient\' available', 'system', NULL, NULL, NULL, '2024-04-25 17:56:24', '2024-04-25 17:56:24', 1, 1, b'0'); | ||
| 88 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (17, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-25 17:56:41', '2024-04-25 17:56:41', 1, 1, b'0'); | ||
| 89 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (18, 1781604279872581644, 1, 'NoSuchBeanDefinitionException: No qualifying bean of type \'cn.iocoder.yudao.framework.ai.chatqianwen.QianWenChatClient\' available', 'system', NULL, NULL, NULL, '2024-04-25 17:56:59', '2024-04-25 17:56:59', 1, 1, b'0'); | ||
| 90 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (19, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-25 17:58:15', '2024-04-25 17:58:15', 1, 1, b'0'); | ||
| 91 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (20, 1781604279872581644, 1, '作为一个AI助手,我没有个人感受和偏好。但是,中国是一个拥有丰富历史、文化和自然景观的国家,有许多令人惊叹的地方,如长城、故宫、西湖、张家界、九寨沟等著名景点,吸引了无数国内外游客的喜爱。每个人对于\"好看\"的定义可能不同,但中国无疑有着独特的魅力和多样性。', 'system', NULL, NULL, NULL, '2024-04-25 17:58:19', '2024-04-25 17:58:19', 1, 1, b'0'); | ||
| 92 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (21, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-26 18:27:13', '2024-04-26 18:27:13', 1, 1, b'0'); | ||
| 93 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (22, 1781604279872581644, 1, 'ClassCastException: class com.alibaba.dashscope.aigc.generation.models.QwenParam cannot be cast to class cn.iocoder.yudao.framework.ai.chatqianwen.api.QianWenChatCompletionRequest (com.alibaba.dashscope.aigc.generation.models.QwenParam and cn.iocoder.yudao.framework.ai.chatqianwen.api.QianWenChatCompletionRequest are in unnamed module of loader \'app\')', 'system', NULL, NULL, NULL, '2024-04-26 18:27:13', '2024-04-26 18:27:13', 1, 1, b'0'); | ||
| 94 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (23, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-26 18:28:12', '2024-04-26 18:28:12', 1, 1, b'0'); | ||
| 95 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (24, 1781604279872581644, 1, 'ClassCastException: class com.alibaba.dashscope.aigc.generation.models.QwenParam cannot be cast to class cn.iocoder.yudao.framework.ai.chatqianwen.api.QianWenChatCompletionRequest (com.alibaba.dashscope.aigc.generation.models.QwenParam and cn.iocoder.yudao.framework.ai.chatqianwen.api.QianWenChatCompletionRequest are in unnamed module of loader \'app\')', 'system', NULL, NULL, NULL, '2024-04-26 18:30:31', '2024-04-26 18:30:31', 1, 1, b'0'); | ||
| 96 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (25, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-27 09:39:56', '2024-04-27 09:39:56', 1, 1, b'0'); | ||
| 97 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (26, 1781604279872581644, 1, 'ClassCastException: class com.alibaba.dashscope.aigc.generation.models.QwenParam cannot be cast to class cn.iocoder.yudao.framework.ai.chatqianwen.api.QianWenChatCompletionRequest (com.alibaba.dashscope.aigc.generation.models.QwenParam and cn.iocoder.yudao.framework.ai.chatqianwen.api.QianWenChatCompletionRequest are in unnamed module of loader \'app\')', 'system', NULL, NULL, NULL, '2024-04-27 09:39:56', '2024-04-27 09:39:56', 1, 1, b'0'); | ||
| 98 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (27, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-27 09:41:02', '2024-04-27 09:41:02', 1, 1, b'0'); | ||
| 99 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (28, 1781604279872581644, 1, 'AiException: 没有找到apiKey!Can not find api-key.', 'system', NULL, NULL, NULL, '2024-04-27 09:41:02', '2024-04-27 09:41:02', 1, 1, b'0'); | ||
| 100 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (29, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-27 09:41:58', '2024-04-27 09:41:58', 1, 1, b'0'); | ||
| 101 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (30, 1781604279872581644, 1, 'AiException: 没有找到apiKey!Can not find api-key.', 'system', NULL, NULL, NULL, '2024-04-27 09:41:58', '2024-04-27 09:41:58', 1, 1, b'0'); | ||
| 102 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (31, 1781604279872581644, 1, '中国好看吗?', 'user', NULL, NULL, NULL, '2024-04-27 09:42:41', '2024-04-27 09:42:41', 1, 1, b'0'); | ||
| 103 | -INSERT INTO `ai_chat_message` (`id`, `chat_conversation_id`, `user_id`, `message`, `message_type`, `top_k`, `top_p`, `temperature`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (32, 1781604279872581644, 1, 'ApiException: {\"statusCode\":400,\"message\":\"parameter incremental_output only support stream call\",\"code\":\"InvalidParameter\",\"isJson\":true,\"requestId\":\"9edd3968-6eec-901d-8194-15f497ca0d3a\"}', 'system', NULL, NULL, NULL, '2024-04-27 09:42:42', '2024-04-27 09:42:42', 1, 1, b'0'); | 83 | +INSERT INTO `ai_chat_message` (`id`, `conversation_id`, `user_id`, `role_id`, `type`, `model`, `model_id`, `content`, `tokens`, `temperature`, `max_tokens`, `max_contexts`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (61, 1781604279872581649, 1, NULL, 'user', 'ERNIE-3.5-8K', 9, '苹果是什么颜色?', NULL, NULL, NULL, NULL, '2024-05-07 17:18:29', '2024-05-07 17:18:29', 1, 1, b'0'); |
| 84 | +INSERT INTO `ai_chat_message` (`id`, `conversation_id`, `user_id`, `role_id`, `type`, `model`, `model_id`, `content`, `tokens`, `temperature`, `max_tokens`, `max_contexts`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (62, 1781604279872581649, 1, NULL, 'system', 'ERNIE-3.5-8K', 9, '苹果是一种水果,其颜色可以因品种和成熟度而异。常见的苹果颜色包括:\n\n1. 红色:许多苹果品种,如红富士、红元帅等,在成熟时会呈现出鲜艳的红色。\n2. 绿色:一些苹果品种,如青苹果、青香蕉等,在成熟时保持绿色或带有绿色条纹。\n3. 黄色:金苹果、黄元帅等品种在成熟时呈黄色。\n\n此外,还有一些苹果品种在成熟时会呈现出不同的颜色组合,如红绿相间、红黄相间等。因此,苹果的颜色并不是单一的,而是根据品种和成熟度而有所不同。', 8, NULL, NULL, NULL, '2024-05-07 17:18:38', '2024-05-07 17:18:38', NULL, NULL, b'0'); | ||
| 85 | +INSERT INTO `ai_chat_message` (`id`, `conversation_id`, `user_id`, `role_id`, `type`, `model`, `model_id`, `content`, `tokens`, `temperature`, `max_tokens`, `max_contexts`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (63, 1781604279872581649, 1, NULL, 'user', 'ERNIE-3.5-8K', 9, '中国好看吗?', NULL, NULL, NULL, NULL, '2024-05-07 17:18:53', '2024-05-07 17:18:53', 1, 1, b'0'); | ||
| 86 | +INSERT INTO `ai_chat_message` (`id`, `conversation_id`, `user_id`, `role_id`, `type`, `model`, `model_id`, `content`, `tokens`, `temperature`, `max_tokens`, `max_contexts`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (64, 1781604279872581649, 1, NULL, 'system', 'ERNIE-3.5-8K', 9, '中国是一个拥有悠久历史、灿烂文化、广袤土地和多元民族的国家,自然景观和人文景观都非常丰富。从雄伟的长城、壮丽的黄山到神秘的西藏,从繁华的上海、历史悠久的北京到充满异域风情的云南,中国各地都有独特的魅力。\n\n此外,中国还拥有丰富多彩的非物质文化遗产,如京剧、川剧、皮影戏等传统艺术形式,以及中秋节、春节等传统节日。这些文化遗产反映了中国人民的智慧和创造力,也是中国文化的重要组成部分。\n\n因此,可以说中国非常美丽,值得人们去探索和发现它的魅力。无论是自然景观还是人文景观,中国都有着独特的魅力和吸引力。', 1, NULL, NULL, NULL, '2024-05-07 17:19:03', '2024-05-07 17:19:03', 1, 1, b'0'); | ||
| 104 | COMMIT; | 87 | COMMIT; |
| 105 | 88 | ||
| 106 | -- ---------------------------- | 89 | -- ---------------------------- |
| 107 | --- Table structure for ai_chat_modal | 90 | +-- Table structure for ai_chat_model |
| 108 | -- ---------------------------- | 91 | -- ---------------------------- |
| 109 | -DROP TABLE IF EXISTS `ai_chat_modal`; | ||
| 110 | -CREATE TABLE `ai_chat_modal` ( | 92 | +DROP TABLE IF EXISTS `ai_chat_model`; |
| 93 | +CREATE TABLE `ai_chat_model` ( | ||
| 111 | `id` bigint NOT NULL AUTO_INCREMENT, | 94 | `id` bigint NOT NULL AUTO_INCREMENT, |
| 112 | - `model_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '模型名字\n', | ||
| 113 | - `model_type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '模型类型(自己定义qianwen、yiyan、xinghuo、openai)\n', | ||
| 114 | - `modal_image` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '模型照片\n', | ||
| 115 | - `config` json DEFAULT NULL COMMENT 'Ai配置文件', | ||
| 116 | - `disable` tinyint DEFAULT NULL COMMENT '禁用 0、正常 1、禁用\n', | 95 | + `key_id` bigint DEFAULT NULL COMMENT 'API 秘钥编号', |
| 96 | + `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '模型名字\n', | ||
| 97 | + `model` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '模型类型(自己定义qianwen、yiyan、xinghuo、openai)\n', | ||
| 98 | + `platform` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '平台', | ||
| 99 | + `sort` int DEFAULT NULL COMMENT '排序', | ||
| 100 | + `status` tinyint DEFAULT NULL COMMENT '禁用 0、正常 1、禁用\n', | ||
| 101 | + `temperature` double DEFAULT NULL COMMENT '温度参数', | ||
| 102 | + `max_tokens` int DEFAULT NULL COMMENT '单条回复的最大 Token 数量', | ||
| 103 | + `max_contexts` int DEFAULT NULL COMMENT '上下文的最大 Message 数量', | ||
| 117 | `create_time` datetime DEFAULT NULL COMMENT '创建时间', | 104 | `create_time` datetime DEFAULT NULL COMMENT '创建时间', |
| 118 | `update_time` datetime DEFAULT NULL COMMENT '更新时间', | 105 | `update_time` datetime DEFAULT NULL COMMENT '更新时间', |
| 119 | `creator` bigint DEFAULT NULL COMMENT '创建用户', | 106 | `creator` bigint DEFAULT NULL COMMENT '创建用户', |
| 120 | `updater` bigint DEFAULT NULL COMMENT '更新用户', | 107 | `updater` bigint DEFAULT NULL COMMENT '更新用户', |
| 121 | `deleted` bit(1) DEFAULT b'0' COMMENT '删除', | 108 | `deleted` bit(1) DEFAULT b'0' COMMENT '删除', |
| 122 | PRIMARY KEY (`id`) | 109 | PRIMARY KEY (`id`) |
| 123 | -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin; | 110 | +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin; |
| 124 | 111 | ||
| 125 | -- ---------------------------- | 112 | -- ---------------------------- |
| 126 | --- Records of ai_chat_modal | 113 | +-- Records of ai_chat_model |
| 127 | -- ---------------------------- | 114 | -- ---------------------------- |
| 128 | BEGIN; | 115 | BEGIN; |
| 129 | -INSERT INTO `ai_chat_modal` (`id`, `model_name`, `model_type`, `modal_image`, `config`, `disable`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (1, '小红书Ai写作大模型', 'yiyan', '', NULL, 0, '2024-04-25 18:10:32', '2024-04-25 18:10:32', 1, 1, b'0'); | 116 | +INSERT INTO `ai_chat_model` (`id`, `key_id`, `name`, `model`, `platform`, `sort`, `status`, `temperature`, `max_tokens`, `max_contexts`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (9, 1, '小红书Ai写作大模型3.5 8k', 'ERNIE-3.5-8K', 'yiyan', 100, 0, NULL, NULL, NULL, '2024-05-07 15:08:22', '2024-05-07 15:20:32', 1, 1, b'0'); |
| 117 | +INSERT INTO `ai_chat_model` (`id`, `key_id`, `name`, `model`, `platform`, `sort`, `status`, `temperature`, `max_tokens`, `max_contexts`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (10, 1, '小红书Ai写作大模型4.0', 'ERNIE 4.0', 'yiyan', 100, 0, NULL, NULL, NULL, '2024-05-07 15:23:33', '2024-05-07 15:23:33', 1, 1, b'0'); | ||
| 130 | COMMIT; | 118 | COMMIT; |
| 131 | 119 | ||
| 132 | -- ---------------------------- | 120 | -- ---------------------------- |
| @@ -136,31 +124,64 @@ DROP TABLE IF EXISTS `ai_chat_role`; | @@ -136,31 +124,64 @@ DROP TABLE IF EXISTS `ai_chat_role`; | ||
| 136 | CREATE TABLE `ai_chat_role` ( | 124 | CREATE TABLE `ai_chat_role` ( |
| 137 | `id` bigint NOT NULL AUTO_INCREMENT, | 125 | `id` bigint NOT NULL AUTO_INCREMENT, |
| 138 | `user_id` bigint DEFAULT NULL, | 126 | `user_id` bigint DEFAULT NULL, |
| 139 | - `model_id` bigint DEFAULT NULL COMMENT '模型编号,关联到角色使用的特定模型\n', | ||
| 140 | - `role_name` varchar(128) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '角色名,角色的显示名称\n', | ||
| 141 | - `role_introduce` varchar(256) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '角色介绍,详细描述角色的功能或用途\n', | ||
| 142 | - `role_source` varchar(16) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '角色来源,如 system(系统预置)、customer(用户自定义)\n', | ||
| 143 | - `classify` varchar(32) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '分类,角色所属的类别,如娱乐、创作等\n', | ||
| 144 | - `visibility` varchar(16) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '发布状态,private 表示仅自己可见,public表示公开,disable表示禁用\n', | ||
| 145 | - `top_k` float DEFAULT NULL COMMENT '生成时的Top-K采样候选集大小\n', | ||
| 146 | - `top_p` float DEFAULT NULL COMMENT '生成时使用的核采样方法的概率阈值\n', | ||
| 147 | - `temperature` float DEFAULT NULL COMMENT '用于控制随机性和多样性的温度参数\n', | ||
| 148 | - `use_count` int DEFAULT NULL COMMENT '角色的使用次数统计\n', | 127 | + `model_id` bigint DEFAULT NULL COMMENT '模型编号', |
| 128 | + `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '角色名,角色的显示名称\n', | ||
| 129 | + `avatar` varchar(256) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '头像', | ||
| 130 | + `category` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '分类,角色所属的类别,如娱乐、创作等\n', | ||
| 131 | + `sort` int DEFAULT NULL COMMENT '排序', | ||
| 132 | + `description` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '角色描述', | ||
| 133 | + `welcome_message` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '角色欢迎语', | ||
| 134 | + `system_message` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '角色设定(消息)', | ||
| 135 | + `public_status` blob COMMENT '是否公开 true - 公开;false - 私有', | ||
| 136 | + `status` tinyint DEFAULT NULL COMMENT '状态 0、开启 1、关闭', | ||
| 149 | `create_time` datetime DEFAULT NULL COMMENT '创建时间', | 137 | `create_time` datetime DEFAULT NULL COMMENT '创建时间', |
| 150 | `update_time` datetime DEFAULT NULL COMMENT '更新时间', | 138 | `update_time` datetime DEFAULT NULL COMMENT '更新时间', |
| 151 | `creator` bigint DEFAULT NULL COMMENT '创建用户', | 139 | `creator` bigint DEFAULT NULL COMMENT '创建用户', |
| 152 | `updater` bigint DEFAULT NULL COMMENT '更新用户', | 140 | `updater` bigint DEFAULT NULL COMMENT '更新用户', |
| 153 | `deleted` bit(1) DEFAULT b'0' COMMENT '删除', | 141 | `deleted` bit(1) DEFAULT b'0' COMMENT '删除', |
| 154 | PRIMARY KEY (`id`) | 142 | PRIMARY KEY (`id`) |
| 155 | -) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin; | 143 | +) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin; |
| 156 | 144 | ||
| 157 | -- ---------------------------- | 145 | -- ---------------------------- |
| 158 | -- Records of ai_chat_role | 146 | -- Records of ai_chat_role |
| 159 | -- ---------------------------- | 147 | -- ---------------------------- |
| 160 | BEGIN; | 148 | BEGIN; |
| 161 | -INSERT INTO `ai_chat_role` (`id`, `user_id`, `model_id`, `role_name`, `role_introduce`, `role_source`, `classify`, `visibility`, `top_k`, `top_p`, `temperature`, `use_count`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (1, 1, 1, '小红书写作v1---hh😄', '采用gpt3.5模型,拥有小红书优质作者写作经验。', 'system', 'writing', 'private', 0.2, 0.4, 0.7, 0, '2024-04-24 19:21:42', '2024-04-24 19:37:49', 1, 1, b'1'); | ||
| 162 | -INSERT INTO `ai_chat_role` (`id`, `user_id`, `model_id`, `role_name`, `role_introduce`, `role_source`, `classify`, `visibility`, `top_k`, `top_p`, `temperature`, `use_count`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (2, 1, 1, '小红书写作v2', '采用gpt3.5模型,拥有小红书优质作者写作经验。', 'system', 'writing', 'public', 0.2, 0.4, 0.7, 0, '2024-04-24 19:22:05', '2024-04-24 19:22:05', 1, 1, b'0'); | ||
| 163 | -INSERT INTO `ai_chat_role` (`id`, `user_id`, `model_id`, `role_name`, `role_introduce`, `role_source`, `classify`, `visibility`, `top_k`, `top_p`, `temperature`, `use_count`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (3, 1, 1, '小红书写作v1---', '采用gpt3.5模型,拥有小红书优质作者写作经验。', 'system', 'writing', 'public', 0.2, 0.4, 0.7, 0, '2024-04-24 19:29:38', '2024-04-24 19:29:38', 1, 1, b'0'); | 149 | +INSERT INTO `ai_chat_role` (`id`, `user_id`, `model_id`, `name`, `avatar`, `category`, `sort`, `description`, `welcome_message`, `system_message`, `public_status`, `status`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (8, 1, 9, '小红书写作v2', 'http://baidu.com', 'writing', 0, '采用gpt3.5模型,拥有小红书优质作者写作经验。', '欢迎使用小红书写作模型!', '你是一名优秀的小红书人文、风光作者,你热爱旅游,每去往一个城市你都会用美妙的文字抒写着这座城市的大街小巷,描述着这座城市的美好。', 0x31, 0, '2024-05-07 15:30:30', '2024-05-07 15:35:54', 1, 1, b'1'); |
| 150 | +INSERT INTO `ai_chat_role` (`id`, `user_id`, `model_id`, `name`, `avatar`, `category`, `sort`, `description`, `welcome_message`, `system_message`, `public_status`, `status`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (9, 1, 9, '小红书写作v1', 'http://baidu.com', 'writing', 0, '采用gpt3.5模型,拥有小红书优质作者写作经验。', '欢迎使用小红书写作模型!', '你是一名优秀的小红书人文、风光作者,你热爱旅游,每去往一个城市你都会用美妙的文字抒写着这座城市的大街小巷,描述着这座城市的美好。', 0x30, 0, '2024-05-07 15:36:40', '2024-05-07 15:36:40', 1, 1, b'0'); | ||
| 151 | +COMMIT; | ||
| 152 | + | ||
| 153 | +-- ---------------------------- | ||
| 154 | +-- Table structure for ai_image | ||
| 155 | +-- ---------------------------- | ||
| 156 | +DROP TABLE IF EXISTS `ai_image`; | ||
| 157 | +CREATE TABLE `ai_image` ( | ||
| 158 | + `id` bigint NOT NULL AUTO_INCREMENT, | ||
| 159 | + `user_id` bigint DEFAULT NULL, | ||
| 160 | + `prompt` varchar(2000) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '提示词\n', | ||
| 161 | + `modal` varchar(32) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '模型\n', | ||
| 162 | + `size` varchar(32) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '生成图像的尺寸大小。对于dall-e-2模型,尺寸可为256x256, 512x512, 或 1024x1024。对于dall-e-3模型,尺寸可为1024x1024, 1792x1024, 或 1024x1792。\n', | ||
| 163 | + `drawing_status` varchar(32) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '绘画状态:提交、排队、绘画中、绘画完成、绘画失败\n', | ||
| 164 | + `drawing_image_url` varchar(512) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '绘画图片地址\n', | ||
| 165 | + `drawing_error_message` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '错误信息', | ||
| 166 | + `mj_message_id` varchar(32) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '用户操作的消息编号(MJ返回)\n', | ||
| 167 | + `mj_operation_id` varchar(128) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '用户操作的操作编号(MJ返回)\n', | ||
| 168 | + `mj_operation_name` varchar(32) COLLATE utf8mb4_0900_bin DEFAULT NULL COMMENT '用户操作的操作名字(MJ返回)\n', | ||
| 169 | + `mj_operations` json DEFAULT NULL COMMENT 'mj图片生产成功保存的 components json 数组\n', | ||
| 170 | + `create_time` datetime DEFAULT NULL COMMENT '创建时间', | ||
| 171 | + `update_time` datetime DEFAULT NULL COMMENT '更新时间', | ||
| 172 | + `creator` bigint DEFAULT NULL COMMENT '创建用户', | ||
| 173 | + `updater` bigint DEFAULT NULL COMMENT '更新用户', | ||
| 174 | + `deleted` bit(1) DEFAULT b'0' COMMENT '删除', | ||
| 175 | + PRIMARY KEY (`id`) | ||
| 176 | +) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin; | ||
| 177 | + | ||
| 178 | +-- ---------------------------- | ||
| 179 | +-- Records of ai_image | ||
| 180 | +-- ---------------------------- | ||
| 181 | +BEGIN; | ||
| 182 | +INSERT INTO `ai_image` (`id`, `user_id`, `prompt`, `modal`, `size`, `drawing_status`, `drawing_image_url`, `drawing_error_message`, `mj_message_id`, `mj_operation_id`, `mj_operation_name`, `mj_operations`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (22, 1, 'Cute cartoon style mobile game scene, a colorful camping car with an outdoor table and chairs next to it on the road in a spring forest, the simple structure of the camper van, soft lighting, C4D rendering, 3d model in the style of a cartoon, cute shape, a pastel color scheme, closeup view from the side angle, high resolution, bright colors, a happy atmosphere. --ar 1:2 --v 6.0', 'midjoureny', NULL, 'fail', NULL, 'You have reached the maximum allowed number of concurrent jobs. Don\'t worry, this job will start as soon as another one finishes!', NULL, NULL, NULL, NULL, '2024-05-08 17:26:01', '2024-05-08 17:26:04', 1, NULL, b'0'); | ||
| 183 | +INSERT INTO `ai_image` (`id`, `user_id`, `prompt`, `modal`, `size`, `drawing_status`, `drawing_image_url`, `drawing_error_message`, `mj_message_id`, `mj_operation_id`, `mj_operation_name`, `mj_operations`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (23, 1, 'Cute cartoon style mobile game scene, a colorful camping car with an outdoor table and chairs next to it on the road in a spring forest, the simple structure of the camper van, soft lighting, C4D rendering, 3d model in the style of a cartoon, cute shape, a pastel color scheme, closeup view from the side angle, high resolution, bright colors, a happy atmosphere. --ar 1:2 --v 6.0', 'midjoureny', NULL, 'fail', NULL, 'Your job queue is full. Please wait for a job to finish first, then resubmit this one.', '1788144718477979648', NULL, NULL, NULL, '2024-05-08 17:51:38', '2024-05-08 17:51:39', 1, NULL, b'0'); | ||
| 184 | +INSERT INTO `ai_image` (`id`, `user_id`, `prompt`, `modal`, `size`, `drawing_status`, `drawing_image_url`, `drawing_error_message`, `mj_message_id`, `mj_operation_id`, `mj_operation_name`, `mj_operations`, `create_time`, `update_time`, `creator`, `updater`, `deleted`) VALUES (24, 1, 'Cute cartoon style mobile game scene, a colorful camping car with an outdoor table and chairs next to it on the road in a spring forest, the simple structure of the camper van, soft lighting, C4D rendering, 3d model in the style of a cartoon, cute shape, a pastel color scheme, closeup view from the side angle, high resolution, bright colors, a happy atmosphere. --ar 1:2 --v 6.0', 'midjoureny', NULL, 'submit', NULL, NULL, '1788145293357699072', NULL, NULL, NULL, '2024-05-08 17:53:55', '2024-05-08 17:53:55', 1, 1, b'0'); | ||
| 164 | COMMIT; | 185 | COMMIT; |
| 165 | 186 | ||
| 166 | SET FOREIGN_KEY_CHECKS = 1; | 187 | SET FOREIGN_KEY_CHECKS = 1; |