In the system business rule that I am working on, a user can have more than one profile. The profiles are: administrator, appraiser and responsible.
For example: So-and-so can be both administrator and appraiser at the same time.
My question is how to map this? I had some ideas but I do not know if this is the best way to do it.
An idea: Create a column in the database for each profile, for example: is_admin, is_responsible, and is_appraiser, and set 0 or 1, according to the user profile.
Another idea: Have a column in the database, to store only one number that will be generated according to the profile.
Exemplo:
Administrador = 0
Avaliador = 1
Responsável = 2
Administrador + Avaliador = 4
These are ideas I had, but I do not know the right way to store it.