// models/shift.js

start();
function start () {
  'use strict';

  const mongoose = require('mongoose');
  
  const ItemSchema = new mongoose.Schema({
    username: { type: String, required: true, unique: true },
    password: { type: String, required: true },
  });
  
  const User = mongoose.model('User', ItemSchema);
  
  module.exports = User;
}

"use strict";

const mongoose = require("mongoose");

const ItemSchema = new mongoose.Schema({
    username:       { type: String, required: true, unique: true },
    password:       { type: String, required: true },
    email:          { type: String, required: false },
    firstName:      { type: String, required: false },
    lastName:       { type: String, required: false }
});

const User = mongoose.model("User", ItemSchema);

module.exports = User;

Add email and name fields to the database User model
Add email and name fields to the database User model
