Update price-history.js
This commit is contained in:
parent
41250af061
commit
714ad06eae
@ -17,6 +17,11 @@ const Schema = new mongoose.Schema({
|
|||||||
inr: {
|
inr: {
|
||||||
type: Number,
|
type: Number,
|
||||||
required: true
|
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);
|
||||||
Loading…
Reference in New Issue
Block a user