You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.0 KiB
22 lines
1.0 KiB
#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='欢迎语表';
|