#2026.4.7
CREATE TABLE quick_replies (
       id INT PRIMARY KEY AUTO_INCREMENT COMMENT '主键ID',
       title VARCHAR(100) NOT NULL COMMENT '快捷回复标题/关键词',
       content TEXT NOT NULL COMMENT '回复内容',
       is_active BOOLEAN DEFAULT TRUE COMMENT '是否启用',
       created_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
       updated_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
       INDEX idx_category (category),
       INDEX idx_user_id (user_id),
       INDEX idx_shortcut_key (shortcut_key)
) COMMENT='快捷回复表';

#2026.4.7
CREATE TABLE welcome_messages (
      id INT PRIMARY KEY AUTO_INCREMENT COMMENT '主键ID',
      message TEXT NOT NULL COMMENT '欢迎语内容',
      language VARCHAR(10) DEFAULT 'zh-CN' COMMENT '语言代码',
      is_active BOOLEAN DEFAULT TRUE COMMENT '是否启用',
      created_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
      update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间'
) COMMENT='欢迎语表';