20c0a382a3
-Replace tabs with double-spaces -Betting spacing and lining up of code functions -Add missing semi-colons -Remove extra characters and spaces where applicable -Remove commented-out code fragments -Add missing 2021 date to LICENSE -Small touchups and other misc nitpickings
15 lines
473 B
JavaScript
15 lines
473 B
JavaScript
var mongoose = require('mongoose'),
|
|
Schema = mongoose.Schema;
|
|
|
|
var MarketsSchema = new Schema({
|
|
market: { type: String, index: true },
|
|
coin_symbol: { type: String },
|
|
pair_symbol: { 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); |