OverviewHow to OnboardUse Case DiagramSequence DiagramClass DiagramComponent DiagramDeployment Diagram

Deployment Diagram — Runtime Topology

The app is a single Next.js deployment unit (no separate backend service) talking to two external managed services: a PostgreSQL database via Prisma, and Supabase Storage for private document objects, accessed through short-lived signed URLs rather than public buckets.

Notes

  • All application state (employees, leave, payroll, etc.) lives in PostgreSQL — Supabase is object storage only, not the system of record.
  • Browsers never talk to PostgreSQL directly; every read/write goes through a Next.js API route protected by middleware.ts and getServerSession.
  • The install/build step runs prisma generate and prisma db push against the configured DATABASE_URL before the app starts.