What is multi-tenancy in SaaS?
It is how one running application serves many separate customers, called tenants, while keeping each tenant's data isolated from the others. Almost every SaaS is multi-tenant. The architecture question is how strong that isolation is and how it is enforced at the database level.What is schema based isolation?
In Postgres, a schema is a named namespace of tables inside one database. Schema based isolation gives each tenant its own schema, so their tables are physically separate, while still living in a single database you operate once. It sits between a shared table approach and a fully separate database per tenant.Why not just put a tenant ID column on every table?
You can, and it is simple to start, but it leans entirely on every query remembering to filter by tenant. One forgotten filter leaks data across customers. Schema isolation makes the separation structural instead of a discipline every query has to maintain, which matters a lot as the codebase and team grow.