统一角色体系为admin/agent/user,修复代理查询角色错误,添加语言切换和明暗切换

This commit is contained in:
Admin
2026-04-29 17:33:54 +08:00
parent 5c63882e71
commit 2a8f32cbb9
21 changed files with 78 additions and 196 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ CREATE TABLE IF NOT EXISTS users (
signature VARCHAR(255) DEFAULT NULL COMMENT '个性签名',
points INT DEFAULT 0 COMMENT '积分',
level INT DEFAULT 1 COMMENT '等级',
role ENUM('user', 'developer', 'agent', 'admin') DEFAULT 'user' COMMENT '角色',
role ENUM('user', 'agent', 'admin') DEFAULT 'user' COMMENT '角色',
status ENUM('active', 'inactive', 'banned') DEFAULT 'active' COMMENT '状态',
agent_id BIGINT UNSIGNED DEFAULT NULL COMMENT '所属代理ID',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',