Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion infra/compose/projects/saga-mesh/seed/profile-empty.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- saga-mesh / profile=empty
--
-- Creates the six per-app databases and owners for the SDS fixture mesh.
-- Creates the seven per-app databases and owners for the SDS fixture mesh.
-- No application data is seeded here — each app runs its own prisma
-- migrations into its database after this file executes.
--
Expand All @@ -16,6 +16,7 @@ CREATE USER iam_pii WITH PASSWORD 'iam_pii';
CREATE USER saga_user WITH PASSWORD 'password123';
CREATE USER ads_adm WITH PASSWORD 'ads_adm';
CREATE USER ledger WITH PASSWORD 'ledger';
CREATE USER sis WITH PASSWORD 'sis';

-- ── Databases ───────────────────────────────────────────────────────
-- Owner set at creation time so prisma migrate deploy can CREATE SCHEMA.
Expand All @@ -25,6 +26,7 @@ CREATE DATABASE programs OWNER saga_user;
CREATE DATABASE scheduling OWNER saga_user;
CREATE DATABASE ads_adm_local OWNER ads_adm;
CREATE DATABASE ledger_local OWNER ledger;
CREATE DATABASE sis_db OWNER sis;

-- ── Grants (belt-and-suspenders; owner already has these) ──────────
GRANT ALL PRIVILEGES ON DATABASE iam_local TO iam;
Expand All @@ -33,6 +35,7 @@ GRANT ALL PRIVILEGES ON DATABASE programs TO saga_user;
GRANT ALL PRIVILEGES ON DATABASE scheduling TO saga_user;
GRANT ALL PRIVILEGES ON DATABASE ads_adm_local TO ads_adm;
GRANT ALL PRIVILEGES ON DATABASE ledger_local TO ledger;
GRANT ALL PRIVILEGES ON DATABASE sis_db TO sis;

-- The sentinel row in _profile_meta.seeded is written by
-- services/postgres/seed/init-and-seed.sh after this file completes.