Added mobileNo to users model

master
parent b3f4cef1d7
commit abcf4ea45f

@ -10,6 +10,10 @@ const userSchema = new mongoose.Schema({
type: String,
required: [true, "Password is required!"]
},
mobileNo: {
type: String,
required: [true, 'Mobile Number is Required']
},
isAdmin: {
type: Boolean,
default: false

Loading…
Cancel
Save