Files
Exchange/server/db/globalMontlyPrice.js
2025-11-07 22:24:40 +01:00

31 lines
775 B
JavaScript
Executable File

"use strict";
exports.__esModule = true;
exports.GlobalMonthlyPrice = void 0;
var mongoose = require("mongoose");
var globalMonthlyPriceSchema = new mongoose.Schema({
timeStamp: {
type: Date
},
currencyId: {
type: mongoose.ObjectId
},
price: {
price: {
type: Number
},
min: {
type: Number
},
max: {
type: Number
}
},
volume: {
type: Number
}
});
// This functions will execute if the password field is modified.
// This method compares the password which is stored in database and
// the password which the user entered. It is used in Login.
exports.GlobalMonthlyPrice = mongoose.model('GlobalMonthlyPrice', globalMonthlyPriceSchema);