umc-hackathon-three-out

테이블 (6)

감정 기록 (record)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (user_id) — int — 외래 키 → 유저.Key — NOT NULL
  • Key (friend_id) — int — 외래 키 → 친구.Key — NOT NULL
  • Key (sticker_id) — int — 외래 키 → 감정 스티커.Key — NOT NULL
  • Field (description) — string
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)

감정 스티커 (sticker)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (name) — string — NOT NULL
  • Field (type) — int

경고 친구 (warning)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (friend_id) — int — 외래 키 → 친구.Key — NOT NULL
  • Field (p_comment) — string
  • Field (if_comment) — string

유저 (user)

  • Key (id) — int — 기본 키 — NOT NULL
  • Field (email) — string — NOT NULL
  • Field (password) — string — NOT NULL
  • Field (nickname) — string
  • Field (image) — varchar(500)
  • Field (promise) — string
  • Field (status) — boolean — NOT NULL
  • Field (inactive_date) — datetime
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)
  • Field (refresh_token)

친구 (friend)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (user_id) — int — 외래 키 → 유저.Key — NOT NULL
  • Field (nickname) — string
  • Field (relation) — string
  • Field (created_at) — datetime(6)
  • Field (updated_at) — datetime(6)
  • Field (image) — varchar(500)

친구-감정 스티커 (friend_sticker)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (friend_id) — int — 외래 키 → 친구.Key — NOT NULL
  • Key (sticker_id) — int — 외래 키 → 감정 스티커.Key — NOT NULL
  • Key (user_id) — int — 외래 키 → 유저.Key — NOT NULL