import mongoose from "mongoose";

const fuelPumpSchema = new mongoose.Schema({

    pumpName:{
        type:String,
        required:true,
        unique:true
    },

    fuelTypeId:{
        type:mongoose.Schema.Types.ObjectId,
        ref:"FuelType",
        required:true
    },

    active:{
        type:Boolean,
        default:true
    }

},
{
    timestamps:true
}
);

export default mongoose.model ("FuelPump", fuelPumpSchema);