You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
349 B

  1. "use strict";
  2. /**
  3. * BruteForce schema
  4. *
  5. * @type {<Mongoose.Schema>}
  6. */
  7. var bruteForceSchema = Mongoose.Schema({
  8. _id: { type: String, index: 1 },
  9. data: {
  10. count: Number,
  11. lastRequest: Date,
  12. firstRequest: Date
  13. },
  14. expires: { type: Date, index: { expires: '1d' } }
  15. });
  16. module.exports = Mongoose.model('Bruteforce', bruteForceSchema);