@jginorio I don’t really understand your particular use case, but I worked on an inventory tracking application a little while ago.
Physical items usually have a barcode (and a SKU) to identify them. So you would keep track of how many units of a particular SKU you have in one location. So you may have multiple locations: warehouses, stores, etc. So with this, there are three entities:
- SKU
- Location
- Stock level
Stock flows between locations, and customers, via channels (online shop, physical shop, etc). So you could have stock level adjustments to record the additions and deductions of stock. When stock comes in, you record a positive stock level adjustment. When stock is sold, you record a deduction. If an item is returned, that would be an addition. You can then find the level of stock of a particular item, and a particular item at a particular location if needs be.