board

테이블 (6)

게시글 (article)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (boardId) — int — 외래 키 → 게시판.Key — NOT NULL
  • Key (userId) — int — 외래 키 → 유저.Key — NOT NULL
  • Field (title) — varchar
  • Field (type) — ENUM
  • Field (content) — longtext
  • Field (readCount) — int
  • Field (createdAt)
  • Field (updatedAt)

게시판 (board)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (adminId) — int — 외래 키 → 관리자.Key — NOT NULL
  • Field (name) — varchar
  • Field (description) — varchar
  • Field (createdAt)
  • Field (updatedAt)

관리자 (admin)

  • Key (id) — int — 기본 키 — NOT NULL

대댓글 (nestedComment)

  • Key (id) — 기본 키 — NOT NULL
  • Key (commentId) — int — 외래 키 → 댓글.Key — NOT NULL
  • Key (userId) — int — 외래 키 → 유저.Key — NOT NULL
  • Field (content) — text
  • Field (createdAt)
  • Field (updatedAt)

댓글 (comment)

  • Key (id) — int — 기본 키 — NOT NULL
  • Key (articleId) — int — 외래 키 → 게시글.Key — NOT NULL
  • Key (userId) — int — 외래 키 → 유저.Key — NOT NULL
  • Field (content) — longtext
  • Field (createdAt)
  • Field (deletedAt)

유저 (user)

  • Key (id) — int — 기본 키 — NOT NULL