channeladvisor-localdb
Version:
library that keeps the local inventory database updated
27 lines (26 loc) • 1.29 kB
JavaScript
// Generated by LiveScript 1.3.1
(function(){
var inventoryItem, inventoryItemPrice, inventoryItemQuantity, inventoryItemAttribute, runLog, define, out$ = typeof exports != 'undefined' && exports || this;
inventoryItem = require('./inventory-item');
inventoryItemPrice = require('./inventory-item-price');
inventoryItemQuantity = require('./inventory-item-quantity');
inventoryItemAttribute = require('./inventory-item-attribute');
runLog = require('./run-log');
out$.define = define = function(){
var InventoryItem, InventoryItemPrice, InventoryItemQuantity, InventoryItemAttribute, RunLog;
out$.InventoryItem = InventoryItem = inventoryItem.define.call(this);
out$.InventoryItemPrice = InventoryItemPrice = inventoryItemPrice.define.call(this);
out$.InventoryItemQuantity = InventoryItemQuantity = inventoryItemQuantity.define.call(this);
out$.InventoryItemAttribute = InventoryItemAttribute = inventoryItemAttribute.define.call(this);
out$.RunLog = RunLog = runLog.define.call(this);
InventoryItem.hasOne(InventoryItemQuantity, {
as: "Quantity"
});
InventoryItem.hasOne(InventoryItemPrice, {
as: "Price"
});
return InventoryItem.hasMany(InventoryItemAttribute, {
as: "Attributes"
});
};
}).call(this);