Overview
Plan the migration from current shared database to per-tenant isolated databases.
Key Questions
- How to extract existing team data from shared DB?
- Schema management: Same schema per tenant or customizable?
- Migration tooling: pg_dump/restore, custom scripts?
- Cutover strategy: Big bang or gradual?
- How to handle cross-tenant features (if any)?
Current Data Model
- drives (shared, with ownerId)
- pages (shared, with driveId FK)
- chat_messages (shared)
- users (shared across teams)
Deliverable
Migration playbook with rollback plan.
Current State
The control plane (apps/control-plane/) handles tenant provisioning with per-tenant Docker projects and encrypted secrets. Multi-tenant isolation tests exist at packages/lib/src/__tests__/multi-tenant-isolation.test.ts. This discovery is about the actual data migration path from shared to isolated databases.
Related
Overview
Plan the migration from current shared database to per-tenant isolated databases.
Key Questions
Current Data Model
Deliverable
Migration playbook with rollback plan.
Current State
The control plane (
apps/control-plane/) handles tenant provisioning with per-tenant Docker projects and encrypted secrets. Multi-tenant isolation tests exist atpackages/lib/src/__tests__/multi-tenant-isolation.test.ts. This discovery is about the actual data migration path from shared to isolated databases.Related