"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.InventorySeasonalEntryModel = exports.InventorySeasonalEntrySchema = void 0;
const mongoose_1 = __importDefault(require("mongoose"));
const _models_1 = require("./_models");
exports.InventorySeasonalEntrySchema = new mongoose_1.default.Schema({
    borrowerId: {
        type: mongoose_1.default.Schema.Types.ObjectId,
        ref: _models_1.MODEL_NAMES.borrowers,
        required: true,
    },
    items: [{
            sku: {
                type: String,
                required: true,
                trim: true,
            },
            start: {
                type: Date,
                required: true,
            },
            end: {
                type: Date,
                required: true,
            },
            advanceRate: {
                type: Number,
                required: true,
            },
        }],
    __v: { type: Number, select: false },
}, { timestamps: true });
exports.InventorySeasonalEntryModel = mongoose_1.default.model(_models_1.MODEL_NAMES.inventorySeasonalRates, exports.InventorySeasonalEntrySchema);
