2025-10-14 22:28:15 +02:00
|
|
|
create role postgraphile_user nosuperuser nocreatedb nocreaterole noinherit noreplication nobypassrls
|
2025-10-14 21:11:54 +02:00
|
|
|
login password '9013';
|
2025-10-14 22:28:15 +02:00
|
|
|
|
2025-10-14 23:27:54 +02:00
|
|
|
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;
|