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 am trying to build a sport app and will have 4 roles(admin, coach, athlete, parent). So I will need to have table user_roles where I will join userId roleId and clubId. As Club will have many teams it will be easy to know what role that user is having in team, and will attach clubId and role in login response
So it will look like something like this in login response: role: { id: 2, name: coach, clubId: 1 }
Needed some guidence on implementation.
Cheers
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to build a sport app and will have 4 roles(admin, coach, athlete, parent). So I will need to have table user_roles where I will join userId roleId and clubId. As Club will have many teams it will be easy to know what role that user is having in team, and will attach clubId and role in login response
So it will look like something like this in login response:
role: { id: 2, name: coach, clubId: 1 }
Needed some guidence on implementation.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions