Update price-history.js

This commit is contained in:
tripathyr 2024-10-22 18:26:30 +05:30 committed by GitHub
parent 41250af061
commit 714ad06eae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
module.exports = mongoose.model('PriceHistory', Schema);