gqlgen-pg-todo-example
gqlgen-pg-todo-example copied to clipboard
Multi-tenancy table/column based
It would be great to see how you solve the multi-tenancy problem, perhaps with one of the most comfortable ways for startups, the one with the tenant_id
column in tables.
On the topic:
- https://github.com/ErwinM/acts_as_tenant
- https://github.com/influitive/apartment
- https://github.com/go-pg/pg/issues/1179
- https://stackoverflow.com/questions/60109795/auto-table-based-multi-tenancy-where-clause-in-postgresql
Thanks for your work.
I'll add a bit of logic. The issue here is that typically multi tenancy involves database segregation and I kind of lean away from adding that much complexity as it will totally confuse newer folks
typically multi tenancy involves database segregation
Not with tenant_id
column in tables, right?