2023ToyPorejct

Tables (5)

Customer

  • customer_id — Primary key — NOT NULL
  • 아이디 (id)
  • 비밀번호 (password)
  • 이름 (name)
  • 생년월일 (birth)
  • 전화번호 (telephone)
  • 이메일 (Field4)
  • 유저종류 (type)
  • 등급 (membership)
  • 우편번호 (zipcode)
  • 기본주소 (basic_address)
  • 상세주소 (detail_address)

Hotel

  • hotel_id — Primary key — NOT NULL
  • 해당국가이름 (name)
  • 영어이름 (english_name)
  • 국가 (country)
  • 지역 (region)
  • 등급 (grade)
  • 위치 (location)
  • 전화번호 (telephone)
  • 전화번호2 (telephone_2)
  • 우편번호 (zipcode)
  • 기본주소 (basic_address)
  • 상세주소 (detail_address)
  • 수영장여부 (pool)
  • 사우나여부 (sauna)
  • 카페여부 (cafe)
  • 편의점 (convenience_store)
  • 와이파이 (wifi)

Manager

  • manager_id — Primary key — NOT NULL
  • hotel_id — Foreign key → Hotel.hotel_id — NOT NULL
  • 아이디 (id)
  • 비밀번호 (password)
  • 이름 (name)
  • 전화번호 (phone)
  • 우편번호 (zipcode)
  • 기본주소 (basic_address)
  • 상세주소 (detail_address)
  • 이메일 (email)

Reservation

  • reservation_id — Primary key — NOT NULL
  • customer_id — Foreign key → Customer.customer_id — NOT NULL
  • hotel_id — Foreign key → Hotel.hotel_id — NOT NULL
  • room_id — Foreign key → Room.room_id — NOT NULL
  • 예약상태 (state)
  • 체크인날짜 (check-in)
  • 체크아웃날짜 (check-out)
  • 요구사항 (demand)
  • 인원 (people_count)
  • 예약날짜 (reserve_date)
  • 취소날짜 (cancel_date)
  • 배정확정여부 (assignment)
  • 결제유형 (pay_type)

Room

  • room_id — Primary key — NOT NULL
  • hotel_id — Foreign key → Hotel.hotel_id — NOT NULL
  • 방이름 (room_name)
  • 방번호 (room_number)
  • 최대인원 (max_person_count)
  • 최소인원 (min_person_coun)
  • 인당추가요금 (extra_fee)
  • 가격 (price)
  • 조식여부 (breakfast)
  • 싱글베드개수 (single_bed)
  • 더블베드개수 (double_bed)
  • 욕조 (spa)
  • 티비여부 (tv)
  • 냉장고 (refrigerator)
  • 수영장포함 (pool)
  • 흡연가능 (smoking)