Each app owns its database connection. Stores are provisioned in-cluster via GitOps (halort-infra).
| Store | Cluster service | Primary consumer | Role |
|---|---|---|---|
| MariaDB | mariadb:3306 | Surfaces/Platform API | Tenant business data (Prisma 6) |
| PostgreSQL | postgresql:5432 | Notifications | Templates, delivery logs |
| Redis | redis:6379 | Notifications | BullMQ job queue |
Marketing web and the docs site are static/content apps — no app database.
Platform schema (high level)
MariaDB holds tenants, users/memberships, iuran, surat, kampanye, berita/agenda, pasar listings, and related modules — all keyed by tenant_id. Details live in halort-platform/prisma/.