보드

테이블 (7)

Untitled (board_comments)

  • Key (id) — bigint — 기본 키 — NOT NULL
  • id (user_id) — bigint — 외래 키 → users.id — NOT NULL
  • Key (board_id) — ubigint — 외래 키 → boards.Key — NOT NULL
  • Field (comment_id) — tinyint — comment_id
  • Field (content) — text
  • Field (created_at) — datetime
  • Field (updated_at) — datetime

Untitled (user_board_read)

  • id (user_id) — bigint — 외래 키 → users.id — NOT NULL
  • Key (board_id) — bigint — 외래 키 → boards.Key — NOT NULL
  • Field (read_at) — datetime

Untitled (board_type)

  • Key (id) — 기본 키 — NOT NULL
  • Field (title)
  • Field (subtitle)

Untitled (user_like)

  • id (user_id) — bigint — 외래 키 → users.id — NOT NULL
  • Key (like_id) — bigint — 외래 키 → boards.Key — NOT NULL
  • Field3 (like_type) — string
  • Field (lile_at) — tyinty

Untitled (user_memo)

  • Key (id) — bigint — 기본 키 — NOT NULL
  • id (user_id) — bigint — 외래 키 → users.id — NOT NULL
  • id (a_user_id) — bigint — 외래 키 → users.id — NOT NULL
  • Field (content) — text
  • Field (color) — tiyinyint

boards

  • Key (id) — bigint — 기본 키 — NOT NULL
  • id (user_id) — bigint — 외래 키 → users.id — NOT NULL
  • Field (type) — string — 타입
  • Field (title) — string — 제목
  • Field (content) — text — 본문
  • Field (created_at) — datetime — 작성일자
  • Field (updated_at) — datetime — 수정일자
  • Field (like) — tyinty — 공감
  • Field (hit) — tyinty — 조회수

users

  • id — bigint — 기본 키 — NOT NULL
  • Field (name) — string
  • Field (email) — string
  • Field (is_admin) — bool — 1:관리자, 0:유저