ProjectHistoryFailure.mjs 551 B

123456789101112131415161718192021222324
  1. import mongoose from '../infrastructure/Mongoose.mjs'
  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. export const ProjectHistoryFailure = mongoose.model(
  19. 'ProjectHistoryFailure',
  20. ProjectHistoryFailureSchema
  21. )