Added mobileNo to users model

master
parent b3f4cef1d7
commit abcf4ea45f

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

Loading…
Cancel
Save