import mongoose from 'mongoose';



const stocktransactionSchema=new mongoose.Schema({
    TransactionId:{type:Number,required:true,unique:true},
    TransactionDate:{type:Date,default:Date.now},
    QuantityMoved:{type:Number,required:true},
    TransactionType:{type:String,required:true},
    UserId:{type:String,required:true,ref:'user'},
    WarehouseCode:{type:String,required:true,ref:'warehouse'},
    ProductCode:{type:String,required:true,ref:'products'},


    
})
export default mongoose.model("stocktransaction",stocktransactionSchema);