From 8c4208a2f0d1ffc66ddec7b98fd9fe8e30f610a5 Mon Sep 17 00:00:00 2001 From: mayiming <1627832236@qq.com> Date: Wed, 29 Oct 2025 11:32:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=A4=BE=E4=BC=9A=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/sql/social_service.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 server/sql/social_service.sql diff --git a/server/sql/social_service.sql b/server/sql/social_service.sql new file mode 100644 index 00000000..e563ae4d --- /dev/null +++ b/server/sql/social_service.sql @@ -0,0 +1,19 @@ +create table social_service +( + id bigint auto_increment comment '主键ID' + primary key, + title varchar(255) not null comment '标题', + subtitle varchar(255) null comment '副标题', + cover_url varchar(512) null comment '封面图片URL', + intro varchar(1000) null comment '简介(纯文字)', + content longtext null comment '内容(Markdown格式)', + image_editors varchar(512) null comment '图片编辑者名单(多个用逗号分隔)', + text_editors varchar(512) null comment '文字编辑者名单(多个用逗号分隔)', + chief_editor varchar(100) null comment '总编辑', + proofreaders varchar(512) null comment '校对者名单(多个用逗号分隔)', + reviewers varchar(512) null comment '审核者名单(多个用逗号分隔)', + publish_time datetime default CURRENT_TIMESTAMP null comment '发布时间(默认插入时的当前时间)', + update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '最后更改时间(自动更新)' +) + comment '社会服务表' charset = utf8mb4; +