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
12 lines
437 B
JavaScript
12 lines
437 B
JavaScript
var mongoose = require('mongoose'),
|
|
Schema = mongoose.Schema;
|
|
|
|
var AddressSchema = new Schema({
|
|
a_id: { type: String, unique: true, index: true},
|
|
name: { type: String, default: '', index: true},
|
|
received: { type: Number, default: 0, index: true },
|
|
sent: { type: Number, default: 0, index: true },
|
|
balance: {type: Number, default: 0, index: true},
|
|
}, {id: false});
|
|
|
|
module.exports = mongoose.model('Address', AddressSchema); |