From d5e18cf7cb73b93a87291a7a97c09b341bfe7723 Mon Sep 17 00:00:00 2001 From: "[yxf]" <[1524240689@qq.com]> Date: Tue, 7 Apr 2026 10:23:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9B=B4=E6=96=B0sql?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-platform/update.sql | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 im-platform/update.sql diff --git a/im-platform/update.sql b/im-platform/update.sql new file mode 100644 index 0000000..79bcb53 --- /dev/null +++ b/im-platform/update.sql @@ -0,0 +1,22 @@ +#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='欢迎语表'; \ No newline at end of file