This commit is contained in:
Alex-larget
2026-03-17 18:22:06 +08:00
parent 88915276d1
commit f276595ad6
50 changed files with 2246 additions and 1223 deletions

View File

@@ -0,0 +1,5 @@
-- 用户软删除:管理端假删除,用户再次登录会新建账号
-- 执行后DELETE 操作改为 SET deleted_at不再物理删除避免外键约束
ALTER TABLE users ADD COLUMN deleted_at DATETIME(3) NULL DEFAULT NULL COMMENT '软删除时间' AFTER updated_at;
CREATE INDEX idx_users_deleted_at ON users (deleted_at);