13 lines
394 B
JavaScript
13 lines
394 B
JavaScript
var mongoose = require('mongoose')
|
|
, Schema = mongoose.Schema;
|
|
|
|
var MarketsSchema = new Schema({
|
|
market: { type: String },
|
|
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); |