-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Labels
Description
I have a superuser which belongs to several tenants. Data such as first_name and last_name are kept in a separate members table as recommended. I understand your explanations in https://github.com/dsaronin/milia#inviting-additional-usermembers as follows:
- I need one
userrecord for this superuser - I need entries in
tenants_usersto define the membership of this user to the according tenants - And: I need one
memberrecord for this user for each tenant this user can access (this is because thememberstable is tenanted; only theuserstable isn't tenanted)
However:
- your docs say there needs to be a
has_one :memberrelation on theuser(and not ahas_many). - It doesn't feel clean to replicate the members data (such as
first_nameandlast_name)ntimes if the user belongs toncompanies.
What is the recommended way to do it with milia?
Reactions are currently unavailable