Isolation, by design.
Tenant isolation with forced Postgres row-level security, scoped per transaction.
One of the decisions behind Marquee OS.Multi-tenant SaaS
Marquee OS
A multi-tenant SaaS for marquees and wedding halls: bookings, calendar, pricing, payments, branded documents and reminders, with a super-admin console that runs the whole platform.
Explore the details
What it does
- Bookings with clash handling, expiring holds and refunds.
- Calendar with a day panel and maintenance blocks.
- Pricing engine, payment schedules, numbered receipts and an overdue list.
- Branded bills, quotations, statements and thermal receipts.
- In-app and email reminders.
- Reports, CSV import, kitchen sheet, a product tour and an in-app help centre.
- Super-admin console for tenants, custom domains, branding, feature flags and support sign-in.
Engineering decisions
- Double-booking is prevented by the database itself: a GiST exclusion constraint over booking time ranges, surfaced by the API as a clean conflict.
- Tenant isolation with forced Postgres row-level security, scoped per transaction.
- Permission-based roles gated by feature flags; custom roles can be switched off and back on with assignments restored.
- Custom domain per hall with on-demand TLS: Caddy asks the API before issuing a certificate.
- Reminders dispatched through BullMQ queues; branded PDFs rendered by headless Chromium.
- Idempotency keys, concurrency-safe per-tenant numbering and an audit log.
Next.js · NestJS · TypeScript · PostgreSQL · Prisma · Redis · BullMQ · Docker · Caddy