SupabaseS
Supabase5mo ago
SG0101

Multi-Tenancy allowed with 1 Acconut (1Project)? || Best Practice for a Multi-Tenant SaaS App

Hello everyone!

I'm building a SaaS invoicing application that will serve multiple, distinct companies (e.g., starting with 30 clients).

My plan is to use a single Supabase project for all of them. I intend to implement multi-tenancy by adding a tenant_id (or customer_id) column to every relevant table (like invoices, customers, etc.) and then use Row-Level Security (RLS) policies to ensure that users from one company can only see, edit, and create data associated with their own tenant_id.

I just want to confirm: Is this the standard and recommended approach for building this kind of multi-tenant application on Supabase, as opposed to the (much more expensive and difficult to maintain) alternative of creating a separate project for each client?

Thanks for your guidance
image.png
Was this page helpful?