用户管理一些问题修复

This commit is contained in:
xiaowang
2026-02-26 23:28:24 +08:00
parent 4b28baa80f
commit 9607c186bd
13 changed files with 985 additions and 57 deletions
@@ -0,0 +1,9 @@
-- 为t_user表添加status字段
-- 执行时间:2026-02-25
ALTER TABLE `t_user`
ADD COLUMN `status` TINYINT UNSIGNED DEFAULT 1 COMMENT '用户状态:1-正常,0-禁用'
AFTER `is_delete`;
-- 为现有用户设置默认状态为正常(1)
UPDATE `t_user` SET `status` = 1 WHERE `status` IS NULL;