Amabnb

Tables (5)

host (호스트)

  • 호스트ID (id) — PK — Primary key — NOT NULL
  • 호스트 정보.. (Field)
  • 유저ID (id2) — FK — Foreign key → user.유저ID — NOT NULL

info (숙소 정보)

  • 정보ID (id) — PK — Primary key — NOT NULL
  • 침실 (bedRoom)
  • 침대 (bed)
  • 욕실 (bathRoom)
  • 숙소ID (id2) — PK — Foreign key → room.숙소ID — NOT NULL

reservation (예약)

  • 예약ID (id) — PK — Primary key — NOT NULL
  • 시작기간 (startDate)
  • 퇴실시간 (endDate)
  • 결제 가격 (totalPrice)
  • 성인수 (adult)
  • 어린이 (child)
  • 유아 (baby)
  • 상태 (status)
  • 유저ID (id2) — FK — Foreign key → user.유저ID — NOT NULL
  • 숙소ID (id3) — FK — Foreign key → room.숙소ID — NOT NULL

room (숙소)

  • 숙소ID (id) — PK — Primary key — NOT NULL
  • 숙소이름 (name)
  • 숙소설명 (descriptiopn)
  • 가격 (price)
  • 숙박 가능 인원 (people)
  • 숙소 유형 (roomCategory)
  • 카테고리 (category)
  • 숙소 종류 (roomKind)
  • 위치 (경도?) (roomX)
  • 위치(위도) (roomY)
  • 호스트ID (id2) — PK — Foreign key → host.호스트ID — NOT NULL

user (유저)

  • 유저ID (id) — PK — Primary key — NOT NULL
  • 정보들... (Field)
  • Field2
  • Field3
  • Field4