Commit d184decf authored by Xysto's avatar Xysto 💬
Browse files

add email to user schema

parent 7c99d311
......@@ -12,6 +12,11 @@ const userSchema = new Schema({
type: String,
required: true
email: {
type: String,
required: true,
unique: true
role: String,
phone: {
type: String,
......@@ -25,4 +30,4 @@ const userSchema = new Schema({
resources: [{type: ObjectId, ref: 'Resource'}]
mongoose.model('Users', userSchema);
\ No newline at end of file
mongoose.model('Users', userSchema);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment