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
I need entries in tenants_users to define the membership of this user to the according tenants
And: I need one member record for this user for each tenant this user can access (this is because the members table is tenanted; only the users table isn't tenanted)
However:
your docs say there needs to be a has_one :member relation on the user (and not a has_many).
It doesn't feel clean to replicate the members data (such as first_name and last_name) n times if the user belongs to n companies.
What is the recommended way to do it with milia?
The text was updated successfully, but these errors were encountered:
@dsaronin I worked through all of the open issues. This is the last one pending right now (and it has been written by myself). Do you have any suggestions regarding this one?
I have a superuser which belongs to several tenants. Data such as
first_name
andlast_name
are kept in a separatemembers
table as recommended. I understand your explanations in https://github.com/dsaronin/milia#inviting-additional-usermembers as follows:user
record for this superusertenants_users
to define the membership of this user to the according tenantsmember
record for this user for each tenant this user can access (this is because themembers
table is tenanted; only theusers
table isn't tenanted)However:
has_one :member
relation on theuser
(and not ahas_many
).first_name
andlast_name
)n
times if the user belongs ton
companies.What is the recommended way to do it with milia?
The text was updated successfully, but these errors were encountered: