The relation between the user, privilege, user_assignment_privilege is understood, but why is there a direct relation between the user and the privilege? now the privilege has a userId property, but we know that the privilege has many userIds ..?
This is a good question. Actually we could do without the 'direct relation between the user and privilege'. But we need it for convenience for GET operations. This means that when we have a user object, we would also have his privileges without having the query the user_assignment repository. The same is true the other way.
Legen You are outside of this World,, Well Structured, Good Presentation. God Bless You.. Sir if we are looking a Multitenancy way for this project
As always, you did a great video, appreciate you ;)
Always!
The relation between the user, privilege, user_assignment_privilege is understood,
but why is there a direct relation between the user and the privilege? now the privilege has a userId property, but we know that the privilege has many userIds ..?
This is a good question.
Actually we could do without the 'direct relation between the user and privilege'. But we need it for convenience for GET operations. This means that when we have a user object, we would also have his privileges without having the query the user_assignment repository. The same is true the other way.