Tera_blog

테이블 (4)

user_like (Untitled)

  • 게시글ID (post_id) — NOT NULL — 외래 키 → 게시글.게시글ID — NOT NULL
  • 유저ID (user_id) — NOT NULL — 외래 키 → 게시글.유저ID — NOT NULL

게시글 (post)

  • 게시글ID (post_id) — NOT NULL — 기본 키 — NOT NULL
  • 유저ID (user_id) — NOT NULL — 외래 키 → 유저.유저ID — NOT NULL
  • 제목 (title) — NOT NULL
  • 본문 (post_content) — NOT NULL
  • 이미지URL (image_url) — NOT NULL
  • 작성일 (created_at) — NOT NULL
  • 좋아요 (like) — NOT NULL

댓글 (comment)

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

유저 (user)

  • 유저ID (user_id) — NOT NULL — 기본 키 — NOT NULL
  • 로그인ID (user_name) — NOT NULL
  • 비밀번호 (password) — NOT NULL
  • 이메일 (email) — NOT NULL
  • 프로필 이미지 (profile_image_url) — NOT NULL
  • 권한 (authority) — NOT NULL