Project_ErrorMaker

테이블 (4)

리뷰 (review)

  • reviewId — Int — 기본 키 — NOT NULL
  • userId — Int — 외래 키 → 사용자.userId — NOT NULL
  • petSitterId — Int — 외래 키 → 펫시터.petSitterId — NOT NULL
  • content — String
  • rating — Int
  • createdAt — Date
  • updatedAt — Date

사용자 (users)

  • userId — Int — 기본 키 — NOT NULL
  • email — String
  • password — String
  • name — String
  • phone — String
  • address — String
  • createdAt — Date
  • updatedAt — Date

예약 (booking)

  • bookingId — Int — 기본 키 — NOT NULL
  • userId — Int — 외래 키 → 사용자.userId — NOT NULL
  • petSitterId — Int — 외래 키 → 펫시터.petSitterId — NOT NULL
  • startTime — DateTime
  • endTime — DateTime
  • createdAt — Date
  • updatedAt — Date

펫시터 (petSitter)

  • petSitterId — Int — 기본 키 — NOT NULL
  • name — String
  • career — String