KWCC

Tables (35)

AdLink (광고 링크)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • sort_num (정렬 순서) — number
  • url (URL) — text

Banner (배너)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • display_place (전시 장소) — DISPLAY_PLACE
  • sort_num (정렬 순서) — number
  • image (이미지) — image
  • url (URL) — text

Campaign (캠페인)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • pay_expired_at (결제 마감 시간) — DateTime
  • expired_at (마감 시간) — DateTime
  • category_detail (카테고리 상세) — CategoryDetail — Foreign key → CategoryDetail.unique_id — NOT NULL
  • host_user (호스트 유저) — User — Foreign key → User.unique_id — NOT NULL
  • product (상품) — Product — Foreign key → Product.unique_id — NOT NULL
  • is_confirmed (확정 여부) — boolean
  • price (공개 최저가) — number
  • expect_price (예상 득템가) — number
  • final_price (최종 득템가) — number
  • join_user_list (참여 유저 리스트) — List<User> — Foreign key → User.unique_id — NOT NULL
  • noshow_user_list (노쇼 유저 리스트) — List<User> — Foreign key → User.unique_id — NOT NULL

CampaignUser (캠페인 결제 유저)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • campaign (캠페인) — Campaign — Foreign key → Campaign.unique_id — NOT NULL
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL
  • order (주문) — Order — Foreign key → Order.order_id — NOT NULL

Category (카테고리)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • item_type (아이템 유형) — ITEM_TYPE
  • name (카테고리 명) — text
  • sort_num (정렬 순서) — number

CategoryDetail (카테고리 상세)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • name (카테고리 상세 명) — text
  • sort_num (정렬 순서) — number
  • cateogory (카테고리) — Category — Foreign key → Category.unique_id — NOT NULL

Certify (인증 정보)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • code (인증 코드) — text
  • expired_at (만료 일시) — Datetime
  • phone (핸드폰 번호) — text

Faq (FAQ)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • title (제목) — text
  • contents (내용) — text
  • sort_num (정렬 순서) — number
  • created_at (생성 일시) — DateTime

Inquiry (고객문의)

  • unique_id (고유번호) — text — Primary key — NOT NULL
  • is_answered (답변 여부) — boolean
  • title (제목) — text
  • contents (내용) — text
  • created_at (생성 일시) — DateTime
  • answered_at (답변 시간) — DateTime
  • answer (답변) — text
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

Notice (공지사항)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • title (제목) — text
  • contents (내용) — text
  • created_at (생성 일자) — DateTime

Order (주문)

  • order_id (주문 채번) — text — Primary key — NOT NULL
  • id_point (아이디 포인트) — number
  • order_state (주문 상태) — ORDER_STATE
  • total_price (총 구매 금액) — number
  • original_price (캠페인 공구 가격) — number
  • product_price (상품 최저가 가격) — number
  • delivery_fee (배송비) — number
  • product (상품) — Product — Foreign key → Product.unique_id — NOT NULL
  • product_name (상품명) — text
  • pay_at (결제 일시) — DateTime
  • payments (결제 정보) — Payments — Foreign key → Payments.unique_id — NOT NULL
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL
  • address (주소지) — text
  • address_detail (상세 주소) — text
  • postno (우편번호) — text
  • phone (연락처) — text
  • reciever (수신인) — text

Payments (결제 정보)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • version (응답 버전) — text
  • paymentKey (결제 고유값) — text
  • type (결제 타입 정보) — text
  • orderId (주문번호) — text
  • orderName (구매상품) — text
  • mId (상점아이디(MID)) — text
  • currency (통화) — text
  • method (결제수단) — text
  • totalAmount (총 결제 금액) — number
  • balanceAmount (취소 가능 금액(잔고)) — number
  • status (결제 처리 상태) — text
  • requestedAt (결제가 일어난 날짜와 시간 정보) — text
  • approvedAt (결제 승인이 일어난 날짜와 시간 정보) — text
  • useEscrow (에스크로 사용 여부) — boolean
  • lastTransactionKey (마지막 거래의 키 값입니다. 한 결제 건의 승인 거래와 취소 거래를 구분하는 데 사용) — text
  • suppliedAmount (공급가액) — number
  • vat (부가세) — number
  • cultureExpense (문화비(도서, 공연 티켓, 박물관·미술관 입장권 등) 지출 여부) — boolean
  • taxFreeAmount (결제 금액 중 면세 금액) — number
  • taxExemptionAmount (과세를 제외한 결제 금액) — number
  • isPartialCancelable (부분 취소 가능 여부) — boolean
  • secret (웹훅 검증) — text
  • country (국가코드) — text

PaymentsCancel (결제 취소 이력)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • payments (결제 정보) — Payments — Foreign key → Payments.unique_id — NOT NULL
  • transactionKey (취소 고유값) — text
  • receiptKey (취소 현금영수증 키값) — text
  • cancelAmount (결제를 취소한 금액) — number
  • cancelReason (결제를 취소한 이유) — text
  • taxFreeAmount (취소된 금액 중 면세 금액) — number
  • taxExemptionAmount (취소된 금액 중 과세 제외 금액) — number
  • refundableAmount (결제 취소 후 환불 가능한 잔액) — number
  • easyPayDiscountAmount (간편결제 서비스의 포인트, 쿠폰, 즉시할인과 같은 적립식 결제수단에서 취소된 금액) — number
  • canceledAt (결제 취소가 일어난 날짜와 시간 정보) — text
  • cancelStatus (취소 상태) — text
  • cancelRequestId (취소 요청 ID 비동기 결제에만 적용되는 특수 값) — text

PaymentsCard (결제정보 카드)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • payments (결제 정보) — Payments — Foreign key → Payments.unique_id — NOT NULL
  • approveNo (카드사 승인 번호) — text
  • amount (결제 요청 금액) — number
  • issuerCode (카드 발급사 두자리 코드) — text
  • acquirerCode (카드 매입사 두자리 코드) — text
  • number (카드 번호) — text
  • installmentPlanMonths (할부 개월 수) — number
  • useCardPoint (카드사 보인트 사용 여부) — boolean
  • cardType (카드 타입 신용, 체크, 기프트, 미확인) — text
  • ownerType (카드 소유자 타입 개인, 법인, 미확인) — text
  • acquireStatus (카드 결제의 매입 상태) — text
  • isInterestFree (무이자 할부 적용 여부) — boolean
  • interestPayer (할부가 적용된 결제에서 할부 수수료를 부담하는 주체) — text

PaymentsCertificate (상품권 결제)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • payments (결제 정보) — Payments — Foreign key → Payments.unique_id — NOT NULL
  • approveNo (결제 승인번호) — text
  • settlementStatus (정산 상태) — text

PaymentsEasyPay (간편결제 정보)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • payments (결제 정보) — Payments — Foreign key → Payments.unique_id — NOT NULL
  • provider (간편결제사 코드) — text
  • amount (결제한 금액) — number
  • discountAmount (할인 금액) — number

PaymentsMobilePhone (휴대폰 결제)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • payments (결제 정보) — Payments — Foreign key → Payments.unique_id — NOT NULL
  • customerMobilePhone (휴대폰번호) — text
  • settlementStatus (정산 상태) — text
  • receiptUrl (영수증 정보) — text

PaymentsTransfer (계좌이체 결제)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • payments (결제 정보) — Payments — Foreign key → Payments.unique_id — NOT NULL
  • bankCode (은행 두 자리 코드) — text
  • settlementStatus (정산 상태) — text

PaymentsVirtualAccount (결제 가상계좌)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • payments (결제 정보) — Payments — Foreign key → Payments.unique_id — NOT NULL
  • accountType (가상계좌 타입) — text
  • accountNumber (발급된 계좌번호) — text
  • bankCode (가상계좌 은행 두 자리 코드) — text
  • customerName (가상계좌를 발급한 구매자명) — text
  • dueDate (입금 기한) — text
  • refundStatus (환불 처리 상태) — text
  • expired (가상계좌 만료 여부) — boolean
  • settlementStatus (정산 상태 정산이 아직 되지 않았다면 INCOMPLETED, 정산이 완료됐다면 COMPLETED) — text

Popup (팝업)

  • unique_id (고유번호) — text — Primary key — NOT NULL
  • image (이미지) — image
  • title (제목) — text
  • start_at (시작일) — DateTime
  • end_at (종료일) — DateTime
  • popup_state (팝업상태) — POPUP_STATE
  • sort_num (순서) — number

Product (상품)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • name (상품명) — text
  • price (공개 최저가) — number
  • thumbnail_list (썸네일 리스트) — List<image>
  • cateogory_detail (카테고리 상세) — CategoryDetail — Foreign key → CategoryDetail.unique_id — NOT NULL
  • delivery_fee (배송비) — number
  • contents_image_list (내용 이미지 리스트) — List<image>
  • contents_text (내용 텍스트) — text
  • url (URL) — text
  • sort_num (정렬 순서) — number

RandomProfile (랜덤 프로필)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • gender_type (성별 유형) — GENDER_TYPE
  • image (이미지) — image

Term (이용약관)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • term_type (약관 유형) — TERM_TYPE
  • contents (약관 내용) — text
  • last_update_at (마지막 업데이트 일시) — DateTime

Toto (또또)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • name (상품명) — text
  • category_detail (카테고리 상세) — CategoryDetail — Foreign key → CategoryDetail.unique_id — NOT NULL
  • thumbnail_list (썸네일 리스트) — List<image>
  • price (온라인 판매가) — number
  • need_num (필요 인원 수) — number
  • created_at (생성 일자) — DateTime
  • contents_image_list (내용 이미지 리스트) — List<Image>
  • contents_text (내용 텍스트) — text

TotoParty (또또 파티)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • toto_party_status (토토 파티 상태) — TOTO_PARTY_STATUS
  • need_num (필요 인원 수) — number
  • rest_num (잔여 인원) — number
  • created_at (생성 일자) — DateTime
  • is_confirm (확정 여부) — boolean
  • toto (또또) — Toto — Foreign key → Toto.unique_id — NOT NULL
  • join_user_list (참여 유저 리스트) — List<User> — Foreign key → User.unique_id — NOT NULL
  • winner_user (당첨자) — User — Foreign key → User.unique_id — NOT NULL

TotoPartyWinner (토토파티 당첨자)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • is_writing_delivery_info (배송정보 입력 여부) — boolean
  • postno (우편번호) — text
  • address (도로명 주소) — text
  • address_detail (상세 주소) — text
  • request_contents (요청사항) — text
  • toto_party (또또 파티) — TotoParty — Foreign key → TotoParty.unique_id — NOT NULL
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

User (유저)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • login_type (로그인 타입) — LOGIN_TYPE
  • user_type (유저 타입) — LOGIN_TYPE
  • user_state (유저 상태) — USER_STATE
  • password (버블 패스워드) — text
  • init_password (초기 패스워드) — text
  • control_password (제어 패스워드) — text
  • profile (프로필 이미지) — image
  • phone (전화번호) — text
  • name (성함) — text
  • gender_type (성별 유형) — GENDER_TYPE
  • birth_at (생년월일) — DateTime
  • target_id (타겟 아이디) — text
  • toto_ticket_num (또또권 보유 개수) — number
  • is_notificate (알림 설정 여부) — boolean
  • is_view_toto_guide (또또 가이드 조회 여부) — boolean
  • hide_popup_today (팝업 조회 여부) — boolean

UserAddress (유저 배송지)

  • unique_id (고유번호) — text — Primary key — NOT NULL
  • is_main (기본 주소 여부) — boolean
  • receiver (수취인) — text
  • phone (연락처) — text
  • postno (우편번호) — text
  • address (도로명주소) — text
  • address_detail (상세 주소) — text
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

UserDelivery (배송관리 테이블)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • url (택배사 링크) — text
  • delivery_status (배송 상태) — DELIVERY_STATUS
  • invoice_num (송장 번호) — text
  • campaign (캠페인) — Campaign — Foreign key → Campaign.unique_id — NOT NULL
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

UserDeliveryCancle (배송취소)

  • unique_id (고유번호) — text — Primary key — NOT NULL
  • user_delivery (배송정보) — UserDelivery — Foreign key → UserDelivery.unique_id — NOT NULL
  • order (주문) — Order — Foreign key → Order.order_id — NOT NULL
  • account_num (계좌번호) — text
  • account_holder (계좌주) — text
  • bank (은행) — text
  • reason (반품사유) — text
  • cancle_state (캔슬상태) — CANCLE_STATE

UserDevice (유저 기기정보)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • fcm_token (FCM 토큰) — text
  • user_id (유저 아이디) — text
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

UserEvent (유저 이벤트)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • event_type (이벤트 유형) — EVENT_TYPE
  • text_value (텍스트 값) — text
  • number_value (숫자 값) — number
  • date_value (날짜 값) — DateTime
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

UserLike (유저 좋아요)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • like_type (좋아요 유형) — ITEM_TYPE
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL
  • campaign (캠페인) — Campaign — Foreign key → Campaign.unique_id — NOT NULL
  • toto_party (또또파티) — TotoParty — Foreign key → TotoParty.unique_id — NOT NULL

UserNotification (유저 알림)

  • unique_id (고유 번호) — text — Primary key — NOT NULL
  • notification_type (알림 타입) — NOTIFICATION_TYPE
  • title (제목) — text
  • created_at (생성 일자) — DateTime
  • is_view (조회 여부) — boolean
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL

UserTicketLog (유저 또또권 로그)

  • unique_id (고윱 번호) — text — Primary key — NOT NULL
  • created_at (생성 일자) — DateTime
  • ticket_log_type (또또권 로그 유형) — TICKET_LOG_TYPE
  • user (유저) — User — Foreign key → User.unique_id — NOT NULL