mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 06:56:32 +00:00
16 lines
572 B
SQL
16 lines
572 B
SQL
create database azaion;
|
|
-- make sure you connect to azaion db
|
|
|
|
--superadmin user (only for db managing)
|
|
create role azaion_superadmin with login password 'superadmin-pass';
|
|
grant all on schema public to azaion_superadmin;
|
|
|
|
--writer user
|
|
create role azaion_admin with login password 'admin-pass';
|
|
grant connect on database azaion to azaion_admin;
|
|
grant usage on schema public to azaion_admin;
|
|
|
|
--readonly user
|
|
create role azaion_reader with login password 'readonly-pass';
|
|
grant connect on database azaion to azaion_reader;
|
|
grant usage on schema public to azaion_reader; |