Last active
December 11, 2015 13:18
-
-
Save hungryzi/4606634 to your computer and use it in GitHub Desktop.
2nd try to improve inventory data modelling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample record for 'catalog_items' | |
catalog_item = | |
id: 42 | |
serialized: 1 | |
category_id: 8 | |
location_with_quantity: [1, 3] | |
# Sample record for 'inventory_items' | |
inventory_item = | |
id: 1 | |
catalog_item_id: 42 | |
quantity: 8 | |
location_id: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment