게시판

테이블 (4)

게시글 (Posts)

  • 게시글id (post_id) — BigInt — 기본 키 — NOT NULL
  • 유저 id (user_id) — BigInt — 외래 키 → 유저.유저 id — NOT NULL
  • 게시글 제목 (post_title) — String
  • 게시글 내용 (post_content) — Text
  • 게시글 이미지 (post_image) — String

댓글 (Comments)

  • 댓글id (comment_id) — BigInt — 기본 키 — NOT NULL
  • 유저 id (user_id) — BigInt — 외래 키 → 유저.유저 id — NOT NULL
  • 게시글id (post_id) — BigInt — 외래 키 → 게시글.게시글id — NOT NULL
  • 내용 (comment_content)

유저 (Users)

  • 유저 id (user_id) — BigInt — 기본 키 — NOT NULL
  • 이메일 (user_email) — String
  • 비밀번호 (user_password) — String
  • 닉네임 (user_nickname) — String
  • 프로필 이미지 (user_profile_image) — String

좋아요 (Likes)

  • 좋아요 id (like_id) — BigInt — 기본 키 — NOT NULL
  • 게시글id (post_id) — BigInt — 외래 키 → 게시글.게시글id — NOT NULL