smilegate-blog

테이블 (5)

Untitled (like)

  • Key (like_id) — int(11) — 기본 키 — NOT NULL
  • 게시글 아이디 (post_id) — int(11) — 외래 키 → 게시글.게시글 아이디 — NOT NULL
  • Key (user_id) — int(11) — 외래 키 → Untitled.Key — NOT NULL

Untitled (user)

  • Key (user_id) — varchar(100) — 기본 키 — NOT NULL
  • Field (user_password) — varchar(100) — NOT NULL
  • Field (user_name) — varchar(100) — NOT NULL

게시글 (post)

  • 게시글 아이디 (post_id) — int(11) — 기본 키 — NOT NULL
  • Key (userId) — int(11) — 외래 키 → Untitled.Key — NOT NULL
  • 제목 (title) — varchar(255) — NOT NULL
  • 본문 (content) — text — NOT NULL
  • 생성 날짜 (created_at) — date — NOT NULL
  • Field (category_id) — int(11) — NOT NULL

댓글 (comment)

  • 댓글 아이디 (comment_id) — int(11) — 기본 키 — NOT NULL
  • 게시글 아이디 (post_id) — int(11) — 외래 키 → 게시글.게시글 아이디 — NOT NULL
  • Key (user_id) — int(11) — 외래 키 → Untitled.Key — NOT NULL
  • 댓글 내용 (comment_content) — varchar(255) — NOT NULL
  • Field (created_at) — date — NOT NULL

이미지 (image)

  • 이미지 아이디 (image_id) — int(11) — 기본 키 — NOT NULL
  • 게시글 아이디 (post_id) — int(11) — 외래 키 → 게시글.게시글 아이디 — NOT NULL
  • 이미지 주소 (image_url) — varchar(100) — NOT NULL
  • 썸네일 여부 (is_thumbnail)