Skip to content

Commit 3b04329

Browse files
authored
Add the test user to SQL scripts (#696)
1 parent bd4acf8 commit 3b04329

File tree

4 files changed

+28
-12
lines changed

4 files changed

+28
-12
lines changed

backend/sql/mysql/init_snowflake_test_data.sql

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,17 @@ values
9090
(2048601263578415104, 2048601263515500544, 2049629108245233664),
9191
(2048601263641329664, 2048601263515500544, 2049629108245233665),
9292
(2048601263708438528, 2048601263515500544, 2049629108245233666),
93-
(2048601263775547392, 2048601263515500544, 2049629108245233667);
93+
(2048601263775547392, 2048601263515500544, 2049629108253622282);
9494

9595
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)
96-
values (2048601263834267648, uuid(), 'admin', '用户88888', '$2b$12$8y2eNucX19VjmZ3tYhBLcOsBwy9w1IjBQE4SSqwMDL5bGQVp2wqS.', unhex('24326224313224387932654E7563583139566A6D5A33745968424C634F'), 'admin@example.com', 1, 1, 1, 1, null, null, now(), now(), 2048601258595581952, now(), null);
96+
values
97+
(2048601263834267648, uuid(), 'admin', '用户88888', '$2b$12$8y2eNucX19VjmZ3tYhBLcOsBwy9w1IjBQE4SSqwMDL5bGQVp2wqS.', unhex('24326224313224387932654E7563583139566A6D5A33745968424C634F'), 'admin@example.com', 1, 1, 1, 1, null, null, now(), now(), 2048601258595581952, now(), null),
98+
(2049946297615646720, uuid(), 'test', '用户66666', '$2b$12$BMiXsNQAgTx7aNc7kVgnwedXGyUxPEHRnJMFbiikbqHgVoT3y14Za', unhex('24326224313224424D6958734E514167547837614E63376B56676E7765'), 'test@example.com', 0, 0, 1, 0, null, null, now(), now(), 2048601258595581952, now(), null);
9799

98100
insert into sys_user_role (id, user_id, role_id)
99-
values (2048601263838461952, 2048601263834267648, 2048601263515500544);
101+
values
102+
(2048601263838461952, 2048601263834267648, 2048601263515500544),
103+
(2049946493732913152, 2049946297615646720, 2048601263515500544);
100104

101105
insert into sys_data_scope (id, name, status, created_time, updated_time)
102106
values

backend/sql/mysql/init_test_data.sql

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,17 @@ values
9090
(1, 1, 1),
9191
(2, 1, 2),
9292
(3, 1, 3),
93-
(4, 1, 4);
93+
(4, 1, 54);
9494

9595
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)
96-
values (1, uuid(), 'admin', '用户88888', '$2b$12$8y2eNucX19VjmZ3tYhBLcOsBwy9w1IjBQE4SSqwMDL5bGQVp2wqS.', unhex('24326224313224387932654E7563583139566A6D5A33745968424C634F'), 'admin@example.com', 1, 1, 1, 1, null, null, now(), now(), 1, now(), null);
96+
values
97+
(1, uuid(), 'admin', '用户88888', '$2b$12$8y2eNucX19VjmZ3tYhBLcOsBwy9w1IjBQE4SSqwMDL5bGQVp2wqS.', unhex('24326224313224387932654E7563583139566A6D5A33745968424C634F'), 'admin@example.com', 1, 1, 1, 1, null, null, now(), now(), 1, now(), null),
98+
(2, uuid(), 'test', '用户66666', '$2b$12$BMiXsNQAgTx7aNc7kVgnwedXGyUxPEHRnJMFbiikbqHgVoT3y14Za', unhex('24326224313224424D6958734E514167547837614E63376B56676E7765'), 'test@example.com', 0, 0, 1, 0, null, null, now(), now(), 1, now(), null);
9799

98100
insert into sys_user_role (id, user_id, role_id)
99-
values (1, 1, 1);
101+
values
102+
(1, 1, 1),
103+
(2, 2, 1);
100104

101105
insert into sys_data_scope (id, name, status, created_time, updated_time)
102106
values

backend/sql/postgresql/init_snowflake_test_data.sql

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,17 @@ values
9090
(2048601269412691968, 2048601269345583104, 2049629108245233664),
9191
(2048601269479800832, 2048601269345583104, 2049629108245233665),
9292
(2048601269546909696, 2048601269345583104, 2049629108245233666),
93-
(2048601269609824256, 2048601269345583104, 2049629108245233667);
93+
(2048601269609824256, 2048601269345583104, 2049629108253622282);
9494

9595
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)
96-
values (2048601269672738816, gen_random_uuid(), 'admin', '用户88888', '$2b$12$8y2eNucX19VjmZ3tYhBLcOsBwy9w1IjBQE4SSqwMDL5bGQVp2wqS.', decode('24326224313224387932654E7563583139566A6D5A33745968424C634F', 'hex'), 'admin@example.com', 1, 1, 1, 1, null, null, now(), now(), 2048601264366944256, now(), null);
96+
values
97+
(2048601269672738816, gen_random_uuid(), 'admin', '用户88888', '$2b$12$8y2eNucX19VjmZ3tYhBLcOsBwy9w1IjBQE4SSqwMDL5bGQVp2wqS.', decode('24326224313224387932654E7563583139566A6D5A33745968424C634F', 'hex'), 'admin@example.com', 1, 1, 1, 1, null, null, now(), now(), 2048601264366944256, now(), null),
98+
(2049946297615646720, gen_random_uuid(), 'test', '用户66666', '$2b$12$BMiXsNQAgTx7aNc7kVgnwedXGyUxPEHRnJMFbiikbqHgVoT3y14Za', decode('24326224313224424D6958734E514167547837614E63376B56676E7765', 'hex'), 'test@example.com', 0, 0, 1, 0, null, null, now(), now(), 2048601264366944256, now(), null);
9799

98100
insert into sys_user_role (id, user_id, role_id)
99-
values (2048601269739847680, 2048601269672738816, 2048601269345583104);
101+
values
102+
(2048601269739847680, 2048601269672738816, 2048601269345583104),
103+
(2049946493732913152, 2049946297615646720, 2048601269345583104);
100104

101105
insert into sys_data_scope (id, name, status, created_time, updated_time)
102106
values

backend/sql/postgresql/init_test_data.sql

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,17 @@ values
9090
(1, 1, 1),
9191
(2, 1, 2),
9292
(3, 1, 3),
93-
(4, 1, 4);
93+
(4, 1, 54);
9494

9595
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)
96-
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);
96+
values
97+
(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),
98+
(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);
9799

98100
insert into sys_user_role (id, user_id, role_id)
99-
values (1, 1, 1);
101+
values
102+
(1, 1, 1),
103+
(2, 2, 1);
100104

101105
insert into sys_data_scope (id, name, status, created_time, updated_time)
102106
values

0 commit comments

Comments
 (0)