Closed countrdd closed 2 months ago
The idea here is that you would have multiple identical databases named after the tenant. Say you have a white-labeled e-commerce and 3 companies using it. You would have 3 companies:
This means you'd have three databases, say they're called:
If Company2 accesses the API, they would pass x-tenant-id=company-2
in their header to get the correct database.
In the documentation, you talk about passing x-tenant-id in from a drop down list, where would you store such a list for multi-tenancy?
Would you need to have a master database that only systems admins could access to add and remove tenants?