"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ComplianceItemModel = exports.ComplianceItemSchema = exports.EComplianceItemStatus = void 0;
const mongoose_1 = __importDefault(require("mongoose"));
const _models_1 = require("./_models");
const mongooseLeanId = require('../plugins/id.plugin');
var EComplianceItemStatus;
(function (EComplianceItemStatus) {
    EComplianceItemStatus["NEW"] = "NEW";
    EComplianceItemStatus["ACCEPTED"] = "ACCEPTED";
    EComplianceItemStatus["REJECTED"] = "REJECTED";
    EComplianceItemStatus["IN_REVIEW"] = "IN_REVIEW";
})(EComplianceItemStatus || (exports.EComplianceItemStatus = EComplianceItemStatus = {}));
exports.ComplianceItemSchema = new mongoose_1.default.Schema({
    name: {
        type: String,
        trim: true,
        required: true,
    },
    importanceScore: {
        type: Number,
        required: true,
    },
    notificationDays: {
        type: Number,
        required: true,
    },
    multiplier: {
        type: Number,
        required: true,
    },
    __v: { type: Number, select: false },
}, { timestamps: true });
exports.ComplianceItemSchema.plugin(mongooseLeanId);
exports.ComplianceItemModel = mongoose_1.default.model(_models_1.MODEL_NAMES.complianceItems, exports.ComplianceItemSchema);
