won-dto
Version:
Won DTO For WonCore
28 lines • 809 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventErrorHook = exports.eventErrorSchema = void 0;
const mongoose_1 = require("mongoose");
const baseModel_1 = require("../base/baseModel");
exports.eventErrorSchema = new mongoose_1.Schema({
type: {
type: String,
},
errorName: {
type: String,
},
errorStack: {
type: mongoose_1.Schema.Types.Mixed,
},
errorMessage: {
type: String,
},
data: {
type: mongoose_1.Schema.Types.Mixed,
},
status: {
type: String
},
}, { timestamps: true });
// eventErrorSchema.index({ name: "text" }, { weights: { name: 2 } });
exports.EventErrorHook = new baseModel_1.ModelHook(exports.eventErrorSchema);
//# sourceMappingURL=evenError.schema.js.map