"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.LoanTransactionFileModel = exports.LoanTransactionFileSchema = void 0;
const mongoose_1 = __importDefault(require("mongoose"));
const _models_1 = require("./_models");
exports.LoanTransactionFileSchema = new mongoose_1.default.Schema({
    userUploaded: {
        type: String,
        trim: true,
    },
    transactionsId: {
        type: [mongoose_1.default.Schema.Types.ObjectId],
        ref: _models_1.MODEL_NAMES.loanTransactions,
        required: true,
    },
    statementIds: {
        type: [mongoose_1.default.Schema.Types.ObjectId],
        ref: _models_1.MODEL_NAMES.loanStatements,
        required: true,
    },
    fileName: {
        type: String,
        trim: true,
        required: true,
    },
    sheetName: {
        type: String,
        trim: true,
        required: true,
    },
    effectiveDate: {
        type: String,
        required: true,
        trim: true,
    },
    __v: {
        type: Number,
        select: false,
    },
}, { timestamps: true });
exports.LoanTransactionFileModel = mongoose_1.default.model(_models_1.MODEL_NAMES.loanTransactionsFiles, exports.LoanTransactionFileSchema);
