SolviQorda / get-zapped

A web app platform for electrolysis therapists to offer services to trans people seeking hair removal.
1 stars 0 forks source link

Rewrite data schema to reflect different users #18

Open SolviQorda opened 6 years ago

SolviQorda commented 6 years ago

Therapist User Admin

SolviQorda commented 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.