Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Member data for superuser #63

Open
jekuno opened this issue Oct 7, 2015 · 1 comment
Open

Member data for superuser #63

jekuno opened this issue Oct 7, 2015 · 1 comment
Labels

Comments

@jekuno
Copy link
Owner

jekuno commented Oct 7, 2015

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 user record for this superuser
  • 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:

  1. your docs say there needs to be a has_one :member relation on the user (and not a has_many).
  2. 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?

@jekuno
Copy link
Owner Author

jekuno commented Jan 29, 2017

@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?

@jekuno jekuno added the Question label Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant