"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.InventoryManualEntryModel = exports.InventoryManualEntrySchema = void 0;
const mongoose_1 = __importDefault(require("mongoose"));
const _models_1 = require("./_models");
exports.InventoryManualEntrySchema = new mongoose_1.default.Schema({
    bbcDateId: {
        type: mongoose_1.default.Schema.Types.ObjectId,
        ref: _models_1.MODEL_NAMES.BBCDates,
        required: true,
    },
    items: [{
            inventoryName: {
                type: String,
                required: true,
            },
            totalQty: {
                type: Number,
                required: true,
            },
            totalValue: {
                type: Number,
                required: true,
            },
            ineligible: {
                type: Number,
                required: true,
            },
            advanceRate: {
                type: Number,
                required: true,
            },
            availability: {
                type: Number,
                required: true,
            }
        }],
    __v: { type: Number, select: false },
}, { timestamps: true });
exports.InventoryManualEntryModel = mongoose_1.default.model(_models_1.MODEL_NAMES.inventoryManualEntries, exports.InventoryManualEntrySchema);
