From 3c7c2f8440911e3a3504cb81af7781534d4b65c3 Mon Sep 17 00:00:00 2001 From: Hankin Date: Wed, 7 May 2025 17:57:04 +0800 Subject: [PATCH] quick reply --- 1746606994_create_quick_reply_cate.up.sql | 8 ++++++++ 1746607196_table_quick_reply_add_cate_id.up.sql | 2 ++ 1746611626_table_quick_reply_change_type.up.sql | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 1746606994_create_quick_reply_cate.up.sql create mode 100644 1746607196_table_quick_reply_add_cate_id.up.sql create mode 100644 1746611626_table_quick_reply_change_type.up.sql diff --git a/1746606994_create_quick_reply_cate.up.sql b/1746606994_create_quick_reply_cate.up.sql new file mode 100644 index 0000000..90e334f --- /dev/null +++ b/1746606994_create_quick_reply_cate.up.sql @@ -0,0 +1,8 @@ +CREATE TABLE `ufutx_quick_reply_cate` ( + `id` BIGINT NOT NULL AUTO_INCREMENT , + `user_id` int NOT NULL COMMENT "用户id", + `name` varchar(50) NOT NULL COMMENT "名称", + `created_at` TIMESTAMP NULL DEFAULT NULL , + `updated_at` TIMESTAMP NULL DEFAULT NULL , + PRIMARY KEY (`id`) +) ENGINE = InnoDB COMMENT = '快捷回复分类'; \ No newline at end of file diff --git a/1746607196_table_quick_reply_add_cate_id.up.sql b/1746607196_table_quick_reply_add_cate_id.up.sql new file mode 100644 index 0000000..c722e56 --- /dev/null +++ b/1746607196_table_quick_reply_add_cate_id.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE `ufutx_quick_reply` +ADD COLUMN `cate_id` int DEFAULT 0 COMMENT "分类id" after `user_id` \ No newline at end of file diff --git a/1746611626_table_quick_reply_change_type.up.sql b/1746611626_table_quick_reply_change_type.up.sql new file mode 100644 index 0000000..0a21e4e --- /dev/null +++ b/1746611626_table_quick_reply_change_type.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE `ufutx_quick_reply` +MODIFY `type` ENUM('PERSONAL', 'DAILY', 'CUSTOM'); \ No newline at end of file