Single Tenant Database Approach #332
Replies: 1 comment
-
You can use one database, with a
There is not only one solution: it depends on your approach (domain isolation or a field "Your tenant" in the login?)
Use a
Take a look at https://github.com/spatie/laravel-stats
I don't know what's your project and your idea, but I'm sure that simplicity wins, ever: promote it. |
Beta Was this translation helpful? Give feedback.
-
If you want to use a single database for tenants, do you still need a landlord database, or can you just have a tenants table in the tenants database?
If you did use a single database (which included the tenants table - for landlord use), how would you go about differentiating between a landlord login and a tenant login?
But if you created a separate landlord database, I presume you need to add a users table for logins.
What if, as a landlord, you wanted to be able to do more than just add/edit tenants, like view statistics about tenant use, how would you go about making the connection to the tenant database?
Am I over complicating the whole multi-tenancy design or are these genuine concerns?
Any advice is greatly appreciated :)
Beta Was this translation helpful? Give feedback.
All reactions