-
Notifications
You must be signed in to change notification settings - Fork 7
/
local-db-init.sql
28 lines (20 loc) · 1003 Bytes
/
local-db-init.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
CREATE ROLE cloudsqliamuser;
create role "bruker-api-kafka-user";
create role "notifikasjon-bruker-api";
create user sa_notifikasjon_dataprodukt_exporter;
CREATE DATABASE "bruker-model";
GRANT ALL PRIVILEGES ON DATABASE "bruker-model" TO postgres;
CREATE DATABASE "produsent-model";
GRANT ALL PRIVILEGES ON DATABASE "produsent-model" TO postgres;
CREATE DATABASE "kafka-reaper-model";
GRANT ALL PRIVILEGES ON DATABASE "kafka-reaper-model" TO postgres;
CREATE DATABASE "statistikk-model";
GRANT ALL PRIVILEGES ON DATABASE "statistikk-model" TO postgres;
CREATE DATABASE "ekstern-varsling-model";
GRANT ALL PRIVILEGES ON DATABASE "ekstern-varsling-model" TO postgres;
CREATE DATABASE "skedulert-harddelete-model";
GRANT ALL PRIVILEGES ON DATABASE "skedulert-harddelete-model" TO postgres;
CREATE DATABASE "kafka-backup-model";
GRANT ALL PRIVILEGES ON DATABASE "kafka-backup-model" TO postgres;
CREATE DATABASE "dataprodukt-model";
GRANT ALL PRIVILEGES ON DATABASE "dataprodukt-model" TO postgres;