Added firstName and lastName to user model

master
parent 06103d67e5
commit 1b021ed3bd

@ -2,6 +2,14 @@ const mongoose = require("mongoose");
const userSchema = new mongoose.Schema({
firstName: {
type: String,
required: [true, 'First Name is Required']
},
lastName: {
type: String,
required: [true, 'Last Name is Required']
},
email: {
type: String,
required: [true, "Email is required!"]

Loading…
Cancel
Save