GlobalMetric.mjs 383 B

123456789101112131415161718
  1. import mongoose from '../infrastructure/Mongoose.mjs'
  2. const { Schema } = mongoose
  3. export const GlobalMetricSchema = new Schema(
  4. {
  5. _id: { type: String, required: true },
  6. value: {
  7. type: Number,
  8. default: 0,
  9. },
  10. },
  11. {
  12. collection: 'globalMetrics',
  13. minimize: false,
  14. }
  15. )
  16. export const GlobalMetric = mongoose.model('GlobalMetric', GlobalMetricSchema)