"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.LoanStatementStatusModel = exports.LoanStatementStatusSchema = void 0;
const mongoose_1 = __importDefault(require("mongoose"));
const _models_1 = require("./_models");
exports.LoanStatementStatusSchema = new mongoose_1.default.Schema({
    year: {
        type: Number,
        required: true,
    },
    month: {
        type: Number,
        required: true,
    },
    productId: {
        type: mongoose_1.default.Schema.Types.ObjectId,
        ref: _models_1.MODEL_NAMES.loanProducts,
        required: true,
    },
    actual: {
        type: Boolean,
    },
    locked: {
        type: Boolean,
    },
    lastCalculated: {
        type: Date,
    },
    __v: { type: Number, select: false },
}, { timestamps: true });
exports.LoanStatementStatusModel = mongoose_1.default.model(_models_1.MODEL_NAMES.loanStatementStatus, exports.LoanStatementStatusSchema);
