2020-07-07 14:53:54 +00:00
|
|
|
CREATE DATABASE management;
|
|
|
|
CREATE DATABASE auth;
|
|
|
|
CREATE DATABASE notification;
|
|
|
|
CREATE DATABASE adminapi;
|
|
|
|
CREATE DATABASE authz;
|
2020-07-28 07:42:21 +00:00
|
|
|
CREATE DATABASE eventstore;
|
2020-07-07 14:53:54 +00:00
|
|
|
|
|
|
|
|
2020-07-28 07:42:21 +00:00
|
|
|
CREATE USER eventstore;
|
|
|
|
GRANT SELECT, INSERT ON DATABASE eventstore TO eventstore;
|
2020-07-07 14:53:54 +00:00
|
|
|
|
2020-07-28 07:42:21 +00:00
|
|
|
CREATE USER management;
|
|
|
|
GRANT SELECT, INSERT, UPDATE, DELETE ON DATABASE management TO management;
|
|
|
|
GRANT SELECT, INSERT ON DATABASE eventstore TO management;
|
2020-07-07 14:53:54 +00:00
|
|
|
|
|
|
|
CREATE USER adminapi;
|
|
|
|
GRANT SELECT, INSERT, UPDATE, DELETE, DROP ON DATABASE adminapi TO adminapi;
|
2020-07-28 07:42:21 +00:00
|
|
|
GRANT SELECT, INSERT ON DATABASE eventstore TO adminapi;
|
2020-07-07 14:53:54 +00:00
|
|
|
GRANT SELECT, INSERT, UPDATE, DROP, DELETE ON DATABASE auth TO adminapi;
|
|
|
|
GRANT SELECT, INSERT, UPDATE, DROP, DELETE ON DATABASE authz TO adminapi;
|
|
|
|
GRANT SELECT, INSERT, UPDATE, DROP, DELETE ON DATABASE management TO adminapi;
|
|
|
|
GRANT SELECT, INSERT, UPDATE, DROP, DELETE ON DATABASE notification TO adminapi;
|
|
|
|
|
|
|
|
CREATE USER auth;
|
|
|
|
GRANT SELECT, INSERT, UPDATE, DELETE ON DATABASE auth TO auth;
|
2020-07-28 07:42:21 +00:00
|
|
|
GRANT SELECT, INSERT ON DATABASE eventstore TO auth;
|
2020-07-07 14:53:54 +00:00
|
|
|
|
|
|
|
CREATE USER notification;
|
|
|
|
GRANT SELECT, INSERT, UPDATE, DELETE ON DATABASE notification TO notification;
|
2020-07-28 07:42:21 +00:00
|
|
|
GRANT SELECT, INSERT ON DATABASE eventstore TO notification;
|
2020-07-07 14:53:54 +00:00
|
|
|
|
|
|
|
CREATE USER authz;
|
|
|
|
GRANT SELECT, INSERT, UPDATE, DELETE ON DATABASE authz TO authz;
|
2020-07-28 07:42:21 +00:00
|
|
|
GRANT SELECT, INSERT ON DATABASE eventstore TO authz;
|
2020-07-07 14:53:54 +00:00
|
|
|
GRANT SELECT, INSERT, UPDATE ON DATABASE auth TO authz;
|