FoodMissionApp
Tables (8)
FoodCategory (Untitled2)
- Key (id) — Primary key — NOT NULL
- Field (name) — varchar(15)
Missions (Untitled6)
- Key (id) — Primary key — NOT NULL
- Field (content)
- Key (restaurant_id) — Foreign key → Restaurant.Key — NOT NULL
- 회원번호 (user_id) — bigint — Foreign key → User.회원번호 — NOT NULL
- Field (created_at)
- Field2 (completed_at)
Missons_detail (Untitled8)
- Key (amount) — Primary key — NOT NULL
- Field2 (point) — bigint
- Key (Missions_id) — Foreign key → Missions.Key — NOT NULL
Restaurant (Untitled4)
- Key (id) — Primary key — NOT NULL
- Key (food_category_id) — Foreign key → FoodCategory.Key — NOT NULL
- Field (name)
Review (Untitled5)
- Key (id) — Primary key — NOT NULL
- Field (rating) — int
- 리뷰내용 (content) — text
- 식당번호 (restaurant_id) — bigint — Foreign key → Restaurant.Key — NOT NULL
- 회원번호 (user_id) — bigint — Foreign key → User.회원번호 — NOT NULL
- 작성시간 (created_at)
- 수정시간 (updated_at)
User (Untitled)
- 회원번호 (id) — bigint — Primary key — NOT NULL
- Field (name) — varchar(20)
- Field (gender) — varchar(10)
- Field2 (age) — int
- Field3 (address) — varchar(40)
- Field (spec_address) — varchar(40)
- Field4 (created_at) — datetime(6)
- Field (updatetd_at) — datetime(6)
- Field2 (status) — varchar(15)
- Field (inactive_date) — datetime
- Field
UserFoodCategory (Untitled3)
- Key (id) — Primary key — NOT NULL
- 회원번호 (user_id) — bigint — Foreign key → User.회원번호 — NOT NULL
- Key (food_category_id) — Foreign key → FoodCategory.Key — NOT NULL
User_Missons (Untitled7)
- Field
- 회원번호 (User_id) — bigint — Foreign key → User.회원번호 — NOT NULL
- Key (Mission_id) — Foreign key → Missions.Key — NOT NULL