Skip to content

Instantly share code, notes, and snippets.

@shrimp2t
Created October 22, 2019 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shrimp2t/df6a7ea8339c29f560f5b45514642c34 to your computer and use it in GitHub Desktop.
Save shrimp2t/df6a7ea8339c29f560f5b45514642c34 to your computer and use it in GitHub Desktop.
// Proxy
const ProxySchema = Schema({
ip: { type: String, required: true, unique: true },
status: String,
last_update: Date,
last_use: Date,
blocked_date: Date,
blocked_count: { type: Number, default: 0 },
error_count: { type: Number, default: 0 },
note: String,
cookies: String
});
const Proxy = mongoose.model('Proxy', ProxySchema);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment