Use enum instead of number for user-type #62
Labels
backend
Back-end job
good first issue
Good for newcomers
help wanted
Extra attention is needed
priority:low
Low priority task
To-do
We are using numbers (0,1,2) to represent user-type throughout our code. This can be ambiguous and confusing for developers. Instead, let's use an enum type - TYPE_ADMIN, TYPE_EB, TYPE_USER, etc. Let's have these enums in the user model itself and translate them to numbers for using with Mongo.
Checklist
The text was updated successfully, but these errors were encountered: