FORTEv2

테이블 (16)

Untitled (transactions)

  • Key (id) — uuid — 기본 키 — NOT NULL
  • (walletId) — number — 외래 키 → 지갑.id — NOT NULL
  • Field (amount) — number — NOT NULL
  • Field (isRollback) — boolean — NOT NULL

Untitled (merchandises)

  • Key (id) — number — 기본 키 — NOT NULL
  • Key (shopId) — number — 외래 키 → Untitled.Key — NOT NULL
  • Field (title) — string — NOT NULL
  • Field (sku) — string — NOT NULL
  • Field (image) — string
  • Field (price) — number — NOT NULL
  • Field (expiresAfter) — number
  • Field (purchaseLimit) — number
  • Field (isPurchasable) — boolean — NOT NULL
  • Field (isConsumable) — boolean — NOT NULL

Untitled (shops)

  • Key (id) — number — 기본 키 — NOT NULL
  • (userId) — number — 외래 키 → 사용자 정보.id — NOT NULL
  • Field (title) — string — NOT NULL
  • Field (description) — string — NOT NULL
  • Field (avatar) — string — NOT NULL

Untitled (tokens)

  • Key (id) — number — 기본 키 — NOT NULL
  • (userId) — number — 외래 키 → 사용자 정보.id — NOT NULL
  • Field (type) — enum(access,refresh) — NOT NULL
  • Field (expiresAt) — Date — NOT NULL
  • Field (revokedAt) — Date

Untitled (api_keys)

  • Key (id) — number — 기본 키 — NOT NULL
  • (userId) — number — 외래 키 → 사용자 정보.id — NOT NULL
  • Field (key) — string — NOT NULL
  • Field (previousKey) — string
  • Field (allowedIp) — string — NOT NULL

Untitled (coupons)

  • Key (ids) — number — 기본 키 — NOT NULL
  • (issuerId) — number — 외래 키 → 사용자 정보.id — NOT NULL
  • Field (type) — enum(bearer, named) — NOT NULL
  • Field (code) — string — NOT NULL
  • Field (title) — string — NOT NULL
  • Field (sender) — title — NOT NULL
  • Field (useLimit) — number
  • Field2 (expiresAt) — Date

Untitled (coupon_prizes)

  • Key (id) — number — 기본 키 — NOT NULL
  • Key (couponId) — number — 외래 키 → Untitled.Key — NOT NULL
  • Key (merchandiseId) — number — 외래 키 → Untitled.Key
  • Field (merchandiseQuantity) — number
  • Field (pointQuantity) — number

Untitled (coupon_transactions)

  • Key (id) — uuid — 기본 키 — NOT NULL
  • Key (couponId) — number — 외래 키 → Untitled.Key — NOT NULL
  • (userId) — number — 외래 키 → 사용자 정보.id
  • Field (discordId) — string

Untitled (coupon_receivers)

  • Key (id) — number — 기본 키 — NOT NULL
  • Key (couponId) — number — 외래 키 → Untitled.Key — NOT NULL
  • Field (discordId) — string — NOT NULL
  • Field2 (receivedAt) — Date

Untitled (payments)

  • Key (id) — uuid — 기본 키 — NOT NULL
  • (walletId) — number — 외래 키 → 지갑.id — NOT NULL
  • Field (pgType) — enum(xsolla) — NOT NULL
  • Field (transactionId) — string — NOT NULL
  • Field (amount) — string — NOT NULL
  • Field2 (currency) — string — NOT NULL
  • Field (isRollback) — boolean — NOT NULL

Untitled (events)

  • Key (id) — number — 기본 키 — NOT NULL
  • Key (couponId) — number — 외래 키 → Untitled.Key — NOT NULL
  • Key (shopId) — number — 외래 키 → Untitled.Key
  • Field (title) — string — NOT NULL
  • Field (body) — string — NOT NULL
  • Field (status) — enum(pending, running, stopped, finished) — NOT NULL
  • Field (startsAt) — Date — NOT NULL
  • Field (endsAt) — Date — NOT NULL

Untitled (event_users)

  • Key (eventId) — number — 외래 키 → Untitled.Key — NOT NULL
  • (userId) — number — 외래 키 → 사용자 정보.id — NOT NULL
  • Field (receivedAt) — Date

사용자 그룹 (roles)

  • (id) — number — 기본 키 — NOT NULL
  • (title) — string — NOT NULL
  • (isAdmin) — boolean — NOT NULL

사용자 정보 (users)

  • (id) — number — 기본 키 — NOT NULL
  • (roleId) — number — 외래 키 → 사용자 그룹.id — NOT NULL
  • (discordName) — string — NOT NULL
  • (discordId) — string — NOT NULL
  • (email) — string — NOT NULL

인벤토리 (inventories)

  • (id) — number — 기본 키 — NOT NULL
  • (userId) — number — 외래 키 → 사용자 정보.id — NOT NULL
  • Key (merchandiseId) — number — 외래 키 → Untitled.Key — NOT NULL
  • Key (transactionId) — uuid — 외래 키 → Untitled.Key — NOT NULL
  • Field (expiresAt) — Date
  • Field (syncedAt) — Date
  • Field (usedAt) — Date

지갑 (wallets)

  • (id) — number — 기본 키 — NOT NULL
  • (userId) — number — 외래 키 → 사용자 정보.id — NOT NULL
  • (balance) — number — NOT NULL