clxm Main Service

테이블 (11)

게임정보 (Game)

  • Key — 기본 키 — NOT NULL
  • background_img (Field) — string
  • main_img (Field2) — string
  • poster_img (Field3) — string
  • thumbnail_img' (Field4) — string
  • title (Field5) — string

결제정보 (Trans)

  • _id (결제ID) — 기본 키 — NOT NULL
  • user_id (유저ID) — 외래 키 → 유저.Key — NOT NULL
  • trans_dena (충전데나) — number
  • trans_ price (결제금액) — number
  • trans_method (결제방법) — string
  • refund (환불금액) — number
  • refund_at (환불일시) — Date
  • coupon_code (쿠폰충전일시 쿠폰코드) — string

경기 (Match)

  • Key — 기본 키 — NOT NULL
  • team_ids (팀ID 배열) — string[] — 외래 키 → 선수.Key — NOT NULL
  • donation_ids (후원ID 배열) — string[] — 외래 키 → 후원.Key — NOT NULL
  • created_by (생성자 유저 ID) — String — 외래 키 → 유저.Key — NOT NULL
  • game_id (게임정보 ID) — String — 외래 키 → 게임정보.Key — NOT NULL
  • total_prize (상금) — number
  • status (경기상황) — pending | standby | live | complete | cancel (stanby 후 15분뒤 live로 설정)
  • created_at (생성일자) — Date
  • win_condition (승리조건) — string
  • maps (맵 배열) — string[]
  • req_text (요구사항) — string
  • match_form (경기형태(1vs1)) — 1vs1
  • sponsors (스폰서) — string
  • match_date (경기일시) — Date (standby된후 15분뒤로 설정)

선수 (Player)

  • Key — 기본 키 — NOT NULL
  • email (Field)
  • nick_name (Field2)
  • ch_name (방송채널네임) — string
  • ch_url (방송채널url) — string
  • profile_img (Field6)
  • bank_info (계좌정보) — account_owner account_bank account_num account_biz_num
  • rate (수수료율) — number
  • terms_agree (약관동의) — boolean
  • fb_uid (파이어베이스 UID) — string
  • dena (포인트) — number
  • created_at (Field5)
  • auth (인증 토큰) — boolean
  • playable (대기열 참가가능) — boolean
  • Field3

스폰서 (sponsor)

  • _id (Key) — 기본 키 — NOT NULL
  • spn_name (스폰서이름) — string
  • main_img (제일큰 이미지) — string
  • sub_img (그다음 큰 이미지) — string
  • redirect_url (리다이렉트 URL) — string
  • rct_img (직사가형 이미지) — string
  • sq_img (정사각형 이미지) — string
  • fb_uid (firebase 아이디) — string
  • Field

유저 (User)

  • Key — 기본 키 — NOT NULL
  • cash -> dena (포인트머니) — number
  • displayName -> nick_name (닉네임) — string
  • profile_img (프로필 사진) — string
  • terms_agree (약관동의) — boolean
  • email (이메일) — string
  • updates -> updated_at (닉네임변경) — Date
  • created_at (생성일) — Date
  • fb_uid (파이어베이스 uid) — string
  • isOffical 삭제 (Field5)
  • loss 삭제 (Field6)
  • rate 삭제 (Field)
  • win 삭제 (Field4)

전적 (Stats)

  • Key — 기본 키 — NOT NULL
  • payback_id (정산Id) — string — 외래 키 → 정산._id — NOT NULL
  • player_id (선수ID) — 외래 키 → 선수.Key — NOT NULL
  • match_id (경기ID) — string — 외래 키 → 경기.Key — NOT NULL
  • win (승패여부) — boolean
  • prize_earned (획득한 상금) — number (승자 80 패자 20 )

정산 (Payback)

  • _id (Key) — 기본 키 — NOT NULL
  • stats_id (전적ID) — string — 외래 키 → 전적.Key — NOT NULL
  • player_id (선수ID) — string — 외래 키 → 선수.Key — NOT NULL
  • refused_msg (반려사유) — string
  • payback_amount (정산금액) — number
  • created_at (생성일) — Date
  • rate (정산요율) — number
  • status (상태) — enum

쿠폰 (Coupon)

  • _id (asd) — 기본 키 — NOT NULL
  • remain (쿠폰수량) — number
  • expire_date (만료날짜) — Date
  • dena (충전데나) — number
  • coupon_id (쿠폰ID) — string

팀정보 (Team)

  • Key — 기본 키 — NOT NULL
  • match_id (매치ID) — string — 외래 키 → 경기.Key — NOT NULL
  • players_info (선수 경기정보) — { player_id, accepted -> enum, updated_at } — 외래 키 → 선수.Key — NOT NULL

후원 (Donation)

  • Key — 기본 키 — NOT NULL
  • user_id (유저ID) — string — 외래 키 → 유저.Key — NOT NULL
  • match_id (경기ID) — string — 외래 키 → 경기.Key — NOT NULL
  • msg (메세지) — string
  • amount (후원금) — number
  • donated_at (후원일시) — Date
  • Field