title

테이블 (6)

게시글 post (Untitled2)

  • 게시글번호 (post_id) — BIGINT — 기본 키 — NOT NULL
  • user_id (Key) — BIGINT — 외래 키 → 사용자.id — NOT NULL
  • 제목 (title) — VARCHAR(200)
  • 내용 (content) — TEXT
  • 조회수 (view_count) — int
  • 작성일 (created_at) — datetime

댓글 comment (Untitled3)

  • 댓글번호 (comment_id) — bigint — 기본 키 — NOT NULL
  • 게시글번호 (post_id) — BIGINT — 외래 키 → 사용자.id — NOT NULL
  • 댓글 (content) — varchar
  • 작성일 (created_at) — datetime
  • 수정일 (updated_at) — datetime

사용자 (Untitled)

  • id (Key) — BIGINT — 기본 키 — NOT NULL
  • user_id (Field) — varchar
  • 이메일 (email)
  • 비밀번호 (Field2)
  • 닉네임 (Field3)

신고 (Untitled6)

    좋아요 Like (Untitled4)

    • 좋아요번호 (like_id) — Bigint — 기본 키 — NOT NULL
    • 게시글번호 (post_id) — BIGINT — 외래 키 → 사용자.id — NOT NULL
    • 좋아요일 (created_at) — datetime

    팔로우 테이블 (Untitled5)

    • 팔로우번호 (follow_id) — Bigint — 기본 키 — NOT NULL
    • 팔로워번호 (follower_id) — BIGINT — 외래 키 → 사용자.id — NOT NULL
    • 팔로우일 (create_at) — datetime
    • user_id (Key2) — BIGINT — 외래 키 → 사용자.id — NOT NULL