import mongoose from 'mongoose'

const { Schema } = mongoose

const userSchema = new Schema({
    customId: String,
    garageName: String,
    ownerName: String,
    email: {
        type: String,
        unique: true,
        index: true,
    },
    phoneNumber: {
        type: String,
        unique: true,
        index: true,
    },
    password: String,
})

const User = mongoose.model('User', userSchema)

export default User