Multi-Tenant SaaS Dashboard
One dashboard to run teams, workspaces, projects, and billing.
01 · The problem
Organizations often stitch together separate tools for auth, project management, and billing. This dashboard is a multi-tenant workspace platform that lets an organization securely manage teams, workspaces, projects, and user roles from a single, centralized application.
02 · Architecture
Frontend
Backend
Database
Chosen for a flexible document structure, easy schema evolution, and a natural fit for nested workspace/project data — with Prisma layered on top for type-safe access.
Authentication
Session-based auth, protected routes, secure login flow.
Authorization
Permission checks happen before a user can reach a protected resource.
Billing
Subscription plans, recurring payments, premium workspace tiers.
Deployment
Automatic CI/CD, serverless deployment, fast global CDN.
03 · Request / generation flow
04 · Challenges & solutions
Challenge
Prisma 7 removed support for directUrl inside the schema file, which broke migrations and deployments that depended on it.
Solution
Migrated the connection configuration into prisma.config.ts, updated the Prisma client generation process, and adjusted environment variables to match Prisma 7's new configuration — restoring migrations and deploy compatibility.
Challenge
Enforcing multi-tenant data isolation so one workspace could never see another's data.
Solution
Every workspace owns its own projects and users. Each request validates workspace ownership before returning any data, preventing cross-workspace access.
05 · Key features
06 · By the numbers
07 · Full tech stack