import mongoose from "mongoose";
import passportLocalMongoose from "passport-local-mongoose";

// Username, passport, hash, etc. are plugged in by passport-local-mongoose
const userSchema = new mongoose.Schema({
  email: {
    type: String,
  },
  firstName: {
    type: String,
  },
  lastName: {
    type: String,
  },
  createdAt: {
    type: Date,
    default: Date.now
  },
});

userSchema.plugin(passportLocalMongoose);

const user = mongoose.model("user", userSchema);

export default user;
