Mar 29, 2020
I am building a recipe / food related app for a client. I need a recipe record to point to the ingredient records it depends on, but it also needs to have a mapping of measurements to ingredients.
I think I capture the essence of what I am trying to accomplish adequately in this JSON:
name: 'Bowl of Cereal',
// links to records in the Ingredients table.
note: '(not stale)'
note: '(whole or skim)'
directions: [ /* ... */ ]
I believe what I need to do is create a table for measurements with this^ measurement structure enforced. Is this correct or is there an alternative?