Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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