"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.BorrowerDataModel = exports.BorrowerDataSchema = exports.BorrowerDataOptionModel = exports.BorrowerDataOptionSchema = void 0;
const mongoose_1 = __importDefault(require("mongoose"));
const _models_1 = require("./_models");
exports.BorrowerDataOptionSchema = new mongoose_1.default.Schema({
    order: {
        type: Number,
        required: true,
    },
    name: {
        type: String,
        required: true,
    },
    type: {
        type: String,
        required: true,
    },
    isActive: {
        type: Boolean,
    },
}, { timestamps: false, versionKey: false });
exports.BorrowerDataOptionModel = mongoose_1.default.model(_models_1.MODEL_NAMES.borrowerDataOptions, exports.BorrowerDataOptionSchema);
exports.BorrowerDataSchema = new mongoose_1.default.Schema({
    dataOption: {
        type: mongoose_1.default.Schema.Types.ObjectId,
        ref: _models_1.MODEL_NAMES.borrowerDataOptions,
        required: true,
    },
    dataValue: {
        type: mongoose_1.default.Schema.Types.Mixed,
        required: true,
    },
}, { timestamps: false, versionKey: false });
exports.BorrowerDataModel = mongoose_1.default.model(_models_1.MODEL_NAMES.borrowerData, exports.BorrowerDataSchema);
