Open SolviQorda opened 6 years ago
think this requires a better understanding of Auth, and how that's implemented on yesod. There is the existing system on the template that can presumably be adapted.
My thoughts with the datatype would be for 3 different int values for the 3 different roles, and then just some validation at some point. Pretty sure we can't do a custom datatype cos it doesn't have a way of writing them to the db.
The other option would be bools for each. That could help handle edge cases - e.g. a therapist that also wants to get electrolysis.
Therapist User Admin