final ERD

테이블 (18)

PG로그 (Untitled3)

    객실 (room)

    • room_no (Key) — not null — 기본 키 — NOT NULL
    • accomdation_no (Key2) — not null — 외래 키 → 업소.accomdation_no — NOT NULL
    • room_type_id (Key3) — not null — 외래 키 → 객실 타입.room_type_id — NOT NULL
    • room_name (Field) — not null
    • check_in_time (Field2) — not null
    • check_out_time (Field3) — not null
    • 기준인원 (Field4) — not null
    • 최대인원 (Field5) — not null
    • 추가인원당추가요금 (Field6) — not null

    객실 부가 정보 (Untitled12)

    • room_service_no (Key) — not null — 기본 키 — NOT NULL
    • room_no (Key2) — not null — 외래 키 → 객실.room_no — NOT NULL
    • tv (Field) — null
    • pc (Field2) — null
    • wifi (Field3) — null
    • z_spa (Field4) — null
    • refrigirator (Field5) — null
    • air_conditioner (Field6) — null

    객실 사진 (Untitled9)

    • room_no (Key) — not null — 외래 키 → 객실.room_no — NOT NULL
    • image_name (Field2) — not null
    • image_file (Field3) — not null

    객실 요금_빈방 (room_rate_inventory)

    • room_rate_inventory_no (Key4) — 기본 키 — NOT NULL
    • room_no (Key2) — not null — 외래 키 → 객실.room_no — NOT NULL
    • booking_date (Field2)
    • rate (Field) — not null
    • inventory_count (Field4) — not null
    • use_yn (Field3)

    객실 타입 (room_type)

    • room_type_id (Key) — not null — 기본 키 — NOT NULL
    • room_type_name (Field) — not null

    결제 (Untitled5)

    • payment_no (Key) — not null — 기본 키 — NOT NULL
    • booking_no (Key3) — not null — 외래 키 → 예약 메인.booking_no — NOT NULL
    • 원래 결제할 금액 (Field) — not null
    • 할인된금액 (Field3) — null
    • 결제할 금액 (Field2) — not null

    결제 수단별 상세 (payment)

    • payment_method_no (Key) — not null — 기본 키 — NOT NULL
    • payment_no (Key2) — 외래 키 → 결제.payment_no — NOT NULL
    • booking_no (Key3) — not null — 외래 키 → 결제.booking_no — NOT NULL
    • 결제수단(신용카드,간편결제,포인트) (Field2)
    • 승인번호 (Field3)
    • 승인일자 (Field4)
    • 결제금액 (Field)

    공급사통신로그 (Untitled4)

      부대 시설 (facilities)

      • facilities_no (Key) — not null — 기본 키 — NOT NULL
      • accomdation_no (Key2) — not null — 외래 키 → 업소.accomdation_no — NOT NULL
      • cafe (Field2) — null
      • fitness (Field3) — null
      • restaurant (Field) — null
      • pool (Field4) — null
      • bbq (Field5) — null
      • amenities (Field6) — null
      • seminar_room (Field7) — null
      • parking (Field8) — null

      업소 (accommodation)

      • accomdation_no (Key) — not null — 기본 키 — NOT NULL
      • 도/시 지역 코드 (Key2) — not null — 외래 키 → 지역.도/시 지역 코드 — NOT NULL
      • name (Field) — not null
      • phone (Field2) — not null
      • post_no (Field3) — not null
      • address_1 (Field4) — not null
      • address_2 (Field5) — not null
      • lat (Field6) — not null
      • lng (Field7) — not null

      업소어드민 (admin)

      • admin_no (Key) — not null — 기본 키 — NOT NULL
      • accomdation_no (Key2) — not null — 외래 키 → 업소.accomdation_no — NOT NULL
      • admin_type (Field) — not null
      • admin_id (Field2) — not null
      • admin_pwd (Field3) — not null

      예약 메인 (reserve)

      • booking_no (Key) — not null — 기본 키 — NOT NULL
      • user_no (Key2) — not null — 외래 키 → 회원.user_no — NOT NULL
      • check_in_date (Field) — not null
      • check_out_date (Field2) — not null
      • result_amount (Field3) — not null
      • 예약인원 (Field4) — not null
      • 예약일시 (Field5) — not null
      • 예약상태(가예약, 예약완료, 예약실패, 결제실패, 취소) (Field6) — not null

      예약 상세 (Untitled)

      • bookig_room_no (Key) — 기본 키 — NOT NULL
      • room_rate_inventory_no (Key4) — 외래 키 → 객실 요금_빈방.room_rate_inventory_no — NOT NULL
      • booking_no (Key2) — not null — 외래 키 → 예약 메인.booking_no — NOT NULL

      지역 (area)

      • 도/시 지역 코드 (Key) — not null — 기본 키 — NOT NULL
      • 시/군/구 행정 코드 (Field) — not null
      • 읍/면/동 행정코드 (Field2) — not null

      쿠폰 (coupon)

      • coupon_code (Key) — not null — 기본 키 — NOT NULL
      • user_no (Key2) — not null — 외래 키 → 회원.user_no — NOT NULL
      • discount (Field) — not null

      회원 (user)

      • user_no (Key) — not null — 기본 키 — NOT NULL
      • user_email (Field) — not null
      • user_pwd (Field2) — not null
      • user_name (Field6) — not null
      • user_phone (Field3) — not null
      • user_indate (Field4) — not null
      • user_delete (Field7) — null

      회원 로그 (Untitled13)

      • user_no (Key) — not null — 외래 키 → 회원.user_no — NOT NULL
      • user_indate (Field) — not null
      • user_update (Field2) — not null
      • user_ip (Field3) — not null