const user = new db.User({
firstName: req.body.firstName,
lastName: req.body.lastName,
password: req.body.password,
email: req.body.email,
dateCreated: req.body.dateCreated
})
I know there's a way to assign values to an object by giving the attributes the same name as their source but I'm not sure how this would work.