cr-database/mongodb/Judgement.js

43 lines
1.5 KiB
JavaScript
Raw Permalink Normal View History

2023-02-11 21:03:39 -05:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Severity = void 0;
const tslib_1 = require("tslib");
const typegoose_1 = require("@typegoose/typegoose");
var Severity;
(function (Severity) {
Severity[Severity["Low"] = 0] = "Low";
Severity[Severity["Medium"] = 1] = "Medium";
Severity[Severity["High"] = 2] = "High";
})(Severity = exports.Severity || (exports.Severity = {}));
class Judgement {
}
tslib_1.__decorate([
(0, typegoose_1.prop)({ required: true }),
tslib_1.__metadata("design:type", String)
], Judgement.prototype, "jid", void 0);
tslib_1.__decorate([
(0, typegoose_1.prop)({ required: true }),
tslib_1.__metadata("design:type", String)
], Judgement.prototype, "userID", void 0);
tslib_1.__decorate([
(0, typegoose_1.prop)({ required: true }),
tslib_1.__metadata("design:type", String)
], Judgement.prototype, "enteredBy", void 0);
tslib_1.__decorate([
(0, typegoose_1.prop)({ required: true }),
tslib_1.__metadata("design:type", Number)
], Judgement.prototype, "severity", void 0);
tslib_1.__decorate([
(0, typegoose_1.prop)({ required: true }),
tslib_1.__metadata("design:type", Date)
], Judgement.prototype, "date", void 0);
tslib_1.__decorate([
(0, typegoose_1.prop)(),
tslib_1.__metadata("design:type", Date)
], Judgement.prototype, "expires", void 0);
tslib_1.__decorate([
(0, typegoose_1.prop)({ required: true }),
tslib_1.__metadata("design:type", String)
], Judgement.prototype, "description", void 0);
exports.default = Judgement;