Created
October 22, 2019 03:05
-
-
Save shrimp2t/df6a7ea8339c29f560f5b45514642c34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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