반찬고(캡디)
테이블 (8)
레시피 (recipes)
- recipe_id (Id) — BINGINT — 기본 키 — NOT NULL
- 이름 (name) — VARCHAR
- 소개 (introduction) — VARCHAR
- 이미지 (image) — VARCHAR
- 링크 (link) — VARCHAR
- 음식의 양 (servings) — INT
- 요리 시간 (cookingTime) — INT
- 난이도 (difficulty) — ENUM
북마크한 레시피 (user_bookmarked_recipes)
- user_id — BIGINT — 외래 키 → 사용자.user_id — NOT NULL
- recipe_id — BINGINT — 외래 키 → 레시피.recipe_id — NOT NULL
사용자 (users)
- user_id (Id) — BIGINT — 기본 키 — NOT NULL
식재료 (ingredients)
- ingredient_id (Id) — BIGINT — 기본 키 — NOT NULL
- 이름 (name) — VARCHAR
- 분류 (kind) — VARCHAR
식재료 창고 (container)
- container_d (id) — BIGINT — 기본 키 — NOT NULL
- user_id — BIGINT — 외래 키 → 사용자.user_id — NOT NULL
창고내 식재료 (container_ingredients)
- id — 기본 키 — NOT NULL
- ingredient_id — BIGINT — 외래 키 → 식재료.ingredient_id — NOT NULL
- container_id — BIGINT — 외래 키 → 식재료 창고.container_d — NOT NULL
- 소비기한 (expirationDate) — DATE
- 등록일 (updatedDate) — DATE
추천레시피 (user_recommanded_recipes)
- recipe_id — BINGINT — 외래 키 → 레시피.recipe_id — NOT NULL
- user_id — BIGINT — 외래 키 → 사용자.user_id — NOT NULL
필요한 식재료 (recipe_need_ingredients)
- recipe_id — BINGINT — 외래 키 → 레시피.recipe_id — NOT NULL
- ingredient_id — BIGINT — 외래 키 → 식재료.ingredient_id — NOT NULL