-- MySQL dump 10.13  Distrib 5.7.44, for Linux (x86_64)
--
-- Host: localhost    Database: sonic-cow
-- ------------------------------------------------------
-- Server version	5.7.44-log

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `context_session_cache`
--

DROP TABLE IF EXISTS `context_session_cache`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `context_session_cache` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
  `to_user_id` bigint(20) DEFAULT NULL COMMENT '目标用户ID',
  `context_id` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '上下文ID',
  `exp_time` datetime DEFAULT NULL COMMENT '过期时间',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `edit_time` datetime DEFAULT NULL COMMENT '编辑时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `_uqe_context_session_cache_user_id_to_user_id` (`user_id`,`to_user_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='上下文ID的session缓存映射数据';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `gen_image_task`
--

DROP TABLE IF EXISTS `gen_image_task`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gen_image_task` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `batch_no` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '批次号',
  `user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
  `status` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '状态（PENDING 处理中、RELEASED 已释放）',
  `task_count` int(255) DEFAULT NULL COMMENT '任务总数',
  `completed_count` int(255) DEFAULT NULL COMMENT '已经有多少张图片任务获取到结果了',
  `polling_count` int(10) DEFAULT NULL COMMENT '前端轮询次数',
  `heart_beat_time` datetime DEFAULT NULL COMMENT '最后一次心跳时间',
  `endpoint` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '终端类型',
  `device_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '设备号',
  `ip_address` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'IP地址',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `edit_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '编辑时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `_idx_t_gen_image_task_batch_no` (`batch_no`) USING BTREE,
  KEY `_idx_t_gen_image_task_user_id` (`user_id`) USING BTREE,
  KEY `_idx_t_gen_image_task_heart_beat_time_status` (`status`,`heart_beat_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1781 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='生成图片任务主表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `gen_image_task_record`
--

DROP TABLE IF EXISTS `gen_image_task_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gen_image_task_record` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `task_id` bigint(20) DEFAULT NULL COMMENT ' 任务ID gen_image_task表主键id',
  `batch_no` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '批次号',
  `type` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '生图类型 文生图：1  图生图：2',
  `user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
  `third_task_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '生成图片的第三方任务id',
  `prompt` varchar(4000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '生成图片的SD提示词',
  `image_url` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '图片链接',
  `image_url_md5` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '图片连接的md5值',
  `status` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '图片生成状态（PENDING 生成中、NSFW 被鉴黄、COMPLETED 生成完成）FAILED 生成失败',
  `fail_reason` varchar(1000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '图片生成失败原因',
  `completed` tinyint(4) DEFAULT NULL COMMENT '是否已生成完成（0 否、1 是）',
  `async_task_id` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '图生图-生成图片异步任务id，用此查询生图结果',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `edit_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '编辑时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `_idx_t_gen_image_task_record_task_id` (`task_id`) USING BTREE,
  KEY `_idx_t_gen_image_task_record_batch_no` (`batch_no`) USING BTREE,
  KEY `_idx_t_gen_image_task_record_user_id_image_url_md5` (`user_id`,`image_url_md5`) USING BTREE,
  KEY `_idx_t_gen_image_task_record_async_task_id` (`async_task_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10693 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='生成图片任务子项表';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `prompt_config`
--

DROP TABLE IF EXISTS `prompt_config`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prompt_config` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `prompt_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词类型',
  `prompt_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词名称',
  `prompt_desc` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词描述',
  `prompt_template` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容',
  `prompt_template_1` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容1',
  `model` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '模型',
  `temperature` double(10,2) DEFAULT NULL COMMENT '温度',
  `topp` double(10,2) DEFAULT NULL COMMENT '召回数',
  `frequency` double(10,2) DEFAULT NULL COMMENT '频率惩罚',
  `presence` double(10,2) DEFAULT NULL COMMENT '存在惩罚',
  `structured_output_schema` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的定义',
  `structured_output_schema_name` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的名称',
  `structured_output_schema_desc` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的描述',
  `is_delete` tinyint(4) DEFAULT NULL COMMENT '是否删除',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `edit_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '编辑时间',
  PRIMARY KEY (`id`),
  KEY `_idx_prompt_config_prompt_type` (`prompt_type`)
) ENGINE=InnoDB AUTO_INCREMENT=114 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='提示词配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `prompt_config_cn_v0`
--

DROP TABLE IF EXISTS `prompt_config_cn_v0`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prompt_config_cn_v0` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `prompt_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词类型',
  `prompt_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词名称',
  `prompt_desc` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词描述',
  `prompt_template` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容',
  `prompt_template_1` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容1',
  `temperature` double(10,2) DEFAULT NULL COMMENT '温度',
  `topp` double(10,0) DEFAULT NULL COMMENT '召回数',
  `structured_output_schema` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的定义',
  `structured_output_schema_name` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的名称',
  `structured_output_schema_desc` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的描述',
  `is_delete` tinyint(4) DEFAULT NULL COMMENT '是否删除',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `edit_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '编辑时间',
  PRIMARY KEY (`id`),
  KEY `_idx_prompt_config_prompt_type` (`prompt_type`)
) ENGINE=InnoDB AUTO_INCREMENT=109 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='提示词配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `prompt_config_cn_v1`
--

DROP TABLE IF EXISTS `prompt_config_cn_v1`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prompt_config_cn_v1` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `prompt_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词类型',
  `prompt_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词名称',
  `prompt_desc` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词描述',
  `prompt_template` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容',
  `prompt_template_1` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容1',
  `temperature` double(10,2) DEFAULT NULL COMMENT '温度',
  `topp` double(10,0) DEFAULT NULL COMMENT '召回数',
  `structured_output_schema` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的定义',
  `structured_output_schema_name` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的名称',
  `structured_output_schema_desc` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的描述',
  `is_delete` tinyint(4) DEFAULT NULL COMMENT '是否删除',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `edit_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '编辑时间',
  PRIMARY KEY (`id`),
  KEY `_idx_prompt_config_prompt_type` (`prompt_type`)
) ENGINE=InnoDB AUTO_INCREMENT=109 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='提示词配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `prompt_config_cn_v2`
--

DROP TABLE IF EXISTS `prompt_config_cn_v2`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prompt_config_cn_v2` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `prompt_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词类型',
  `prompt_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词名称',
  `prompt_desc` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词描述',
  `prompt_template` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容',
  `prompt_template_1` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容1',
  `model` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '模型',
  `temperature` double(10,2) DEFAULT NULL COMMENT '温度',
  `topp` double(10,0) DEFAULT NULL COMMENT '召回数',
  `structured_output_schema` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的定义',
  `structured_output_schema_name` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的名称',
  `structured_output_schema_desc` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的描述',
  `is_delete` tinyint(4) DEFAULT NULL COMMENT '是否删除',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `edit_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '编辑时间',
  PRIMARY KEY (`id`),
  KEY `_idx_prompt_config_prompt_type` (`prompt_type`)
) ENGINE=InnoDB AUTO_INCREMENT=110 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='提示词配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `prompt_config_copy1`
--

DROP TABLE IF EXISTS `prompt_config_copy1`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prompt_config_copy1` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `prompt_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词类型',
  `prompt_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词名称',
  `prompt_desc` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词描述',
  `prompt_template` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容',
  `prompt_template_1` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容1',
  `model` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '模型',
  `temperature` double(10,2) DEFAULT NULL COMMENT '温度',
  `topp` double(10,2) DEFAULT NULL COMMENT '召回数',
  `structured_output_schema` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的定义',
  `structured_output_schema_name` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的名称',
  `structured_output_schema_desc` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的描述',
  `is_delete` tinyint(4) DEFAULT NULL COMMENT '是否删除',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `edit_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '编辑时间',
  PRIMARY KEY (`id`),
  KEY `_idx_prompt_config_prompt_type` (`prompt_type`)
) ENGINE=InnoDB AUTO_INCREMENT=113 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='提示词配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `prompt_config_v0`
--

DROP TABLE IF EXISTS `prompt_config_v0`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prompt_config_v0` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `prompt_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词类型',
  `prompt_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词名称',
  `prompt_desc` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词描述',
  `prompt_template` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容',
  `prompt_template_1` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容1',
  `temperature` double(10,2) DEFAULT NULL COMMENT '温度',
  `topp` double(10,0) DEFAULT NULL COMMENT '召回数',
  `structured_output_schema` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的定义',
  `structured_output_schema_name` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的名称',
  `structured_output_schema_desc` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的描述',
  `is_delete` tinyint(4) DEFAULT NULL COMMENT '是否删除',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `edit_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '编辑时间',
  PRIMARY KEY (`id`),
  KEY `_idx_prompt_config_prompt_type` (`prompt_type`)
) ENGINE=InnoDB AUTO_INCREMENT=110 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='提示词配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `prompt_config_v1`
--

DROP TABLE IF EXISTS `prompt_config_v1`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prompt_config_v1` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `prompt_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词类型',
  `prompt_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词名称',
  `prompt_desc` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词描述',
  `prompt_template` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容',
  `prompt_template_1` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容1',
  `temperature` double(10,2) DEFAULT NULL COMMENT '温度',
  `topp` double(10,0) DEFAULT NULL COMMENT '召回数',
  `structured_output_schema` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的定义',
  `structured_output_schema_name` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的名称',
  `structured_output_schema_desc` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的描述',
  `is_delete` tinyint(4) DEFAULT NULL COMMENT '是否删除',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `edit_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '编辑时间',
  PRIMARY KEY (`id`),
  KEY `_idx_prompt_config_prompt_type` (`prompt_type`)
) ENGINE=InnoDB AUTO_INCREMENT=110 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='提示词配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `prompt_config_v2`
--

DROP TABLE IF EXISTS `prompt_config_v2`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prompt_config_v2` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `prompt_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词类型',
  `prompt_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词名称',
  `prompt_desc` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '提示词描述',
  `prompt_template` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容',
  `prompt_template_1` longtext COLLATE utf8mb4_unicode_ci COMMENT '提示词具体内容1',
  `model` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '模型',
  `temperature` double(10,2) DEFAULT NULL COMMENT '温度',
  `topp` double(10,0) DEFAULT NULL COMMENT '召回数',
  `structured_output_schema` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的定义',
  `structured_output_schema_name` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的名称',
  `structured_output_schema_desc` varchar(2000) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '格式化输出的描述',
  `is_delete` tinyint(4) DEFAULT NULL COMMENT '是否删除',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `edit_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '编辑时间',
  PRIMARY KEY (`id`),
  KEY `_idx_prompt_config_prompt_type` (`prompt_type`)
) ENGINE=InnoDB AUTO_INCREMENT=110 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='提示词配置';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Table structure for table `voice_chat_record`
--

DROP TABLE IF EXISTS `voice_chat_record`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `voice_chat_record` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) DEFAULT NULL COMMENT '用户id',
  `ai_id` bigint(20) DEFAULT NULL COMMENT 'AI的id',
  `room_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '房间号',
  `task_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '任务id',
  `duration` bigint(20) DEFAULT NULL COMMENT '通话时长',
  `status` tinyint(1) DEFAULT '0' COMMENT '状态  1：通话中 2：打断  3: 结束',
  `endpoint` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '端',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `edit_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE,
  KEY `idx_voice_chat_record_task_id` (`task_id`)
) ENGINE=InnoDB AUTO_INCREMENT=1066 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='语音通话记录';
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2025-11-13  2:21:33
