You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the reason that I want to do this way it's because
I'm assuming users might have many tenants and also belongs to different tenants,
at the same time, users might have different roles for each document in tenants
if I always add roles from the user perspective, I'm worried about do I adding too much data to a table (Role table) and it might cause
performance issue when I do queries, another reason is I think separate role table by resources is easier to manage role for resources
do you have any advice for this case? thanks
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to create a multi-tenant app
here are my relationships of models
and I want to add some roles to manage tenants and documents
according to documentation, I should implement like below
but I'm wondering can I separate roles table by different resources
something like this
the reason that I want to do this way it's because
I'm assuming users might have many tenants and also belongs to different tenants,
at the same time, users might have different roles for each document in tenants
if I always add roles from the user perspective, I'm worried about do I adding too much data to a table (Role table) and it might cause
performance issue when I do queries, another reason is I think separate role table by resources is easier to manage role for resources
do you have any advice for this case? thanks
The text was updated successfully, but these errors were encountered: