mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2025-08-16 04:31:12 +08:00
Add the test user to SQL scripts (#696)
This commit is contained in:
@ -90,13 +90,17 @@ values
|
||||
(1, 1, 1),
|
||||
(2, 1, 2),
|
||||
(3, 1, 3),
|
||||
(4, 1, 4);
|
||||
(4, 1, 54);
|
||||
|
||||
insert into sys_user (id, uuid, username, nickname, password, salt, email, is_superuser, is_staff, status, is_multi_login, avatar, phone, join_time, last_login_time, dept_id, created_time, updated_time)
|
||||
values (1, gen_random_uuid(), 'admin', '用户88888', '$2b$12$8y2eNucX19VjmZ3tYhBLcOsBwy9w1IjBQE4SSqwMDL5bGQVp2wqS.', decode('24326224313224387932654E7563583139566A6D5A33745968424C634F', 'hex'), 'admin@example.com', 1, 1, 1, 1, null, null, now(), now(), 1, now(), null);
|
||||
values
|
||||
(1, gen_random_uuid(), 'admin', '用户88888', '$2b$12$8y2eNucX19VjmZ3tYhBLcOsBwy9w1IjBQE4SSqwMDL5bGQVp2wqS.', decode('24326224313224387932654E7563583139566A6D5A33745968424C634F', 'hex'), 'admin@example.com', 1, 1, 1, 1, null, null, now(), now(), 1, now(), null),
|
||||
(2, gen_random_uuid(), 'test', '用户66666', '$2b$12$BMiXsNQAgTx7aNc7kVgnwedXGyUxPEHRnJMFbiikbqHgVoT3y14Za', decode('24326224313224424D6958734E514167547837614E63376B56676E7765', 'hex'), 'test@example.com', 0, 0, 1, 0, null, null, now(), now(), 1, now(), null);
|
||||
|
||||
insert into sys_user_role (id, user_id, role_id)
|
||||
values (1, 1, 1);
|
||||
values
|
||||
(1, 1, 1),
|
||||
(2, 2, 1);
|
||||
|
||||
insert into sys_data_scope (id, name, status, created_time, updated_time)
|
||||
values
|
||||
|
Reference in New Issue
Block a user