diff --git a/models/price-history.js b/models/price-history.js index 85344b2..adcaece 100644 --- a/models/price-history.js +++ b/models/price-history.js @@ -17,6 +17,11 @@ const Schema = new mongoose.Schema({ inr: { type: Number, required: true + }, + count: { + type: Number, // New field to track the number of updates for the day + default: 1 } }); -module.exports = mongoose.model('PriceHistory', Schema); \ No newline at end of file + +module.exports = mongoose.model('PriceHistory', Schema);