umc_week1
테이블 (8)
가게 (store_tbl)
- storeId (store_id) — bigint — 기본 키 — NOT NULL
- regionId (region_id) — bigint — 외래 키 → 지역.regionId — NOT NULL
- storeName (store_name) — string
- createdAt (created_at) — datetime(6)
- updatedAt (updated_at) — datetime(6)
리뷰 (review_tbl)
- reviewId (review_id) — bigint — 기본 키 — NOT NULL
- storeId (store_id) — bigint — 외래 키 → 가게.storeId — NOT NULL
- userId (user_id) — bigint — 외래 키 → 사용자.userId — NOT NULL
- reviewContent (review_content) — string
- score — float
- createdAt (created_at) — datetime(6)
- updatedAt (updated_at) — datetime(6)
미션 (mission_tbl)
- missionId (mission_id) — bigint — 기본 키 — NOT NULL
- storeId (store_id) — bigint — 외래 키 → 가게.storeId — NOT NULL
- description — string
- point — int
- createdAt (created_at) — datetime(6)
- updatedAt (updated_at) — datetime(6)
사용자 (user_tbl)
- userId (user_id) — bigint — 기본 키 — NOT NULL
- regionId (region_id) — bigint — 외래 키 → 지역.regionId — NOT NULL
- userName (user_name) — varchar(15)
- sex — varchar(10)
- birth — date
- address — string
- createdAt (created_at) — datetime(6)
- updatedAt (updated_at) — datetime(6)
사용자_미션 (user_mission_tbl)
- userMissionId (user_mission_id) — bigint — 기본 키 — NOT NULL
- missionId (mission_id) — bigint — 외래 키 → 미션.missionId — NOT NULL
- userId (user_id) — bigint — 외래 키 → 사용자.userId — NOT NULL
- status — varchar(10)
- createdAt (created_at) — datetime(6)
- updatedAt (updated_at) — datetime(6)
사용자_선호_음식 (user_fav_food_tbl)
- userId (user_id) — bigint — 외래 키 → 사용자.userId — NOT NULL
- foodId (food_id) — bigint — 외래 키 → 음식 종류.foodId — NOT NULL
- createdAt (created_at) — datetime(6)
- updatedAt (updated_at) — datetime(6)
음식 종류 (food_category_tbl)
- foodId (food_id) — bigint — 기본 키 — NOT NULL
- foodName (food_name) — varchar(10)
- createdAt (created_at) — datetime(6)
- updatedAt (updated_at) — datetime(6)
지역 (region_tbl)
- regionId (region_id) — bigint — 기본 키 — NOT NULL
- regionName (region_name) — varchar(20)
- createdAt (created_at) — datetime(6)
- updatedAt (updated_at) — datetime(6)