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