Skip to main content

Relational schemas

Modules that store relational data keep it in PostgreSQL, each in its own schema.

Database role​

Modules connect with the apps role, which must exist before the migration scripts run:

CREATE USER "apps" WITH PASSWORD '<password>';
GRANT TEMPORARY ON DATABASE ONG TO "apps";
GRANT USAGE ON SCHEMA information_schema TO "apps";
GRANT SELECT ON information_schema.tables TO "apps";
SELECT rolname FROM pg_roles WHERE rolname = 'apps';

Messaging​

The tables of the messaging module are in the conversation schema. The SQL scripts that create them are in the conversation module, under src/main/resources/sql.

Flash messages​

Flash messages are short announcements shown on the home page of the portal. They are part of the communication service. Their tables are in the flashmsg schema, and the SQL scripts that create them are in the timeline module, under src/main/resources/sql.