Files
purple-explorer/models/peers.js
T

15 lines
489 B
JavaScript
Raw Normal View History

2019-05-27 10:33:22 -07:00
var mongoose = require('mongoose')
, Schema = mongoose.Schema;
var PeersSchema = new Schema({
createdAt: { type: Date, expires: 86400, default: Date.now()},
2020-11-23 15:33:54 -07:00
address: { type: String, default: "", index: true },
port: { type: String, default: "" },
2019-05-27 10:33:22 -07:00
protocol: { type: String, default: "" },
version: { type: String, default: "" },
2020-11-23 19:09:05 -07:00
country: { type: String, default: "" },
country_code: { type: String, default: "" }
2019-05-27 10:33:22 -07:00
});
module.exports = mongoose.model('Peers', PeersSchema);