|
3 | 3 | BEGIN |
4 | 4 |
|
5 | 5 | INSERT INTO users( |
6 | | - user_id, user_title, middlename, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email, |
7 | | - telephone, telephone_alt, created_at, updated_at, institution_id, nationality, placeholder) |
8 | | - VALUES (100, '', '1', 'Instrument', 'Scientist1', 'instr.sci1', '-', 'instr.sci1.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', 'instr.sci1@local.host', '', '', NOW(), NOW(), 1, 169, false); |
| 6 | + user_id, user_title, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email, |
| 7 | + telephone, created_at, updated_at, institution_id, placeholder) |
| 8 | + VALUES (100, '', 'Instrument', 'Scientist1', 'instr.sci1', '-', 'instr.sci1.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', 'instr.sci1@local.host', '', NOW(), NOW(), 1, false); |
9 | 9 |
|
10 | 10 | INSERT INTO users( |
11 | | - user_id, user_title, middlename, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email, |
12 | | - telephone, telephone_alt, created_at, updated_at, institution_id, nationality, placeholder) |
13 | | - VALUES (101, '', '2', 'Instrument', 'Scientist2', 'instr.sci2', '-', 'instr.sci2.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', 'instr.sci2@local.host', '', '', NOW(), NOW(), 1, 169, false); |
| 11 | + user_id, user_title, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email, |
| 12 | + telephone, created_at, updated_at, institution_id, placeholder) |
| 13 | + VALUES (101, '', 'Instrument', 'Scientist2', 'instr.sci2', '-', 'instr.sci2.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', 'instr.sci2@local.host', '', NOW(), NOW(), 1, false); |
14 | 14 |
|
15 | 15 | -- user account with every roles except instrument scientist and user officer |
16 | 16 | INSERT INTO users( |
17 | | - user_id, user_title, middlename, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email, |
18 | | - telephone, telephone_alt, created_at, updated_at, institution_id, nationality, placeholder) |
19 | | - VALUES (102, '', 'Instrument', 'Not', 'Scientist', 'not.instr.sci', '-', 'not.instr.sci.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', 'not.instr.sci@local.host', '', '', NOW(), NOW(), 1, 169, false); |
| 17 | + user_id, user_title, firstname, lastname, username, preferredname, oidc_sub, oauth_refresh_token, gender, birthdate, department, "position", email, |
| 18 | + telephone, created_at, updated_at, institution_id, placeholder) |
| 19 | + VALUES (102, '', 'Not', 'Scientist', 'not.instr.sci', '-', 'not.instr.sci.oauthsub', 'dummy-refresh-token', 'e2e user', '2020-10-10', 'IT', '', 'not.instr.sci@local.host', '', NOW(), NOW(), 1, false); |
20 | 20 |
|
21 | 21 | INSERT INTO role_user( |
22 | 22 | role_id, user_id) |
|
0 commit comments