Skip to main content

Tenant System

Tenant Types

TypeDescriptionExample
CENTERStandard centerRehab center, pharmacy
WORKSPACEPersonal spaceInstructor’s workspace
PROGRAMSub-unit of centerSpecific therapy program
WHITE_LABELPartner-brandedslowpace.co.kr

Center Lifecycle

Provisioning → Active → (Suspended) → Ended

Provisioning

Center creation includes:
  1. Create center record
  2. Set up default roles and permissions
  3. Configure vertical-specific settings
  4. Create admin membership
  5. Initialize audit log
All 5 steps are wrapped in a database transaction for consistency.

Data Isolation

Every center’s data is isolated through center_id scoping:
  • 200+ tables filtered by center_id
  • Prisma middleware enforces scoping automatically
  • basePrisma for cross-center operations (audited)

Partner Platform

Cronozen supports partner organizations managing multiple centers:
Customer TypeDescription
ADirect center operators
BWhite-label partners
CFranchise networks

Partner APIs

  • GET /api/partner/centers — List managed centers
  • POST /api/partner/centers — Create new center
  • GET /api/partner/stats/dashboard — Dashboard statistics
  • GET /api/partner/audit — Audit log
  • GET /api/partner/members — Member management