UMC week 0 mission

Tables (12)

Address (주소)

  • 주소ID (address_id) — NOT NULL — Primary key — NOT NULL
  • 우편번호 (zipcode) — NOT NULL
  • 기본 주소 (address_line1) — NOT NULL
  • 상세 주소 (address_line2) — NOT NULL
  • 식당ID (store_id) — NOT NULL — Foreign key → Store.식당ID — NOT NULL

Comment (답글)

  • 답글ID (comment_id) — NOT NULL — Primary key — NOT NULL
  • 답글 내용 (comment) — NOT NULL
  • 유저ID (user_id) — NOT NULL — Foreign key → User.유저ID — NOT NULL
  • 리뷰 이미지ID (review_image_id) — NOT NULL — Foreign key → Review Image.리뷰 이미지ID — NOT NULL
  • 리뷰ID (review_id) — NOT NULL — Foreign key → Review Image.리뷰ID — NOT NULL

Food Category (음식 종류)

  • 음식 종류ID (food_id) — NOT NULL — Primary key — NOT NULL
  • 음식 종류 (food_category) — NOT NULL
  • 정렬 순서 (display_order) — NOT NULL
  • 활성화 여부 (is_active) — NOT NULL
  • 식당ID (store_id) — NOT NULL — Foreign key → Store.식당ID — NOT NULL

Food Choice (음식 종류 선택)

  • 음식 종류 선택ID (food_choice_id) — NOT NULL — Primary key — NOT NULL
  • 유저ID (user_id) — NOT NULL — Foreign key → User.유저ID — NOT NULL
  • 음식 종류ID (food_id) — NOT NULL — Foreign key → Food Category.음식 종류ID — NOT NULL

Inquire (문의)

  • 문의ID (inquire_id) — NOT NULL — Primary key — NOT NULL
  • 문의 제목 (inquire_title) — NOT NULL
  • 문의 내용 (inquire_comment) — NOT NULL
  • 생성 일자 (created_at) — NOT NULL
  • 수정 일자 (updated_at) — NULL
  • 삭제 일자 (deleted_at) — NULL
  • 이미지URL (image_url) — NOT NULL
  • 문의 유형ID (inquire_type_id) — NOT NULL — Foreign key → Inquire Type.문의 유형ID — NOT NULL

Inquire Type (문의 유형)

  • 문의 유형ID (inquire_type_id) — NOT NULL — Primary key — NOT NULL
  • 문의 유형 (inquire_type) — NOT NULL
  • 유저ID (user_id) — NOT NULL — Foreign key → User.유저ID — NOT NULL

Mission (미션)

  • 미션ID (mission_id) — NOT NULL — Primary key — NOT NULL
  • 미션 (mission) — NOT NULL
  • 보상 포인트 (reward_point) — NOT NULL
  • 성공 여부 (success) — NOT NULL
  • 활성화 여부 (is_active) — NOT NULL
  • 생성 일자 (created_at) — NOT NULL
  • 수정 일자 (updated_at) — NULL
  • 삭제 일자 (deleted_at) — NULL
  • 식당ID (store_id) — NOT NULL — Foreign key → Store.식당ID — NOT NULL

Mission Choice (미션 선택)

  • 미션 선택ID (mission_choice_id) — NOT NULL — Primary key — NOT NULL
  • 유저ID (user_id) — NOT NULL — Foreign key → User.유저ID — NOT NULL
  • 미션ID (mission_id) — NOT NULL — Foreign key → Mission.미션ID — NOT NULL

Review (리뷰)

  • 리뷰ID (review_id) — NOT NULL — Primary key — NOT NULL
  • 리뷰 내용 (review_comment) — NOT NULL
  • 리뷰 제목 (rewiew_title) — NOT NULL
  • 별점 (rating) — NOT NULL
  • 생성 일자 (created_at) — NOT NULL
  • 수정 일자 (updated_at) — NULL
  • 삭제 일자 (deleted_at) — NULL
  • 유저ID (user_id) — NOT NULL — Foreign key → User.유저ID — NOT NULL

Review Image (리뷰 이미지)

  • 리뷰 이미지ID (review_image_id) — NOT NULL — Primary key — NOT NULL
  • 리뷰ID (review_id) — NOT NULL — Foreign key → Review.리뷰ID — NOT NULL
  • 이미지URL (image_url) — NOT NULL
  • 이미지 순서 (display_order) — NOT NULL

Store (식당)

  • 식당ID (store_id) — NOT NULL — Primary key — NOT NULL
  • 식당 이름 (store_name) — NOT NULL
  • 생성 일자 (created_at) — NOT NULL
  • 수정 일자 (updated_at) — NULL
  • 삭제 일자 (deleted_at) — NULL

User (유저)

  • 유저ID (user_id) — NOT NULL — Primary key — NOT NULL
  • 이름 (name) — NOT NULL
  • 성별 (gender) — NOT NULL
  • 생년월일 (birth_date) — NOT NULL
  • 닉네임 (nickname) — NOT NULL
  • 이메일 (email) — NULL
  • 휴대폰 번호 (phone_number) — NULL
  • 생성 일자 (created_at) — NOT NULL
  • 수정 일자 (updated_at) — NULL
  • 삭제 일자 (deleted_at) — NULL
  • 포인트 (point) — NOT NULL