5ch4-erd

Tables (9)

area (Untitled3)

  • 지역식별자 (area_id) — PK.AI — Primary key — NOT NULL
  • 이름 (name)

foodCategory (Untitled2)

  • 음식종류식별자 (foodcategory_id) — PK.AI — Primary key — NOT NULL
  • 이름 (name)

inquiry (Untitled6)

  • 문의식별자 (inquiry_id) — PK.AI — Primary key — NOT NULL
  • 멤버식별자 (member_id) — FK — Foreign key → member.멤버식별자 — NOT NULL
  • 제목 (title)
  • 유형 (type)
  • 내용 (content)
  • 사진 (image)
  • 상태 (status)
  • 생성일자 (created_at)
  • 수정일자 (updated_at)

member (Untitled)

  • 멤버식별자 (member_id) — PK.AI — Primary key — NOT NULL
  • 이름 (name)
  • 닉네임 (nickname)
  • 성별 (gender)
  • 생년월일 (birth)
  • 주소 (address)
  • 이메일 (email)
  • 전화번호 (phonenumber)
  • 포인트 (point)
  • 생성일자 (created_at)
  • 수정일자 (updated_at)
  • 상태 (status)
  • 탈퇴일자 (deleted_at)

memberCategory (Untitled13)

  • Key — Primary key — NOT NULL
  • 멤버식별자 (member_id) — FK — Foreign key → member.멤버식별자 — NOT NULL
  • 음식종류식별자 (foodcategory_id) — FK — Foreign key → foodCategory.음식종류식별자 — NOT NULL

memberMission (Untitled12)

  • 식별자 (id) — PK.AI — Primary key — NOT NULL
  • 멤버식별자 (member_id) — FK — Foreign key → member.멤버식별자 — NOT NULL
  • 미션식별자 (mission_id) — FK — Foreign key → mission.미션식별자 — NOT NULL
  • 상태 (status)
  • 생성일자 (created_at)
  • (updated_at)

mission (Untitled9)

  • 미션식별자 (mission_id) — PK.AI — Primary key — NOT NULL
  • 가게식별자 (restaurant_id) — FK — Foreign key → restaurant.가게식별자 — NOT NULL
  • 내용 (Field)
  • 포인트 (Field2)
  • 인증번호 (Field3)

restaurant (Untitled4)

  • 가게식별자 (restaurant_id) — PK.AI — Primary key — NOT NULL
  • 가게명 (name)
  • 주소 (address)
  • 평점 (score)
  • 운영시간 (operation)
  • 생성일자 (created_at)
  • 수정일자 (updated_at)
  • 음식종류식별자 (foodcategory_id) — FK — Foreign key → foodCategory.음식종류식별자 — NOT NULL
  • 지역식별자 (area_id) — FK — Foreign key → area.지역식별자 — NOT NULL

review (Untitled5)

  • 리뷰식별자 (review_id) — PK.AI — Primary key — NOT NULL
  • 멤버식별자 (member_id) — FK — Foreign key → member.멤버식별자 — NOT NULL
  • 가게식별자 (restaurant_id) — FK — Foreign key → restaurant.가게식별자 — NOT NULL
  • 별점 (score)
  • 내용 (content)
  • 사진 (image)
  • 사장님 답글 (reply)
  • 생성일자 (created_at)
  • 수정일자 (updated_at)