From 6593438e66c73c9cb4df68173978ed2a7b5009fa Mon Sep 17 00:00:00 2001 From: mayiming <1627832236@qq.com> Date: Wed, 29 Oct 2025 12:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A4=BE=E4=BC=9A=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=EF=BC=8C=E6=B7=BB=E5=8A=A0=E8=BD=AF=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/sql/social_service.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/server/sql/social_service.sql b/server/sql/social_service.sql index 9550ce95..bc16a557 100644 --- a/server/sql/social_service.sql +++ b/server/sql/social_service.sql @@ -12,5 +12,6 @@ CREATE TABLE `social_service` ( `reviewers` varchar(512) DEFAULT '' COMMENT '审核者名单(多个用逗号分隔)', `publish_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '发布时间(默认插入时的当前时间)', -- 改为NOT NULL(默认值存在,无需为null) `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更改时间(自动更新)', -- 改为NOT NULL + `is_delete` int(1) NOT NULL DEFAULT 0 COMMENT '逻辑删除标识:0-未删除,1-已删除', -- 新增字段 PRIMARY KEY (`id`) -- 明确主键,确保goctl识别 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='社会服务表'; \ No newline at end of file