Shared schema + row-level security
All tenants in the same tables with a tenant_id column, enforced by row-level security policies.
Strengths
- One schema to migrate and one pool of connections.
- Row-level security enforces tenant scoping in the database.[1] PostgreSQL: Row Security Policies, Primary, Not yet verified by an editor
Weaknesses
- Isolation is logical: a policy or scoping bug affects every tenant.
Choose it when
- Many small tenants with the same data model.
Limitations
- Per-tenant restore and residency are hard.