chore: update project files
This commit is contained in:
13
demo/update_admin_user.sql
Normal file
13
demo/update_admin_user.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
-- 将 984523799@qq.com 设置为管理员
|
||||
-- 执行此脚本前请确保已连接到正确的数据库
|
||||
|
||||
-- 更新用户角色为管理员
|
||||
UPDATE users
|
||||
SET role = 'ROLE_ADMIN',
|
||||
updated_at = NOW()
|
||||
WHERE email = '984523799@qq.com';
|
||||
|
||||
-- 验证更新结果
|
||||
SELECT id, username, email, role, points, is_active, created_at, updated_at
|
||||
FROM users
|
||||
WHERE email = '984523799@qq.com';
|
||||
Reference in New Issue
Block a user