2019-05-27 10:33:22 -07:00
|
|
|
var mongoose = require('mongoose')
|
|
|
|
|
, Schema = mongoose.Schema;
|
|
|
|
|
|
|
|
|
|
var MarketsSchema = new Schema({
|
2020-11-23 15:33:54 -07:00
|
|
|
market: { type: String, index: true },
|
2019-05-27 10:33:22 -07:00
|
|
|
summary: { type: Object, default: {} },
|
|
|
|
|
chartdata: { type: Array, default: [] },
|
|
|
|
|
buys: { type: Array, default: [] },
|
|
|
|
|
sells: { type: Array, default: [] },
|
|
|
|
|
history: { type: Array, default: [] },
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
module.exports = mongoose.model('Markets', MarketsSchema);
|