import mongoose from 'mongoose'

const adminSchema = new mongoose.Schema({
    adminName : {
        type : String,
        required : true
    },
    email:{
        type : String,
        required : true
    },
    password : {
        type : String,
        required : true
    },
    token : {
        type : String,
        default : ""
    }
},{minimize:false}) 

const adminModel = mongoose.models.Admin || mongoose.model("Admin",adminSchema)
export default adminModel