hotel

Tables (10)

Booking (Untitled5)

  • 예약번호 (b_idx) — NOT NULL — Primary key — NOT NULL
  • 예약자 (m_idx) — NOT NULL — Foreign key → Member.멤버 고유번호 — NOT NULL
  • 호텔번호 (h_idx) — NOT NULL — Foreign key → Hotel.호텔번호 — NOT NULL
  • 예약일 (b_checkin) — NOT NULL
  • 퇴실일 (b_checkout) — NOT NULL
  • 결제일 (b_dated) — NOT NULL
  • 결제수단 (b_method) — NOT NULL
  • 결제액 (b_price) — NOT NULL

Hotel (Untitled6)

  • 호텔번호 (h_idx) — NOT NULL — Primary key — NOT NULL
  • 호텔 관리자 (m_idx) — NOT NULL — Foreign key → Member.멤버 고유번호 — NOT NULL
  • 호텔이름 (h_name) — NOT NULL
  • 남은 객실 (h_empty) — 0

Member (Untitled)

  • 멤버 고유번호 (m_idx) — NOT NULL — Primary key — NOT NULL
  • 이메일 (m_email) — NOT NULL
  • 이름 (m_name) — NOT NULL
  • 비밀번호 (m_password) — NOT NULL
  • 포인트 (m_point) — 0

Review (Untitled10)

  • 리뷰 번호 (r_idx) — NOT NULL — Primary key — NOT NULL
  • 멤버 고유번호 (m_idx) — NOT NULL — Foreign key → Member.멤버 고유번호 — NOT NULL
  • 방번호 (r_idx2) — NOT NULL — Foreign key → Room.방번호 — NOT NULL
  • 호텔번호 (h_idx) — NOT NULL — Foreign key → Room.호텔번호 — NOT NULL
  • 리뷰 내용 (r_content) — NOT NULL
  • 리뷰 별점 (r_star) — NOT NULL

Role (Untitled3)

  • 역할 (role) — NOT NULL — Primary key — NOT NULL

Room (Untitled7)

  • 방번호 (r_idx) — NOT NULL — Primary key — NOT NULL
  • 호텔번호 (h_idx) — NOT NULL — Foreign key → Hotel.호텔번호 — NOT NULL
  • 최소인원 (r_min) — 0
  • 최대인원 (r_max) — 0
  • 방가격 (r_price) — NOT NULL

Social_member (Untitled2)

  • 소셜멤버 고유번호 (s_idx) — NOT NULL — Primary key — NOT NULL
  • 멤버 고유번호 (m_idx) — NOT NULL — Foreign key → Member.멤버 고유번호 — NOT NULL
  • 소셜 식별자 (s_provider) — NOT NULL
  • 소셜 식별키 (s_provider_key) — NOT NULL

coupon (Untitled9)

  • 쿠폰번호 (c_idx) — NOT NULL — Primary key — NOT NULL
  • 쿠폰명 (c_name) — NOT NULL
  • 할인율 (c_per) — NOT NULL
  • 사용기한 (c_date) — NULLABLE

event (Untitled8)

  • 이벤트 번호 (e_idx) — NOT NULL — Primary key — NOT NULL
  • 이벤트 제목 (e_title) — NOT NULL
  • 이벤트 내용 (e_content) — NOT NULL

member_role (Untitled4)

  • 역할 (role) — NOT NULL — Foreign key → Role.역할 — NOT NULL
  • 멤버 고유번호 (m_idx) — NOT NULL — Foreign key → Member.멤버 고유번호 — NOT NULL