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
17 lines
542 B
JavaScript
17 lines
542 B
JavaScript
var mongoose = require('mongoose'),
|
|
Schema = mongoose.Schema;
|
|
|
|
var HeavySchema = new Schema({
|
|
coin: { type: String },
|
|
lvote: { type: Number, default: 0 },
|
|
reward: { type: Number, default: 0 },
|
|
supply: { type: Number, default: 0 },
|
|
cap: { type: Number, default: 0 },
|
|
estnext: { type: Number, default: 0 },
|
|
phase: { type: String, default: 'N/A'},
|
|
maxvote: { type: Number, default: 0 },
|
|
nextin: { type: String, default: 'N/A'},
|
|
votes: { type: Array, default: [] }
|
|
});
|
|
|
|
module.exports = mongoose.model('Heavy', HeavySchema); |