-
Notifications
You must be signed in to change notification settings - Fork 1
/
BO-1-back-user.sql
94 lines (73 loc) · 5.55 KB
/
BO-1-back-user.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
-- Premier compte
INSERT INTO back.users (validated, mail,prenom,nom,pwd, ter_code, enddate)
VALUES (true,'[email protected]','Laurent','SCHERER','$2a$06$UonmnHnZmE5CT2S/ORS2M.BmfgxSJDQd/B7ktNdn.DixGm9.qZ1Ey', 'FRA', now()) RETURNING id;
-- Ajout de tous les rôles pour le superAdmin
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),1);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),2);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),3);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),4);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),5);
INSERT INTO back.users (validated, mail,prenom,nom,pwd, ter_code, enddate)
VALUES (true,'[email protected]','Vincent','CARCEL','$2a$06$UonmnHnZmE5CT2S/ORS2M.BmfgxSJDQd/B7ktNdn.DixGm9.qZ1Ey', 'FRA', now()) RETURNING id;
-- Ajout de tous les rôles pour le superAdmin
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),1);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),2);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),3);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),4);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),5);
INSERT INTO back.users (validated, mail,prenom,nom,pwd, ter_code, enddate)
VALUES (true,'[email protected]','Benjamin','PINARD','$2a$06$UonmnHnZmE5CT2S/ORS2M.BmfgxSJDQd/B7ktNdn.DixGm9.qZ1Ey', 'FRA', now()) RETURNING id;
-- Ajout de tous les rôles pour le superAdmin
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),1);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),2);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),3);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),4);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),5);
INSERT INTO back.users (validated, mail,prenom,nom,pwd, ter_code, enddate)
VALUES (true,'[email protected]','Guillaume','WEILL','$2a$06$UonmnHnZmE5CT2S/ORS2M.BmfgxSJDQd/B7ktNdn.DixGm9.qZ1Ey', 'FRA', now()) RETURNING id;
-- Ajout de tous les rôles pour le superAdmin
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),1);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),2);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),3);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),4);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),5);
INSERT INTO back.users (validated, mail,prenom,nom,pwd, ter_code, enddate)
VALUES (true,'[email protected]','Olivier','TOUMSY','$2a$06$UonmnHnZmE5CT2S/ORS2M.BmfgxSJDQd/B7ktNdn.DixGm9.qZ1Ey', 'FRA', now()) RETURNING id;
-- Ajout de tous les rôles pour le superAdmin
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),1);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),2);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),3);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),4);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),5);
INSERT INTO back.users (validated, mail,prenom,nom,pwd, ter_code, enddate)
VALUES (true,'[email protected]','Assia','RACHEDI','$2a$06$UonmnHnZmE5CT2S/ORS2M.BmfgxSJDQd/B7ktNdn.DixGm9.qZ1Ey', 'FRA', now()) RETURNING id;
-- Ajout de tous les rôles pour le superAdmin
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),1);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),2);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),3);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),4);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),5);
INSERT INTO back.users (validated, mail,prenom,nom,pwd, ter_code, enddate)
VALUES (true,'[email protected]','Boubeker','AIT-AIDER','$2a$06$UonmnHnZmE5CT2S/ORS2M.BmfgxSJDQd/B7ktNdn.DixGm9.qZ1Ey', 'FRA', now()) RETURNING id;
-- Ajout de tous les rôles pour le superAdmin
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),1);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),2);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),3);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),4);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),5);
INSERT INTO back.users (validated, mail,prenom,nom,pwd, ter_code, enddate)
VALUES (true,'[email protected]','Nelly','JOUSSET-ANTIPHON','$2a$06$UonmnHnZmE5CT2S/ORS2M.BmfgxSJDQd/B7ktNdn.DixGm9.qZ1Ey', 'FRA', now()) RETURNING id;
-- Ajout de tous les rôles pour le superAdmin
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),1);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),2);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),3);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),4);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),5);
INSERT INTO back.users (validated, mail,prenom,nom,pwd, ter_code, enddate)
VALUES (true,'[email protected]','Romain','PONTEFRACT','$2a$06$UonmnHnZmE5CT2S/ORS2M.BmfgxSJDQd/B7ktNdn.DixGm9.qZ1Ey', 'FRA', now()) RETURNING id;
-- Ajout de tous les rôles pour le superAdmin
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),1);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),2);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),3);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),4);
INSERT INTO back.user_roles VALUES (currval('back.users_id_seq'),5);