import mongoose from 'mongoose';

const sparePartSchema= new mongoose.Schema({
    name:{
        type:String,
        required:true,
    },
    category:{
        type:String,
        required:true,
    },
    quantity:{
        type:Number,
    },
    unitPrice:{
        type:Number,
    },
    totalPrice:{
        type:Number
    }

});

const SparePart = mongoose.model('Spare_Part',sparePartSchema);

export default  SparePart;