text: const mongoose = require("mongoose"),
    passportLocalMongoose = require("passport-local-mongoose");
  
  var UserSchema = new mongoose.Schema({
    username: {
      type: String,
      unique: true,
      required: true
    },
    password: {
      type: String,
      required: true
    },
    email: {
      type: String,
      unique: true,
      required: true
    },
    isAdmin: {
      type: Boolean,
      default: false,
      required: true
    }
  });
  
  UserSchema.plugin(passportLocalMongoose);
  
  module.exports = mongoose.model("User", UserSchema);
  