import mongoose from 'mongoose';

const stockInSchema = new mongoose.Schema({
    SparePart_id:{
        type:mongoose.Schema.Types.ObjectId,
        ref:"Spare_Part"
    },
    StockInQuantity:{
        type:Number
    },
    stockInDate:{
        type:Date,
        default:Date.now 
    },
});

const StockIn =  mongoose.model('Stock_In',  stockInSchema);

export default StockIn;