Fenixhack / alfarroba

📝 A complete hackathon tool ! Current status: In development. Learn more: https://docs.google.com/document/d/1FPnlrUNStnpJ5KJAag_XdAsPicH-BE4ABXWiBzenANw/edit?usp=sharing Temp Mockups: https://pr.to/A1KGHD/
GNU Affero General Public License v3.0
3 stars 1 forks source link

User role in mongodb user schema #1

Closed semsomi closed 6 years ago

semsomi commented 6 years ago

Create a user role attribute for the user model of mongodb. This should be in the root-level, so same as email password etc.

 role: {
    type: String,
    required: true,
    enum: {
      values: ['organizer', 'volunteer', 'participant', 'mentor', 'sponsor', 'investor']
    }
  }