final

테이블 (16)

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)
    • 최대인원 (Field5)
    • 추가인원당추가요금 (Field6)

    객실 사진 (Untitled9)

    • room_no (Key) — not null — 외래 키 → 객실.room_no — NOT NULL
    • room_image_name (Field2) — not null
    • room_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
    • coupon_id (Key2) — not null — 외래 키 → 쿠폰.coupon_id — NOT NULL
    • booking_no (Key3) — not null — 외래 키 → 예약 메인.booking_no — NOT NULL
    • 원래 결제할 금액 (Field)
    • 할인된금액 (Field3)
    • 결제할 금액 (Field2)

    결제 수단별 상세 (Untitled7)

    • 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)

      어드민 (Untitled11)

        업소 (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)
        • lng (Field7)
        • 주차가능여부 (Field8)
        • accommodation_image_no (Key3)

        업소 사진 (CopyOfUntitled9)

        • accommodation_image_no (Key) — 기본 키 — NOT NULL
        • accomdation_no (Key2) — not null — 외래 키 → 업소.accomdation_no — NOT NULL
        • company_image_name (Field2) — not null
        • company_image_file (Field3) — not null

        예약 메인 (Untitled6)

        • 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)
        • 예약상태(가예약, 예약완료, 예약실패, 결제실패, 취소) (Field6)

        예약 상세 (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

        지역 (Untitled8)

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

        쿠폰 (Untitled10)

        • coupon_id (Key) — not null — 기본 키 — NOT NULL
        • discount (Field) — not null
        • coupon_code (Field2) — not null

        회원 (Untitled2)

        • user_no (Key) — not null — 기본 키 — NOT NULL
        • user_id (Field) — not null
        • user_pwd (Field2) — not null
        • user_phone (Field3) — not null
        • user_indate (Field4) — not null
        • user_update (Field5) — null