admin
admin copied to clipboard
Multiple tenants support
Does qor/admin support multitenancy? It would be useful for building small cheap SaaS used by many or lots of clients. For example, consider following common use-cases:
- blog - one shared application, one shared database with tables prefixed with tenantId column,
- eshop - one shared application, one shared database with multiple schemas, or multiple databases.
I have got an idea, which would benefit from multi-tenancy, as it's focused to be cheap solution, where each tenant would be having very light load.
one shared application, one shared database with multiple schemas, or multiple databases.
I guess, based on General Configuration, that multiple AdminConfig instances would do the job.
one shared database with tables prefixed with tenantId column,
This might require more tweaking, at least:
- filter visible entries: using
Default Scopebased on Search & Scopes & Filters documentation, - automatically populate
tenant_id: I have no clue,..
you should add tenant_id field to every model. than you can filter via default scope.