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
14 lines
490 B
JavaScript
14 lines
490 B
JavaScript
var mongoose = require('mongoose'),
|
|
Schema = mongoose.Schema;
|
|
|
|
var PeersSchema = new Schema({
|
|
createdAt: { type: Date, expires: 86400, default: Date.now() },
|
|
address: { type: String, default: "", index: true },
|
|
port: { type: String, default: "" },
|
|
protocol: { type: String, default: "" },
|
|
version: { type: String, default: "" },
|
|
country: { type: String, default: "" },
|
|
country_code: { type: String, default: "" }
|
|
});
|
|
|
|
module.exports = mongoose.model('Peers', PeersSchema); |