task push notification

This commit is contained in:
Sibunnayak 2024-09-05 11:16:37 +05:30
parent 20748ccd5d
commit 4f2f7d7114

View File

@ -18,6 +18,9 @@ const ProductRecordSchema = new mongoose.Schema({
type: Number,
required: true,
},
comments:{
type: String,
},
});
// Define main Sales schema
@ -55,9 +58,6 @@ const SalesSchema = new mongoose.Schema({
type: Date,
required: true
},
comments:{
type: String,
},
products: [ProductRecordSchema],
}, { timestamps: true, versionKey: false });