/**
Source Server Version: 8.0.31
Source Database: backendsys
Date: 2023/05/23 17:09:22
*/

DROP TABLE IF EXISTS `ai_chat_model`;
CREATE TABLE `ai_chat_model` (
    PRIMARY KEY (`id`),
    `id` BIGINT AUTO_INCREMENT COMMENT 'ID',
    `parent_id` BIGINT DEFAULT '-1' COMMENT '父ID',
    `label` VARCHAR(255) COMMENT '模型名称',
    `value` VARCHAR(255) COMMENT '模型 (HUNYUAN-混元, DEEPSEEK_API, DEEPSEEK_R1)',
    `disabled` TINYINT(1) DEFAULT '1' COMMENT '是否禁用 (-1可用, 1禁用)',
    `status` TINYINT(1) DEFAULT '1' COMMENT '状态 (-1禁用, 1启用)'
) ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='AI对话模型表';

INSERT INTO ai_chat_model(id, parent_id, label, value, disabled, status) VALUES
    (1, -1, 'DeepSeek R1', 'DEEPSEEK_R1', -1, 1),
        (2, 1, 'deepseek-r1:1.5b', 'deepseek-r1:1.5b', -1, 1),
        (3, 1, 'deepseek-r1:70b', 'deepseek-r1:70b', -1, 1),
        (4, 1, 'deepseek-r1:671b', 'deepseek-r1:671b', 1, 1),
    (5, -1, 'DeepSeek API', 'DEEPSEEK_API', -1, 1),
        (6, 5, 'deepseek-chat', 'deepseek-chat', -1, 1),
        (7, 5, 'deepseek-reasoner', 'deepseek-reasoner', -1, 1),
    (8, -1, '混元大模型', 'HUNYUAN', -1, 1)
;