event-driven
Version:
makes building event-driven-architecture easy
16 lines (15 loc) • 606 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventSummary = void 0;
const mongoose_1 = require("mongoose");
const EventSummarySchema = new mongoose_1.Schema({
subject: { type: String, required: true },
childClientGroups: [
{
clientGroup: { type: String, required: true },
count: { type: Number, required: true, default: 0 },
unresolvedErrorCount: { type: Number, required: true, default: 0 },
},
],
}, { timestamps: true });
exports.EventSummary = mongoose_1.model('EventSummary', EventSummarySchema);