likelion_session_3

테이블 (5)

게시물 (Posts)

  • 게시물 id (post_id) — Integer — 기본 키 — NOT NULL
  • 사용자 id (user_id) — Integer — 외래 키 → 사용자.사용자 id — NOT NULL
  • 생성일자 (create_date) — DateTime
  • 제목 (post_title) — String
  • 분야 (post_field) — String
  • 게시물 설명 (description) — Text
  • 조회수 (view_count) — Integer

게시물 좋아요 (Post_Likes)

  • 좋아요 id (post_like_id) — Integer — 기본 키 — NOT NULL
  • 사용자 id (user_id) — Integer — 외래 키 → 사용자.사용자 id — NOT NULL
  • 게시물 id (post_id) — Integer — 외래 키 → 게시물.게시물 id — NOT NULL

댓글 (Comments)

  • 댓글 id (comment_id) — Integer — 기본 키 — NOT NULL
  • 사용자 id (user_id) — Integer — 외래 키 → 사용자.사용자 id — NOT NULL
  • 게시물 id (post_id) — Integer — 외래 키 → 게시물.게시물 id — NOT NULL
  • 생성일자 (create_date) — DateTime
  • 댓글 내용 (comment_content) — Text

댓글 좋아요 (Comment_Likes)

  • 좋아요 id (com_like_id) — Integer — 기본 키 — NOT NULL
  • 사용자 id (user_id) — Integer — 외래 키 → 사용자.사용자 id — NOT NULL
  • 댓글 id (comment_id) — Integer — 외래 키 → 댓글.댓글 id — NOT NULL

사용자 (Users)

  • 사용자 id (user_id) — Integer — 기본 키 — NOT NULL
  • 사용자 이름 (user_name) — String
  • 사용자 권한 (user_role) — String
  • 휴대폰 번호 (mobile_number) — String
  • 생년월일 (birth_date) — DateTime
  • 생성일자 (admin_date) — DateTime