Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | 1x 1x 1x 1x 1x 1x 16x 16x 16x 16x 16x 16x 16x 16x 16x 1x 2x 1x 1x | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.inventoryLevelEntity = exports.InventoryLevels = exports.InventoryLevel = exports.columns = exports.tableName = void 0;
const actual_product_variant_1 = require("./actual-product-variant");
const shipment_1 = require("./shipment");
exports.tableName = 'inventory_level';
exports.columns = [
'id',
'inventory_location_id',
{ column: 'actual_product_variant_id', references: actual_product_variant_1.ActualProductVariant },
'available',
{ column: 'next_shipment_id', references: shipment_1.Shipment },
'sellable_when_sold_out',
'updated_date'
];
class InventoryLevel {
constructor(props) {
this.id = props.id;
this.inventoryLocationId = props.inventoryLocationId;
this.actualProductVariantId = props.actualProductVariantId;
this.actualProductVariant = props.actualProductVariant;
this.available = props.available;
this.nextShipmentId = props.nextShipmentId;
this.nextShipment = props.nextShipment;
this.sellableWhenSoldOut = props.sellableWhenSoldOut;
this.updateDate = props.updateDate;
}
}
exports.InventoryLevel = InventoryLevel;
class InventoryLevels {
constructor({ models }) {
this.models = models;
}
}
exports.InventoryLevels = InventoryLevels;
exports.inventoryLevelEntity = {
tableName: exports.tableName,
columns: exports.columns,
Model: InventoryLevel,
Collection: InventoryLevels,
};
|