From 714ad06eae5cd2874f9330d86b028fa68991c423 Mon Sep 17 00:00:00 2001 From: tripathyr Date: Tue, 22 Oct 2024 18:26:30 +0530 Subject: [PATCH] Update price-history.js --- models/price-history.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);