I'm very new to Python and I'm trying to write a sort of recipe organizer to get acquainted with the language. Basically, I am unsure how how I should be storing the recipes. For now, the information I want to store is:
- Recipe name
- Ingredient names
- Ingredient quantities
- Preparation
I've been thinking about how to do this with the built-in sqlite3, but I know nothing about database architecture, and haven't been able to find a good reference.
I suppose one table would contain recipe names and primary keys. Preparation could be in a different table with the primary key as well. Would each ingredient/quantity pair need its own table.
In other words, there would be a table for ingredientNumberOne
, and each recipe's first ingredient, with the quantity, would go in there. Then each time recipe comes along with more ingredients than there are tables, a new table would be created.
Am I even correct in assuming that sqlite3 is sufficient for this task?