const mongoose = require('mongoose');

const vehicleBrandSchema = new mongoose.Schema({
    brandName: {
        type: String,
        required: [true, 'Brand name is required'],
        trim: true,
        unique: true
    },
    logo: {
        type: String,
        // required: [true, 'Brand logo is required']
    },
    status: {
        type: String,
        enum: ['active', 'inactive'],
        default: 'active',
        index: true
    },
    country: {
        type: String,
        required: [true, 'Brand country is required'],
        trim: true
    },
    createdBy: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User'
    }
}, { timestamps: true });

module.exports = mongoose.model('VehicleBrand', vehicleBrandSchema);
