Database design for storing food recipes

后端 未结 3 359
傲寒
傲寒 2020-12-25 13:44

I want to make a database of recipes that I like, but I\'m having trouble designing it. I want to have at least two tables:

  1. Recipe table (Has description, ingr
3条回答
  •  一生所求
    2020-12-25 14:05

    You could consider something like a folder of text files, with a full-text index of some sort.

    Or a table like Recipes(ID, LikeRatio, Description as text). Again with a full-text search.

    Theorically you could use a normalized model like the one @Mike suggested. But looking at actual recipes, it needs to be more flexible. For example in this model, there's no evidence of the use at some step of the outcome of a previous step.

提交回复
热议问题