-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgamma_setup.sql
82 lines (77 loc) · 1.73 KB
/
gamma_setup.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
INSERT INTO fkit_super_group (id, name, pretty_name, email, type)
VALUES (
'4b0a7b4c-e256-46b3-baf4-a29ae35e01dc',
'styrit',
'StyrIT',
'COMMITTEE'
);
INSERT INTO internal_text(id, sv, en)
VALUES (
'56777d1c-c675-456d-b092-046f4c97b6dc',
' ',
' '
);
INSERT INTO fkit_group (
id,
name,
pretty_name,
description,
function,
becomes_active,
becomes_inactive,
fkit_super_group,
email,
avatar_url
)
VALUES (
'03c9c16f-74ed-4a6f-a9f8-175d6f9d1efd',
'styrit1927',
'StyrIT 1927',
'56777d1c-c675-456d-b092-046f4c97b6dc',
'56777d1c-c675-456d-b092-046f4c97b6dc',
'2022-11-14',
'2099-01-01',
'4b0a7b4c-e256-46b3-baf4-a29ae35e01dc',
NULL
);
INSERT INTO post(id, post_name, email_prefix)
VALUES (
'93f87ace-a3b4-4e21-92a0-9735e1c4c264',
'56777d1c-c675-456d-b092-046f4c97b6dc',
NULL
);
INSERT INTO membership(
ituser_id,
fkit_group_id,
post_id,
unofficial_post_name
)
SELECT id,
'03c9c16f-74ed-4a6f-a9f8-175d6f9d1efd',
'93f87ace-a3b4-4e21-92a0-9735e1c4c264',
' pepe '
FROM ituser
WHERE cid = 'admin';
INSERT INTO itclient(
id,
client_id,
client_secret,
web_server_redirect_uri,
access_token_validity,
refresh_token_validity,
auto_approve,
name,
description
) VALUES (
'4f96764d-63a4-4610-9cd8-1389f60461b8',
'id',
'{noop}secret',
'http://localhost:3001/auth/account/callback',
3600,
500000000,
true,
'secretary-manager',
'56777d1c-c675-456d-b092-046f4c97b6dc'
);