1st_WEEK_UMC
테이블 (10)
가게 (Store)
- 가게id (store_id) — int — 기본 키 — NOT NULL
- 지역id (region_id) — uuid — 외래 키 → 지역.지역id — NOT NULL
- 가게이름 (store_name) — string
- 주소 (address) — string
- 가게번호 (contact_number) — string
- 활성화여부 (is_active) — boolean
가게정보 (store_info)
- 정보id (info_id) — int — 기본 키 — NOT NULL
- 가게id (store_id) — int — 외래 키 → 가게.가게id — NOT NULL
- 지역id (region_id) — uuid — 외래 키 → 가게.지역id — NOT NULL
- 가게정보 (store_info) — text
- 메뉴정보 (menu_items) — json
- 가게사진 (photos) — json
- 마지막 갱신 시간 (latest_update) — datetime(60)
리뷰 (Review)
- 리뷰id (review_id) — int — 기본 키 — NOT NULL
- 가게id (store_id) — int — 외래 키 → 가게.가게id — NOT NULL
- 지역id (region_id) — uuid — 외래 키 → 가게.지역id — NOT NULL
- 사용자id (user_id) — uuid — 외래 키 → 사용자.사용자id — NOT NULL
- 리뷰내용 (review_content) — text
- 작성시간 (created_time) — datetime
- 업데이트 시간 (updated_time) — datetime
- 리뷰사진 (review_pic) — json
- 별점 (rating) — int
리뷰 답변 (review_reply)
- 답변id (reply_id) — int — 기본 키 — NOT NULL
- 리뷰id (review_id) — int — 외래 키 → 리뷰.리뷰id — NOT NULL
- 가게id (store_id) — int — 외래 키 → 리뷰.가게id — NOT NULL
- 지역id (region_id) — uuid — 외래 키 → 리뷰.지역id — NOT NULL
- 사용자id (user_id) — uuid — 외래 키 → 리뷰.사용자id — NOT NULL
- 답변내역 (reply_content) — text
- 작성시간 (created_date) — datetime(6)
- 업데이트시간 (updated_date) — datetime(6)
- Field
미션 (Mission)
- 미션id (mission_id) — int — 기본 키 — NOT NULL
- 가게id (store_id) — int — 외래 키 → 가게.가게id — NOT NULL
- 지역id (region_id) — uuid — 외래 키 → 가게.지역id — NOT NULL
- 미션_이름 (mission_title) — String
- 보상 포인트 (reword_points) — int
- 시작시간 (start_date) — datetime(6)
- 종료시간 (end_date) — datetime
- 진행여부 (is_active) — boolean
사용자 (User)
- 사용자id (user_id) — uuid — 기본 키 — NOT NULL
- 사용자 이름 (username) — String
- email — String
- 휴대폰번호 (phonenum) — String
- 성별 (gender) — int
- 비밀번호 (password_hash) — String
유저 정보 (User_profile)
- 프로필_id (profile_id) — uuid — 기본 키 — NOT NULL
- 사용자id (user_id) — uuid — 외래 키 → 사용자.사용자id — NOT NULL
- 닉네임 (nickname) — string
- 프로필이미지 (profile_image) — string
- 포인트 (total_points) — int
- 레벨 (level) — int
- 업데이트 날짜 (updated_date) — datetime(6)
유저가 수행한 미션 (user_mission)
- 유저가 수행한 미션 (user_mission_id) — int — 기본 키 — NOT NULL
- 사용자id (user_id) — uuid — 외래 키 → 사용자.사용자id — NOT NULL
- 미션id (mission_id) — int — 외래 키 → 미션.미션id — NOT NULL
- 가게id (store_id) — int — 외래 키 → 미션.가게id — NOT NULL
- 지역id (region_id) — uuid — 외래 키 → 미션.지역id — NOT NULL
- 시작한시간 (started_date) — datetime(6)
- 완료한 시간 (completed_date) — datetime(6)
- 진행여부 (status) — string
- 완료인증이미지 (proof_img) — string
유저포인트 (user_point)
- 포인트 id (point_id) — int — 기본 키 — NOT NULL
- 사용자id (user_id) — uuid — 외래 키 → 사용자.사용자id — NOT NULL
- 미션id (mission_id) — int — 외래 키 → 미션.미션id — NOT NULL
- 가게id (store_id) — int — 외래 키 → 미션.가게id — NOT NULL
- 지역id (region_id) — uuid — 외래 키 → 미션.지역id — NOT NULL
- 포인트양 (points_total) — int
- 포인트설명 (description) — string
- 받은시간 (created_time) — datetime(6)
지역 (Regions)
- 지역id (region_id) — uuid — 기본 키 — NOT NULL
- 지역이름 (region_name) — string
- 설명 (description) — string