Reward Mall

Tables (34)

portal_integrated_service_ticket_history (포탈 통합 서비스 티켓 충전 내역)

  • idx (통합 서비스 티켓 충전 내역 ID) — bigint — Primary key — NOT NULL
  • service_ticket_id (서비스 티켓 ID) — binary(16) — Foreign key → portal_integrated_service_ticket_master.service_ticket_id — NOT NULL
  • service_id (서비스 ID) — binary(16) — 실패 또는 예약 취소로 인한 자동 환불 서비스 ID(메시지 이벤트 ID or 리워드몰 주문 ID)
  • service_type (서비스 타입) — int — 실패 또는 예약 취소로 인한 자동 환불 서비스 타입(1: 문자, 2: 리워드몰)
  • amount (금액) — bigint
  • current_amount (현재 금액) — bigint
  • get_amount (충전 금액) — bigint
  • used_amount (사용 금액) — bigint
  • refund_amount (환불 금액) — bigint
  • transaction_id (주문 트랜잭션 ID) — binary(16) — 리워드몰 즉시 카드 결제 시 주문 트랜잭션 ID
  • payment_id (결제 ID) — binary(16) — 무통장 입금 또는 신용카드 결제 ID
  • payment_type (결제 타입) — int — 1: 무통장 입금, 2: 신용카드
  • type (충전 타입) — int — 1: 데포에서 충전, 2: 문자 전송 실패로 인한 자동 환불, 3: 어드민에서 문자 쿠폰 지급, 4: 어드민에서 통합 서비스 티켓 지급, 5: 문자 예약 취소로 인한 환불, 6: 리워드몰 구매 실패로 인한 자동 환…
  • creator (지급 담당자) — varchar(255)
  • create_date (지급일) — datetime

portal_integrated_service_ticket_master (포탈 통합 서비스 티켓 마스터)

  • service_ticket_id (서비스 티켓 ID) — binary(16) — Primary key — NOT NULL
  • portal_id (포탈 ID) — varchar(128)
  • type (티켓 타입) — int — 1: 통합 충전금, 2: 문자 쿠폰
  • current_amount (현재 금액) — bigint
  • get_amount (충전 금액) — bigint
  • used_amount (사용 금액) — bigint
  • refund_amount (환불 금액) — bigint
  • create_date (생성일) — datetime
  • update_date (수정일) — datetime
  • used_date (사용일) — datetime

portal_integrated_service_ticket_use_history (포탈 통합 서비스 티켓 사용 내역)

  • idx (통합 서비스 티켓 사용 내역 ID) — bigint — Primary key — NOT NULL
  • history_idx (통합 서비스 티켓 충전 내역 ID) — bigint — Foreign key → portal_integrated_service_ticket_history.idx — NOT NULL
  • service_ticket_id (서비스 티켓 ID) — binary(16) — Foreign key → portal_integrated_service_ticket_master.service_ticket_id — NOT NULL
  • refund_id (환불 ID) — binary(16) — Foreign key → portal_payment_refund.refund_id — NOT NULL
  • service_id (서비스 ID) — binary(16) — 메시지 이벤트 ID or 리워드몰 주문 ID
  • service_type (서비스 타입) — int — 서비스 타입(1: 문자, 2: 리워드몰)
  • amount (사용/환불 금액) — bigint
  • current_amount (현재 금액) — bigint
  • get_amount (충전 금액) — bigint
  • used_amount (사용 금액) — bigint
  • refund_amount (환불 금액) — bigint
  • use_type (사용 타입) — int — 1: 데포에서 문자 보내기, 2: 데포에서 환불, 3: 어드민에서 문자 쿠폰 회수, 4: 어드민에서 통합 서비스 티켓 회수, 5: 만료로 인한 사용 처리, 6: 리워드몰 충전금 구매, 7: 리워드몰 결제 실패로 인…
  • creator (담당자) — varchar(255)
  • create_date (사용일) — datetime

portal_message_event_history (포탈 메시지 히스토리)

  • message_event_id (메시지 이벤트 ID) — binary(16) — Primary key — NOT NULL
  • portal_id (포탈 ID) — varchar(128)
  • content (메시지 내용) — longtext
  • image (MMS 이미지) — varchar(255)
  • total_amount (총 이용 금액) — bigint
  • vat (부가세) — int
  • total_count (메시지 전송 건수) — int
  • message_type (메시지 타입) — int — 1: SMS, 2: LMS, 3: MMS
  • recipient_type (수신자 타입) — int — 0: 일부, 1: 전체
  • target_type (메시지 대상 타입) — int — 1: 커뮤니티, 2: 챌린지, 3: 프로그램
  • target_id (메시지 대상 ID) — binary(16) — 커뮤니티 또는 챌린지 또는 프로그램 ID
  • register_status (등록 상태) — int — 1: 작성중, 2: 예약 완료, 3: 접수 완료, 4: 전송 완료, 5: 예약 취소
  • deleted (삭제 여부) — tinyint(1)
  • create_date (생성일) — datetime
  • reservation_date (예약일) — datetime
  • send_date (전송 완료일) — datetime

portal_message_recipient_list (포탈 메시지 수신자)

  • idx (메시지 수신자 ID) — bigint — Primary key — NOT NULL
  • message_event_id (메시지 이벤트 ID) — binary(16) — Foreign key → portal_message_event_history.message_event_id — NOT NULL
  • phoneno (수신자 전화번호) — varchar(11)
  • status (메시지 전송 상태) — int — 1: 성공, 2: 실패, 3: 요청, 4: 대기
  • fail_reason (메시지 전송 실패 이유) — int — 1: 유효하지 않은 전화번호...
  • create_date (생성일) — datetime
  • send_date (전송일) — datetime

portal_payment_credit (포탈 신용카드 결제)

  • credit_id (포탈 신용카드 결제 ID) — binary(16) — Primary key — NOT NULL
  • portal_id (포탈 ID) — varchar(128)
  • order_id (pg 주문번호) — varchar(64)
  • payment_key (pg 결제 키) — varchar(200)
  • amount (결제 금액) — bigint
  • status (상태) — int — 1:결제 대기, 2:결제 완료, 3: 결제 취소, 4:결제 실패
  • type (결제 타입) — int — 1: 통합 충전금
  • pg_response (pg 결제 응답) — longtext
  • pg_code (pg 결제 상태 코드) — varchar(255) — READY, IN_PROGRESS, WAITING_FOR_DEPOSIT, DONE, CANCELED, PARTIAL_CANCELED, ABORTED, EXPIRED
  • creator (어드민 담당자) — varchar(255)
  • create_date (결제일) — datetime

portal_payment_deposit (포탈 무통장 입금)

  • deposit_id (포탈 무통장 입금 ID) — binary(16) — Primary key — NOT NULL
  • portal_id (포탈 ID) — varchar(128)
  • amount (입금 금액) — bigint
  • depositor_name (입금자명) — varchar(255)
  • payment_contact_name (결제 담당자명) — varchar(255)
  • payment_contact_phoneno (결제 담당자 전화번호) — varchar(11) — +821051037102
  • payment_contact_email (결제 담당자 이메일) — varchar(255)
  • status (상태) — int — 1: 입금 대기, 2: 입금 완료
  • type (입금 타입) — int — 1: 통합 충전금
  • creator (어드민 담당자) — varchar(255)
  • create_date (생성일) — datetime
  • deposite_date (입금 확인일) — datetime
  • has_tax_bill (세금 계산서 발급 요청 여부) — tinyint(1)
  • business_number (사업자 등록번호) — varchar(10)
  • corporation_name (법인명) — varchar(100)
  • representative_name (대표자 성명) — varchar(50)
  • agree (구매 조건 확인 및 결제 진행 동의 여부) — tinyint(1)

portal_payment_refund (포탈 환불)

  • refund_id (포탈 환불 ID) — binary(16) — Primary key — NOT NULL
  • portal_id (포탈 ID) — varchar(128)
  • request_amount (환불 요청 금액) — bigint
  • refund_amount (환불 금액) — bigint — (수수료 제외) 실제 환불 금액
  • charge_amount (워크온 수수료 금액) — int — 200원
  • status (상태) — int — 1: 환불 요청, 2: 승인 완료
  • type (환불 타입) — int — 1: 통합 충전금
  • payment_id (결제 ID) — binary(16) — 무통장 입금 ID 또는 신용카드 결제 ID
  • payment_type (결제 타입) — int — 1: 무통장 입금, 2: 신용카드 결제
  • creator (어드민 담당자) — varchar(255)
  • refund_account_bank (환불 계좌 은행) — varchar(100)
  • refund_account_number (환불 계좌 번호) — varchar(100)
  • create_date (환불 요청일) — datetime
  • approve_date (환불 승인일) — datetime
  • agree (수수료 지급 동의 여부) — tinyint(1)
  • pg_response (pg 결제 응답) — longtext
  • pg_code (pg 결제 상태 코드) — varchar(255) — READY, IN_PROGRESS, WAITING_FOR_DEPOSIT, DONE, CANCELED, PARTIAL_CANCELED, ABORTED, EXPIRED

rm_brand (리워드몰 브랜드)

  • brand_id (브랜드 ID) — binary(16) — Primary key — NOT NULL
  • store_id (상점 ID) — binary(16) — Foreign key → rm_store.store_id — NOT NULL
  • name (브랜드 이름) — varchar(100) — NOT NULL
  • image (브랜드 대표 이미지) — varchar(255)
  • seq (브랜드 순서) — int — NOT NULL
  • status (상태) — int — NOT NULL — 0: 숨김, 1: 운영중
  • create_date (생성일) — datetime — NOT NULL
  • update_date (수정일) — datetime — NOT NULL

rm_cart (리워드몰 장바구니)

  • cart_id (장바구니 ID) — binary(16) — Primary key — NOT NULL
  • user_id (유저 ID) — binary(16) — NOT NULL
  • user_type (유저 타입) — int — NOT NULL — 1: 일반 유저, 2: 포탈 관리자
  • create_date (생성일) — datetime — NOT NULL
  • update_date (수정일) — datetime — NOT NULL

rm_cart_product (리워드몰 장바구니 상품)

  • cart_product_id (장바구니 상품 ID) — binary(16) — Primary key — NOT NULL
  • cart_id (장바구니 ID) — binary(16) — Foreign key → rm_cart.cart_id — NOT NULL
  • product_id (상품 ID) — binary(16) — Foreign key → rm_product.product_id — NOT NULL
  • quantity (상품 개수) — int
  • create_date (생성일) — datetime — NOT NULL

rm_claim (리워드몰 취소/반품/교환 요청)

  • claim_id (클레임 ID) — binary(16) — Primary key — NOT NULL
  • order_product_id (주문 상품 ID) — binary(16) — Foreign key → rm_order_product.order_product_id — NOT NULL
  • type (클레임 타입) — int — NOT NULL — 1: 취소, 2: 반품, 3: 교환
  • reason (클레임 이유) — varchar(100)
  • refund_id (환불 ID) — binary(16)
  • requested_date (신청 일자) — datetime — NOT NULL
  • completed_date (완료 일자) — datetime

rm_claim_delivery (리워드몰 클레임 배송 정보)

  • claim_delivery_id (클레임 배송 ID) — binary(16) — Primary key — NOT NULL
  • claim_id (클레임 ID) — binary(16) — Foreign key → rm_claim.claim_id — NOT NULL
  • pickup_method (수거 방법) — int — 1: 방문 수거(판매자 수거 진행), 2: 직접 발송
  • pickup_address (반품/교환 회수지) — varchar(255)
  • return_address (반품/교환 배송지) — varchar(500)
  • exchange_delivery_address (교환 상품 배송지) — varchar(500)
  • delivery_fee (배송비) — int — NOT NULL
  • payment_id (결제 ID) — binary(16) — NOT NULL — 무통장 입금 ID or 신용카드 결제 ID
  • payment_type (결제 타입) — int — NOT NULL — 1: 무통장 입금, 2: 신용카드 결제

rm_coupon (리워드몰 쿠폰)

  • coupon_id (쿠폰 ID) — binary(16) — Primary key — NOT NULL
  • product_id (상품 ID) — binary(16) — Foreign key → rm_product.product_id
  • name (쿠폰명) — varchar(100) — NOT NULL
  • discount_rate (할인율) — int
  • discount_price (할인 금액) — int
  • start_date (쿠폰 적용 시작일) — datetime
  • end_date (쿠폰 적용 마감일) — datetime
  • create_date (생성일) — datetime — NOT NULL

rm_delivery (리워드몰 배송)

  • delivery_id (배송 ID) — bigint — Primary key — NOT NULL
  • order_id (주문 ID) — binary(16) — Foreign key → rm_order.order_id — NOT NULL
  • order_product_id (주문 상품 ID) — binary(16) — Foreign key → rm_order_product.order_product_id — NOT NULL
  • message_title (발송 메시지 제목) — varchar(30)
  • message_content (발송 메시지 내용) — varchar(255)
  • delivery_type (발송 형태) — int — NOT NULL — 1: 문자 발송, 2: 알림톡 발송, 3: 이메일 발송, 4: 택배 배송
  • delivery_fee (배송비) — int
  • quantity (배송할 상품 개수) — int — NOT NULL
  • status (배송 상태) — int — NOT NULL — 1: 출고 준비, 2: 배송중, 3: 배송완료
  • delivery_date (발송일) — datetime — NOT NULL
  • create_date (생성일) — datetime — NOT NULL

rm_option_category (리워드몰 옵션 카테고리)

  • option_category_id (옵션 카테고리 ID) — binary(16) — Primary key — NOT NULL
  • product_type_id (상품 종류 ID) — binary(16) — Foreign key → rm_product_type.product_type_id — NOT NULL
  • name (옵션 카테고리 이름) — varchar(100) — NOT NULL
  • deleted (삭제 여부) — int
  • create_date (생성일) — datetime — NOT NULL

rm_option_value (리워드몰 옵션 값)

  • option_value_id (옵션 값 ID) — binary(16) — Primary key — NOT NULL
  • option_category_id (옵션 카테고리 ID) — binary(16) — Foreign key → rm_option_category.option_category_id — NOT NULL
  • name (옵션 값 이름) — varchar(100) — NOT NULL
  • deleted (삭제 여부) — int
  • create_date (생성일) — datetime — NOT NULL

rm_order (리워드몰 주문)

  • order_id (주문 ID) — binary(16) — Primary key — NOT NULL
  • transaction_id (거래 ID) — binary(16) — NOT NULL — 같은 주문 요청이라면 해당 값이 같음
  • user_id (유저 ID) — binary(16) — NOT NULL
  • user_type (유저 타입) — int — NOT NULL — 1: 일반 유저, 2: 포탈 관리자
  • total_price (주문 총 금액) — bigint — NOT NULL
  • total_quantity (주문 총 수량) — int — NOT NULL
  • status (주문 상태) — int — NOT NULL — 1: 주문 요청, 2: 주문 완료, 3: 주문 취소, 4: 결제 실패, 5: 결제 완료, 6: 배송중, 7: 배송 완료, 8: 구매 확정
  • create_date (생성일) — datetime — NOT NULL

rm_order_product (리워드몰 주문 상품)

  • order_product_id (주문 상품 ID) — binary(16) — Primary key — NOT NULL
  • order_id (주문 ID) — binary(16) — Foreign key → rm_order.order_id — NOT NULL
  • product_id (상품 ID) — binary(16) — Foreign key → rm_product.product_id — NOT NULL
  • quantity (상품 개수) — int — NOT NULL
  • name (상품명) — varchar(50) — NOT NULL
  • image (상품 대표 이미지) — varchar(255)
  • sale_price (판매가) — int — NOT NULL
  • regular_price (정가) — int — NOT NULL
  • expiration_period (유효 기간(일)) — int — NOT NULL
  • coupon_code (모바일 상품권 코드) — varchar(100)
  • create_date (생성일) — datetime — NOT NULL

rm_order_product_coupon (리워드몰 주문 상품 쿠폰)

  • idx (주문 상품 쿠폰 ID) — bigint — Primary key — NOT NULL
  • order_product_id (주문 상품 ID) — binary(16) — Foreign key → rm_order_product.order_product_id — NOT NULL
  • idx (리워드 유저 ID) — Foreign key → rm_reward_user.idx — NOT NULL
  • order_id (주문 ID) — binary(16) — Foreign key — NOT NULL

rm_order_recipient (리워드몰 주문 수령자)

  • order_recipient_id (주문 수령자 ID) — bigint — Primary key — NOT NULL
  • order_id (주문 ID) — binary(16) — Foreign key → rm_order.order_id — NOT NULL
  • order_product_id (주문 상품 ID) — binary(16) — Foreign key → rm_order_product.order_product_id — NOT NULL
  • user_id (유저 ID) — binary(16)
  • phoneno (수신자 전화번호) — varchar(11) — NOT NULL
  • name (수신자 이름) — varchar(255)
  • nickname (수신자 닉네임) — varchar(255)
  • status (상품 수령 상태) — int — NOT NULL — 1: 성공, 2: 실패, 3: 요청, 4: 대기
  • fail_reason (상품 수령 실패 이유) — int — 1: 유효하지 않은 전화번호...
  • address (수신자 주소) — varchar(255)
  • detail_address (수신자 상세주소) — varchar(255)
  • post_code (우편번호) — varchar(20)
  • request_message (배송 시 요청사항) — varchar(255)
  • receipt_date (수령일) — datetime
  • create_date (생성일) — datetime — NOT NULL

rm_post (리워드몰 게시판(문의/후기))

  • post_id (게시판 ID) — bigint — Primary key — NOT NULL
  • product_id (상품 ID) — binary(16) — Foreign key → rm_product.product_id — NOT NULL
  • user_id (작성자 ID) — binary(16) — NOT NULL
  • user_type (작성자 타입) — int — NOT NULL — 1: 일반 유저, 2: 포탈 관리자
  • post_type (게시판 종류) — int — NOT NULL — 1: 문의, 2: 후기
  • title (제목) — varchar(100)
  • content (내용) — varchar(1000)
  • images (이미지) — varchar(1000) — 이미지 목록
  • rate (별점) — int
  • create_date (생성일) — datetime — NOT NULL

rm_post_reply (리워드몰 게시판 댓글)

  • reply_id (댓글 ID) — bigint — Primary key — NOT NULL
  • post_id (게시판 ID) — bigint — Foreign key → rm_post.post_id — NOT NULL
  • content (댓글 내용) — varchar(1000)
  • operator_id (운영자 ID) — varchar(100)
  • create_date (생성일) — datetime — NOT NULL

rm_product (리워드몰 상품)

  • product_id (상품 ID) — binary(16) — Primary key — NOT NULL
  • product_type_id (상품 종류 ID) — binary(16) — Foreign key → rm_product_type.product_type_id — NOT NULL
  • quantity (현재 수량) — int — NOT NULL
  • status (상태) — int — NOT NULL — 0: 숨김, 1: 판매중, 2: 품절
  • create_date (생성일) — datetime — NOT NULL
  • update_date (수정일) — datetime — NOT NULL

rm_product_category (리워드몰 상품 카테고리)

  • category_id (카테고리 ID) — binary(16) — Primary key — NOT NULL
  • parent_category_id (부모 카테고리 ID) — binary(16) — Foreign key → rm_product_category.category_id — NOT NULL
  • category (카테고리 이름) — varchar(100) — NOT NULL
  • create_date (생성일) — datetime — NOT NULL

rm_product_inventory (리워드몰 상품 재고 관리)

  • inventory_id (상품 재고 관리 ID) — binary(16) — Primary key — NOT NULL
  • product_id (상품 ID) — binary(16) — Foreign key → rm_product.product_id — NOT NULL
  • initial_stock (초기 수량) — int — NOT NULL — 디지털 상품권인 경우 수량 무제한
  • additional_stock (추가 수량) — int
  • product_stock (현재 수량) — int
  • is_sold_out (매진 여부) — int
  • is_restocked_available (재입고 가능 여부) — int — 0: 재입고 안됨, 1: 재입고 가능
  • is_restocked (재입고 여부) — int
  • deleted (삭제 여부) — int
  • create_date (생성일) — datetime — NOT NULL
  • update_date (수정일) — datetime — NOT NULL

rm_product_option (리워드몰 상품 옵션)

  • product_option_id (상품 옵션 ID) — binary(16) — Primary key — NOT NULL
  • product_id (상품 ID) — binary(16) — Foreign key → rm_product.product_id — NOT NULL
  • option_value_id (옵션 값 ID) — binary(16) — Foreign key → rm_option_value.option_value_id — NOT NULL
  • create_date (생성일) — datetime — NOT NULL

rm_product_tag (리워드몰 상품 태그)

  • tag_id (태그 ID) — binary(16) — Primary key — NOT NULL
  • parent_tag_id (부모 태그 ID) — binary(16) — Foreign key → rm_product_tag.tag_id — NOT NULL
  • tag (태그 이름) — varchar(100) — NOT NULL
  • create_date (생성일) — datetime — NOT NULL

rm_product_type (리워드몰 상품 종류)

  • product_type_id (상품 종류 ID) — binary(16) — Primary key — NOT NULL
  • brand_id (브랜드 ID) — binary(16) — Foreign key → rm_brand.brand_id — NOT NULL
  • category_id (카테고리 ID) — binary(16) — Foreign key → rm_product_category.category_id
  • tag_id (태그 ID) — binary(16) — Foreign key → rm_product_tag.tag_id
  • name (상품명) — varchar(50) — NOT NULL
  • image (상품 대표 이미지) — varchar(255)
  • description (상퓸 설명) — longtext — json 문자열
  • sale_price (판매가) — int — NOT NULL
  • regular_price (정가) — int — NOT NULL
  • type (상품 유형) — int — NOT NULL — 1: 디지털 상품권, 2: 배송형 상품, 3: 실물 상품
  • expiration_period (유효 기간(일)) — int — NOT NULL
  • exchange_place (교환처) — varchar(50)
  • status (상태) — int — NOT NULL — 0: 숨김, 1: 판매중, 2: 품절
  • is_sale (할인 여부) — int
  • is_recommended (추천 상품 여부) — int
  • deleted (삭제 여부) — int
  • create_date (생성일) — datetime — NOT NULL
  • update_date (수정일) — datetime — NOT NULL

rm_reward (리워드몰 리워드)

  • reward_id (리워드 ID) — binary(16) — Primary key — NOT NULL
  • order_product_id (주문 상품 ID) — binary(16) — Foreign key → rm_order_product.order_product_id — NOT NULL

rm_reward_user (리워드몰 리워드 유저)

  • idx (리워드 유저 ID) — Primary key — NOT NULL
  • reward_id (리워드 ID) — binary(16) — Foreign key → rm_reward.reward_id — NOT NULL
  • user_id (유저 ID) — binary(16) — NOT NULL

rm_store (리워드몰 상점)

  • store_id (상점 ID) — binary(16) — Primary key — NOT NULL
  • name (상점 이름) — varchar(100) — NOT NULL
  • image (상점 대표 이미지) — varchar(255)
  • status (상태) — int — NOT NULL — 0: 숨김, 1: 운영중
  • create_date (생성일) — datetime — NOT NULL
  • update_date (수정일) — datetime — NOT NULL

rm_wish_list (리워드몰 찜한 상품)

  • wish_list_id (찜하기 ID) — binary(16) — Primary key — NOT NULL
  • user_id (유저 ID) — binary(16) — NOT NULL
  • user_type (유저 타입) — int — NOT NULL — 1: 일반 유저, 2: 포탈 관리자
  • create_date (생성일) — datetime — NOT NULL
  • update_date (수정일) — datetime — NOT NULL

rm_wish_list_product (리워드몰 찜한 상품 내역)

  • wish_list_product_id (찜한 상품 내역 ID) — binary(16) — Primary key — NOT NULL
  • wish_list_id (찜하기 ID) — binary(16) — Foreign key → rm_wish_list.wish_list_id — NOT NULL
  • product_id (상품 ID) — binary(16) — Foreign key → rm_product.product_id — NOT NULL
  • create_date (생성일) — datetime — NOT NULL