const mongoose= require('mongoose')

const salesSchema = new mongoose.Schema({
    salesDate:{
        type:Date,
        required:true,
    },
    quantitySold:{
        type:String,
        required:true
    },
    totalAmount:{
        type:String,
        required:true
    },
    paymentStatus:{
        type:String,
    },
    product_FK:{
       type:mongoose.Schema.Types.ObjectId, ref:'Product'
    }
})

module.exports = mongoose.model('Sales',salesSchema)