"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FinancialComplianceSettingsSchema = void 0;
const mongoose_1 = __importDefault(require("mongoose"));
const _models_1 = require("./_models");
const mongooseLeanId = require('../plugins/id.plugin');
exports.FinancialComplianceSettingsSchema = new mongoose_1.default.Schema({
    isDeleted: {
        type: Boolean,
        default: false
    },
    invoiceSentDate: {
        type: Date,
        required: false,
        default: null,
    },
    dueDate: {
        type: Date,
        required: false,
        default: null,
    },
    stopFundingDate: {
        type: Date,
        required: false,
        default: null,
    },
    managementEmails: [{
            email: {
                type: String,
                trim: true,
                required: false,
            },
            title: {
                type: String,
                trim: true,
                required: false,
            },
            isActive: {
                type: Boolean,
                required: false,
            }
        }],
    financialEmails: [{
            email: {
                type: String,
                trim: true,
                required: false,
            },
            title: {
                type: String,
                trim: true,
                required: false,
            },
            isActive: {
                type: Boolean,
                required: false,
            }
        }],
    __v: { type: Number, select: false },
});
exports.FinancialComplianceSettingsSchema.plugin(mongooseLeanId);
exports.default = mongoose_1.default.model(_models_1.MODEL_NAMES.financialComplianceSettings, exports.FinancialComplianceSettingsSchema);
