import mongoose, { Schema } from "mongoose";

const detailSchema=new Schema({
    country: String,
    state: String,
    district: String,
    pincode: String,
    address: String,
    phone: String,
    logo: String,
    garageType: { type: String, enum: ['bike', 'car', 'both'], default: 'bike' },
    gst: String,
    userId:{
        type:mongoose.Schema.Types.ObjectId,
        ref:'User',
        required:true,
        unique:true
    }
})
const GarageDetail=mongoose.model('garage-detail',detailSchema)
export default GarageDetail