-
Notifications
You must be signed in to change notification settings - Fork 1
/
create_users.sql
executable file
·57 lines (29 loc) · 1.7 KB
/
create_users.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
create role cheirrs_user with login password 'passwd';
create role cheirrs_admin with superuser login password 'passwd';
create role cheirrs_oseer_admin with superuser login password 'passwd';
create role a_horse_admin with superuser login password 'passwd';
create role chubba_morris_user with login password 'passwd';
create role chubba_morris_admin with superuser login password 'passwd';
create role chubba_morris_oseer_admin with superuser login password 'passwd';
create role convey_it_user with login password 'passwd';
create role convey_it_admin with superuser login password 'passwd';
create role convey_it_oseer_admin with superuser login password 'passwd';
create role the_general_user with login password 'passwd';
create role the_general_admin with superuser login password 'passwd';
create role the_general_oseer_admin with superuser login password 'passwd';
alter role gmu with superuser login password 'gmu';
GRANT USAGE ON SCHEMA a_horse TO gmu;
GRANT USAGE ON SCHEMA cheirrs TO gmu;
GRANT USAGE ON SCHEMA cheirrs_oseer TO gmu;
GRANT USAGE ON SCHEMA chubba_morris_oseer TO gmu;
GRANT USAGE ON SCHEMA chubba_morris TO gmu;
GRANT USAGE ON SCHEMA convey_it_oseer TO gmu;
GRANT USAGE ON SCHEMA convey_it TO gmu;
GRANT USAGE ON SCHEMA iot TO gmu;
GRANT USAGE ON SCHEMA the_general_oseer TO gmu;
GRANT USAGE ON SCHEMA the_general TO gmu;
GRANT USAGE ON SCHEMA tiger TO gmu;
GRANT USAGE ON SCHEMA tiger_data TO gmu;
GRANT USAGE ON SCHEMA topology TO gmu;
GRANT USAGE ON SCHEMA public TO gmu;
ALTER ROLE gmu SET search_path TO public, cheirrs, cheirrs_oseer, chubba_morris, chubba_morris_oseer, convey_it, convey_it_oseer, das_fuhrwerk, iot, the_general, the_general_oseer, tiger, tiger_data, topology;