codeit boost runner-ton

테이블 (7)

리뷰 (Review)

  • PK (id) — String — 기본 키 — NOT NULL — default
  • FK (userId) — String — 외래 키 → 사용자.PK — NOT NULL — default
  • FK (placeId) — String — 외래 키 → 장소.PK — NOT NULL — default
  • 평점 (rating)
  • 내용 (comment) — String
  • 생성 시간 (createdAt) — DateTime — default
  • 수정 시간 (updatedAt) — DateTime — default

사용자 (User)

  • PK (id) — String — 기본 키 — NOT NULL — default
  • 로그인 제공자 (provider) — String
  • 로그인 제공자 id (providerId) — String — unique
  • 토큰 (token) — String
  • 이름 (name) — String
  • 이메일 (email) — String — unique
  • 생성 시간 (createdAt) — DateTime — default
  • 수정 시간 (updatedAt) — DateTime — default

여행 계획 (Travel)

  • PK (id) — String — 기본 키 — NOT NULL — default
  • FK (userId) — String — 외래 키 → 사용자.PK — NOT NULL — default
  • 설명 (description) — String
  • 시작 날짜 (startDate) — DateTime
  • 종료 날짜 (endDate) — DateTime
  • 생성 시간 (createdAt) — DateTime — default
  • 수정 시간 (updatedAt) — DateTime — default

일별 계획 (Day)

  • PK (id) — String — 기본 키 — NOT NULL — default
  • FK (travelId) — String — 외래 키 → 여행 계획.PK — NOT NULL — default
  • 일차 (day) — Int
  • 생성 시간 (createdAt) — DateTime — default
  • 수정 시간 (updatedAt) — DateTime — default

일정 (Event)

  • PK (id) — 기본 키 — NOT NULL
  • FK (dayId) — String — 외래 키 → 일별 계획.PK — NOT NULL — default
  • FK (placeId) — String — 외래 키 → 장소.PK — NOT NULL — default
  • 순서 (order) — Int
  • 생성 시간 (createdAt) — DateTime — default
  • 수정 시간 (updatedAt) — DateTime — default

장소 (Place)

  • PK (id) — String — 기본 키 — NOT NULL — default
  • 이름 (name) — String
  • 설명 (description) — String
  • 위치 (location) — Json
  • 평점 (rating) — Float — nullable
  • 생성 시간 (createdAt) — DateTime — default
  • 수정 시간 (updatedAt) — DateTime — default

찜 (Wish)

  • PK (id) — String — 기본 키 — NOT NULL — default
  • FK (userId) — String — 외래 키 → 사용자.PK — NOT NULL — default
  • FK (placeId) — String — 외래 키 → 장소.PK — NOT NULL — default
  • 메모 (comment) — String — nullable
  • 생성 시간 (createdAt) — DateTime — default
  • 수정 시간 (updatedAt) — DateTime — default