Food ERD
Tables (4)
Food (재료)
- 재료 번호 (food_id) — bigInteger — Primary key — NOT NULL
- 재료 개수 (food_count) — bigInteger — NOT NULL
- 재료 이름 (food_name) — char(20) — NOT NULL
- 입고 날짜 (food_income_date) — date — NOT NULL
- 유통 기한 (food_expiration_date) — date — NOT NULL
- 유저 번호 (user_id) — Foreign key → User.유저 번호 — NOT NULL
Recipe (레시피)
- 레시피 번호 (recipe_id) — bigInteger — Primary key — NOT NULL
- 레시피 이름 (recipe_name) — char(50) — NOT NULL
- 레시피 설명 (recipe_description) — text — NOT NULL
- 유저 번호 (user_id) — Foreign key → User.유저 번호 — NOT NULL
Recipe_Food (레시피와 재료)
- 레시피 재료 번호 (recipe_food_id) — bidInteger — Primary key — NOT NULL
- 레시피 번호 (recipe_id) — bigInteger — Foreign key → Recipe.레시피 번호 — NOT NULL
- 재료 번호 (food_id) — bigInteger — Foreign key → Food.재료 번호 — NOT NULL
- 재료 양 (food_amount) — bitInteger — NOT NULL
User (유저)
- 유저 번호 (user_id) — Primary key — NOT NULL