Skip to content

Use enum instead of number for user-type #62

@shubham1172

Description

@shubham1172

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

  • Change the model
  • Change all occurrences in code

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions