I was recently involved in a project that I needed to make a permission/role system, but I couldn't reach a conclusion on the matter.
Should I save the roles in a table and use them as an FK in the user table or just save the numbers of the type of roles in the user table, and document what types are possible to have in the system?
Any documentation that can help me and you can send me I appreciate it.
obs: i'm using hibernate and jwt to do the solution.
Aucun commentaire:
Enregistrer un commentaire