import mongoose from "mongoose";

const userSchema = new mongoose.Schema({
    title: {type: String, required: true },
    firstName: { type: String, required: true },
    middleName: { type: String, required: true },
    lastName: { type: String, required: true },
    email: { type: String, required: true, unique: true },
    profileImage:String,
    // profileImage: { type: String, required: true, unique: true },
    aboutme: { type: String, required: true, unique: true },
    city: { type: String, required: true, unique: true }, 
    state: { type: String, required: true, unique: true },
    county: { type: String, required: true, unique: true },
    zip: { type: String, required: true, unique: true },
    password: { type: String, required: true },
    termsconditions:{type: String,},
    userType:{ type: String, required: true },
    verified: { type: Boolean, default: false },
    id: { type: String },
    resetToken: { type: String },
    resetTokenExpiration: { type: String },
    userId:{type:String},
    tokens:[
        {
            token:{
                type:String,
                required:true
            }
        }
    ],
  });

export default mongoose.model("User", userSchema);
