21 lines
542 B
SQL
21 lines
542 B
SQL
create role postgraphile_user nosuperuser nocreatedb nocreaterole noinherit noreplication nobypassrls
|
|
login password '9013';
|
|
|
|
grant usage
|
|
on schema public
|
|
to postgraphile_user;
|
|
|
|
-- Pour toutes les tables du schéma public
|
|
grant select
|
|
on all tables
|
|
in schema public
|
|
to postgraphile_user;
|
|
|
|
-- Privilège par défaut pour que chaque nouvelle table créée dans public
|
|
-- donnera automatiquement le droit SELECT à postgraphile_user.
|
|
alter default privileges
|
|
in schema public
|
|
grant select
|
|
on tables
|
|
to postgraphile_user;
|