account

Tables (3)

visit_coupon_books

    visit_coupon_history (Untitled)

    • history_id (아이디) — Primary key — NOT NULL
    • type (이력 타입) — enum
    • master_id (마스터 아이디)
    • purchse_type (발행처)
    • transaction_type (거래 유형)
    • owner_id (보유자 아이디)
    • template_id (할인 유형 아이디)
    • coupon_id (ISSUE 혹은 ISSUE_CANCEL일 때 그 대상이 되는 할인권 아이디)
    • points (사용량)
    • before_point (사용 전 포인트)
    • after_point (사용 후 포인트 (before_point - after_point))
    • qty (구매 수량)
    • payed_fee (결제 금액)
    • unit_price (단가. 0이면 무료. (payed_fee/qty))
    • description (메모)
    • created_at (생성일)
    • canceld_history_id (취소된 원본 거래의 history_id (취소 시에만 값 존재))

    visit_coupon_history_master