I made a few a adjustments to my user model. The signup should require the first name, last name and the email should be unique.
const userModel = new Schema(
{
firstName: {
type: String,
required: true
},
lastName: {
type: String,
required: true
},
email: {
type: String,
required: true,
unique: true
},
}
);
Day 24
Top comments (0)