ProjectHistoryFailure.js 547 B

123456789101112131415161718192021222324
  1. const mongoose = require('../infrastructure/Mongoose')
  2. const { Schema } = mongoose
  3. const ProjectHistoryFailureSchema = new Schema(
  4. {
  5. project_id: String,
  6. ts: Date,
  7. queueSize: Number,
  8. error: String,
  9. stack: String,
  10. attempts: Number,
  11. history: Schema.Types.Mixed,
  12. resyncStartedAt: Date,
  13. resyncAttempts: Number,
  14. requestCount: Number,
  15. },
  16. { collection: 'projectHistoryFailures', minimize: false }
  17. )
  18. exports.ProjectHistoryFailure = mongoose.model(
  19. 'ProjectHistoryFailure',
  20. ProjectHistoryFailureSchema
  21. )