UMC_mission1

Tables (10)

FoodCategory (음식 카테고리)

  • 업종 (food_category) — NOTNULL — Primary key — NOT NULL

FoodPrefer (선호음식)

  • 구분 (prefer_food_id) — NOTNULL — Primary key — NOT NULL
  • 아이디 (user_id) — NOTNULL — Foreign key → Member.아이디
  • 아이디 (food_category) — NOTNULL — Foreign key → FoodCategory.업종 — NOT NULL

Inquiry (문의)

  • 아이디 (qa_id) — NOTNULL — Primary key — NOT NULL
  • 제목 (title) — NOTNULL
  • 문의 내용 (content) — NOTNULL'
  • 첨부파일 경로 (file_url) — NULL
  • 답변상태 (status) — NOTNULL
  • 생성 시각 (created_at) — NOTNULL
  • 수정 시각 (updated_at) — NOTNULL
  • 아이디 (user_id) — NOTNULL — Foreign key → Member.아이디

Member (회원)

  • 아이디 (user_id) — NOTNULL — Primary key
  • 이름 (name) — NOTNULL — NOT NULL
  • 닉네임 (nickname) — NOTNULL
  • 전화번호 (phone_num) — NULL
  • 생년월일 (birth) — NOTNULL
  • 주소 (address) — NOTNULL
  • 계정 상태 (status) — ENUM('ACTIVE','INACTIVE')
  • 비활성 날짜 (inactive_date) — NULL
  • 생성날짜 (created_at) — NOTNULL
  • 권한구분 (role) — ENUM('USER', 'ADMIN')
  • 달성미션수 (mission_complete) — DEFAULT(0)
  • 포인트 (point) — DEFAULT(0)
  • 이메일ㄷ (email) — NOTNULL
  • 아이디 (region_id) — NOTNULL — Foreign key → Region.아이디 — NOT NULL

Mission (미션)

  • 아이디 (mission_id) — NOTNULL — Primary key — NOT NULL
  • 적립금액 (point) — NOTNULL
  • 적립률 (earn_rate) — NOTNULL
  • 아이디 (region_id) — NOTNULL — Foreign key → Region.아이디 — NOT NULL
  • 아이디 (restaurant_id) — NOTNULL — Foreign key → Restaurant.아이디 — NOT NULL

MissionComplete (완료한 미션)

  • 구분번호 (complete_id) — NOTNULL — Primary key
  • 생성날짜 (created_at) — NOTNULL
  • 완료날짜 (completed_at) — NOTNULL
  • 아이디 (mission_id) — NOTNULL — Foreign key → Mission.아이디 — NOT NULL
  • 아이디 (user_id) — NOTNULL — Foreign key → Member.아이디
  • 리뷰상태 (is_reviewed) — DEFAULT('FALSE')

MissionInProgress (진행중인 미션)

  • id (progress_id) — NOTNULL — Primary key
  • 생성날짜 (created_at) — NOTNULL
  • 만료날짜 (end_at) — NOTNULL
  • 아이디 (mission_id) — NOTNULL — Foreign key → Mission.아이디 — NOT NULL
  • 아이디 (user_id) — NOTNULL — Foreign key → Member.아이디

Region (지역)

  • 아이디 (region_id) — NOTNULL — Primary key — NOT NULL
  • 지역명 (name) — NOTNULL

Restaurant (식당)

  • 아이디 (restaurant_id) — NOTNULL — Primary key — NOT NULL
  • 주소 (address) — NOTNULL
  • 이름 (shop_name) — NOTNULL
  • 오픈 시간 (start_time) — NOTNULL
  • 마감 시간 (end_time) — NOTNULL
  • 별점 평균 (rate_average) — NULL
  • 소개 사진 (image_url) — NULL
  • 아이디 (food_category) — NOTNULL — Foreign key → FoodCategory.업종 — NOT NULL

Review (리뷰)

  • 아이디 (review_id) — NOTNULL — Primary key — NOT NULL
  • 평점 (rate) — NOTNULL
  • 내용 (content) — NOTNULL'
  • 사진 (photo_url) — NULL
  • 작성 시각 (created_at) — NOTNULL
  • 수정 시각 (updated_at) — NOTNULL
  • 답변여부 (is_answered) — DEFAULT('FALSE')
  • 답변내용 (answer_content) — NULL
  • 답변 작성 시각 (answer_created_at) — NULL
  • 답변 수정 시각 (answer_updated_at) — NULL
  • 아이디 (restaurant_id) — NOTNULL — Foreign key → Restaurant.아이디 — NOT NULL
  • 아이디 (user_id) — NOTNULL — Foreign key → Member.아이디
  • 구분번호 (identify_id) — NOTNULL — Foreign key → MissionComplete.구분번호