Files
----/后端源码/yifan.action-ai.cn/api-bak/sql/test_user.sql

59 lines
1.1 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 测试用户数据
-- 用户名: test_user
-- 密码: 123456
-- 手机号: [phone_number]
-- 插入测试用户(密码为 123456 的 bcrypt 哈希值)
INSERT INTO sys_user (
id,
uuid,
username,
password,
name,
mobile,
email,
gender,
avatar,
is_superuser,
status,
description,
created_time,
updated_time,
created_id,
updated_id,
dept_id,
last_login
) VALUES (
999,
'test-user-999-uuid-2026',
'test_user',
'$2b$12$LQv3c1yqBWVHxkd0LHAkCOYz6TtxMQJqhN8/LewY5GyYzS8qubHu2', -- 密码: 123456
'测试用户',
'[phone_number]',
'test@example.com',
'2',
NULL,
0,
'0',
'Apifox测试用户',
NOW(),
NOW(),
1,
1,
NULL,
NULL
);
-- 说明:
-- 1. 用户ID设置为 999避免与现有用户冲突
-- 2. 用户名: test_user
-- 3. 密码: 123456 (已使用bcrypt加密)
-- 4. 手机号: [phone_number]
-- 5. 状态: '0' (启用)
-- 6. 非超级管理员
-- 7. 性别: '2' (未知)
-- 使用方法:
-- 1. 在 Apifox 中测试测名接口时,传入参数: "user_id": 999
-- 2. 或者登录后使用该用户的 token 进行测试