campingmontagut/deploy/schema_camper.sql
jordi fita mas 5d0861824a Add authentication relations, views, and functions for PostgreSQL
Most of them are exactly the same as we use for Numerus, but with the
main application schema changed to camper.

Closes #1
2023-07-22 01:59:12 +02:00

15 lines
277 B
PL/PgSQL

-- Deploy camper:schema_camper to pg
-- requires: roles
begin;
create schema camper;
comment on schema camper is 'The main application schema';
grant usage on schema camper to guest;
grant usage on schema camper to employee;
grant usage on schema camper to admin;
commit;