비트코인

테이블 (5)

Favorite

  • id — ObjectId — 기본 키 — NOT NULL
  • userId — ObjectId — 외래 키 → User.id — NOT NULL
  • market (마켓 코드) — string
  • created (생성일) — Date
  • updated (수정일) — Date

Money

  • id — ObjectId — 기본 키 — NOT NULL
  • userId — ObjectId — 외래 키 → User.id — NOT NULL
  • balance (잔액) — number
  • created (생성일) — Date
  • updated (수정일) — Date
  • transactions (입출금 내역) — Array

Rank

  • id — ObjectId — 기본 키 — NOT NULL
  • userId — ObjectId — 외래 키 → User.id — NOT NULL
  • created (생성일) — Date
  • updated (수정일) — Date
  • totalAssets (총 자산) — number

Trade

  • id — ObjectId — 기본 키 — NOT NULL
  • userId — ObjectId — 외래 키 → User.id — NOT NULL
  • count (매수/매도 수) — Number
  • price (매수/매도 가격) — Number
  • created (생성일) — Date
  • updated (수정일) — Date
  • market (마켓 코드) — String

User

  • id — ObjectId — 기본 키 — NOT NULL
  • created (생성일) — Date
  • updated (수정일) — Date
  • email (이메일) — string
  • username (유저 이름) — string
  • status (활성화여부) — inactive | active