umc
테이블 (7)
favorite (선호하는 음식)
- favorite_id (Key) — Long — 기본 키 — NOT NULL
- user_id (Key2) — Long — 외래 키 → user.user_id — NOT NULL
- menu (음식 이름) — Enum — NOT NULL
mission (미션)
- mission_id (Key) — Long — 기본 키 — NOT NULL
- store_id (Key3) — Long — 외래 키 → 가게.store_id — NOT NULL
- title (미션 제목) — String — NOT NULL
- content (미션 내용) — String — NOT NULL
- point (미션 포인트) — int — NOT NULL
- deadline (미션 디데이) — int — NOT NULL
- award (미션 성공 보상) — String — NOT NULL
review (리뷰)
- review_id (Key) — Long — 기본 키 — NOT NULL
- user_id (Key2) — Long — 외래 키 → user.user_id — NOT NULL
- store_id (Key3) — Long — 외래 키 → 가게.store_id — NOT NULL
- title (리뷰 제목) — String — NOT NULL
- content (리뷰 내용) — String
- score (리뷰 점수) — String — NOT NULL
- created_at (리뷰 작성 일자) — DateTime — NOT NULL
- owner_comment (사장님 답변) — String
review_image (리뷰 사진)
- review_image_id (Key) — Long — 기본 키 — NOT NULL
- review_id (Key2) — Long — 외래 키 → review.review_id — NOT NULL
- user_id (Key22) — Long — 외래 키 → review.user_id — NOT NULL
- store_id (Key3) — Long — 외래 키 → review.store_id — NOT NULL
- image (사진 url) — String
user (유저)
- user_id (Key) — Long — 기본 키 — NOT NULL
- username (이름) — String — NOT NULL
- point (포인트) — int
- gender (성별) — Enum — NOT NULL
- address (주소) — String — NOT NULL
- provider (소셜로그인) — Enum — NOT NULL
- achieved_mission (달성한 미션 갯수) — int — NOT NULL
user_mission (Untitled2)
- user_mission_id (Key) — 기본 키 — NOT NULL
- user_id (Key2) — Long — 외래 키 → user.user_id — NOT NULL
- mission_id (Key3) — Long — 외래 키 → mission.mission_id — NOT NULL
- store_id (Key32) — Long — 외래 키 → mission.store_id — NOT NULL
- mission_status (미션 완료 여부) — Enum — NOT NULL
- certification_number (미션 인증 번호) — String — NOT NULL
가게 (Untitled)
- store_id (Key) — Long — 기본 키 — NOT NULL
- name (가게 이름) — String — NOT NULL
- category (카테고리) — Enum — NOT NULL
- address (가게 주소) — String — NOT NULL
- open_time (오픈 시간) — TIME — NOT NULL
- close_time (마감 시간) — TIME — NOT NULL
- info (가게 정보) — String — NOT NULL