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
13 lines
432 B
JavaScript
13 lines
432 B
JavaScript
var mongoose = require('mongoose'),
|
|
Schema = mongoose.Schema;
|
|
|
|
var AddressTXSchema = new Schema({
|
|
a_id: { type: String, index: true},
|
|
blockindex: {type: Number, default: 0, index: true},
|
|
txid: { type: String, lowercase: true, index: true},
|
|
amount: { type: Number, default: 0, index: true}
|
|
}, {id: false});
|
|
|
|
AddressTXSchema.index({a_id: 1, blockindex: -1});
|
|
|
|
module.exports = mongoose.model('AddressTx', AddressTXSchema); |