d

테이블 (4)

게시판 (board)

  • id — int — 기본 키 — NOT NULL
  • 회원id (user_id) — int — 외래 키 → 회원정보.id — NOT NULL
  • 주제id (boardtype_id) — int — 외래 키 → 주제.id — NOT NULL
  • created_date — datetime — NOT NULL
  • 제목 (title) — char(100) — NOT NULL
  • 내용 (content) — text — NOT NULL
  • 조회수 (hit) — int — NOT NULL
  • modified_date — datetime — NOT NULL

댓글 (comment)

  • 댓글id (id) — int — 기본 키 — NOT NULL
  • 게시글id (board_id) — int — 외래 키 → 게시판.id — NOT NULL
  • 회원id (user_id) — int — 외래 키 → 회원정보.id — NOT NULL
  • created_date — datetime — NOT NULL
  • modified_date — datetime — NOT NULL
  • 내용 (content) — text — NOT NULL

주제 (boardtype)

  • id — int — 기본 키 — NOT NULL
  • 게시판종류 (boardtype) — char(100) — NOT NULL

회원정보 (user_information)

  • id — int — 기본 키 — NOT NULL
  • 이름 (name) — char(100) — NOT NULL
  • 나이 (age) — int — NOT NULL