import mongoose from 'mongoose';


const productSchema=new mongoose.Schema({
    ProductCode:{type:String,required:true,unique:true},
    ProductName:{type:String,required:true},
    Category:{type:String,required:true},
    QuantityInStock:{type:Number,required:true},
    UnitPrice:{type:String,required:true},
    SupplierName:{type:String,required:true},
    DateRecorded:{type:Date,default:Date.now}
})
export default mongoose.model("products",productSchema);