Skip to content
Snippets Groups Projects
Commit a551e171 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Add admin field to user model

parent 8deefecb
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -82,7 +82,7 @@ var UserSchema = new Schema({
origin: {
type: String,
enum: ['LDE', 'SimCAQ'],
required: true
required: [true, 'O campo origem é obrigatória e aceita apenas os valores "LDE" ou "SimCAQ"']
},
verified: {
type: Boolean,
......@@ -93,6 +93,10 @@ var UserSchema = new Schema({
},
citerole: {
type: String
},
admin: {
type: Boolean,
default: false
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment