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 },
|
2020-11-20 14:49:14 -07:00
|
|
|
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);
|