Architecture Extensibility — V1 Does Not Block Future Phases

V1 design: org_id on every entity  |  RBAC with org-scoping  |  API-first  |  Modular Monolith
Time / Adoption
V1FOUNDATION
  • Fabbi builds (13 weeks)
  • DOCTOR · SITE_ADMIN
  • COMPLIANCE_ADMIN · SUPER_ADMIN
  • Clinical Core + Shared Services
  • Doctor Portal (mobile + web)
  • Admin / Compliance Portal
  • Cannametrics Data Foundation
  • org_id + RBAC + API-first from Day 1
V1.5Add role: PATIENT
  • Patient Portal
  • Patient role + permissions set
  • Patient Portal (read + prescriptions)
  • PATIENT role on existing auth
  • No schema migration needed
V2Add org type + PHARMACIST
  • Pharmacy Portal
  • PHARMACIST role
  • Pharmacy Portal
  • pharmacy_org_type on same model
  • No V1 tables changed
V3SERVICE_ACCOUNT reads V1 tables
  • Cannametrics Intelligence
  • Cannametrics Dashboards
  • Analytics on existing V1 tables
  • Historical data collected from Day 1
  • No migration needed
V4MANUFACTURER role
  • Manufacturer Portal
  • Manufacturer Portal
  • Manufacturer.org_type
  • Same auth/tenant model
V5Public Growth Layer
  • Marketing & SEO
  • Public marketing site (Next.js)
  • Doctor/pharmacy finder
  • No DB connection to V1