zgo/backend/models/price.js

11 lines
282 B
JavaScript
Raw Normal View History

2022-04-11 14:48:34 +00:00
const mongoose = require('mongoose');
const priceSchema = mongoose.Schema({
currency: {type: String, required: true},
price: {type: Number, required: true},
timestamp: {type: Date, required: true, default: Date.now}
});
module.exports = mongoose.model('Price', priceSchema);