Bulletins

테이블 (4)

게시글 (post)

  • 게시글 ID (post_id) — int — 기본 키 — NOT NULL — auto increment
  • 작성자 (user_id) — int — 외래 키 → 회원.회원 ID — NOT NULL — auto increment
  • 본문 (content) — text
  • 생성일 (created_at) — datetime
  • 수정일 (updated_at) — datetime

댓글 (comment)

  • 댓글 ID (comment_id) — int — 기본 키 — NOT NULL — auto increment
  • 게시글 ID (post_id) — int — 외래 키 → 게시글.게시글 ID — NOT NULL — auto increment
  • 작성자 (author_id) — int
  • 본문 (content) — text
  • 생성일 (created_at) — datetime

좋아요 (like)

  • 좋아요 ID (like_id) — int — 기본 키 — NOT NULL — auto increment
  • 회원 ID (user_id2) — int — 외래 키 → 회원.회원 ID — NOT NULL — auto increment
  • 게시글 ID (post_id2) — int — 외래 키 → 게시글.게시글 ID — NOT NULL — auto increment
  • 생성일 (created_at) — datetime

회원 (user)

  • 회원 ID (user_id) — int — 기본 키 — NOT NULL — auto increment
  • email — varchar
  • 별명 (nickname) — varchar
  • 가입일 (registered_at) — datatime