Open samstephen opened 9 years ago
A user is assigned to a recipe. When selecting a user's recipe(s), the recipe(s) can be located using the user_id foreign key.
A category is assigned to a recipe. When selecting a recipe, the category_id foreign key can be used.
A recipe tag is an object that contains a recipe_id and tag_id. This is useful because there are many tags and recipes, one tag can belong to many recipes and a recipe can have many tags.
Tables
users
categories
recipes
tags
recipe_tags