MainProject

테이블 (5)

게시글 (post)

  • Key (post_id) — int — 기본 키 — NOT NULL
  • 본문 (content) — String
  • 생성날짜 (createDate) — LocalDateTime
  • 회원 id (user_id) — int — 외래 키 → 회원.Key — NOT NULL

게시글 좋아요 (user_post_like)

  • Key (id) — int — 기본 키 — NOT NULL
  • 회원 id (user_id) — int — 외래 키 → 회원.Key — NOT NULL
  • 게시글 id (post_id) — int — 외래 키 → 게시글.Key — NOT NULL
  • 생성날짜 (createDate) — LocalDateTime

댓글 (comment)

  • Key (comment_id) — int — 기본 키 — NOT NULL
  • 내용 (content) — String
  • 회원 id (user_id) — int — 외래 키 → 회원.Key — NOT NULL
  • 게시글 id (post_id) — int — 외래 키 → 게시글.Key — NOT NULL
  • 생성날짜 (createDate) — LocalDateTime
  • Field

팔로우 (follow)

  • Key (follow_id) — int — 기본 키 — NOT NULL
  • 팔로워 id (follower_id) — int — 외래 키 → 회원.Key — NOT NULL
  • 팔로잉 id (following_id) — int — 외래 키 → 회원.Key — NOT NULL
  • createDate — LocalDateTime

회원 (User)

  • Key (user_id) — int — 기본 키 — NOT NULL
  • 이메일 (email) — String
  • 비밀번호 (password) — String
  • 이름 (name) — String
  • 핸드폰 번호 (phone) — String
  • 성별 (gender) — String
  • 프로필 이미지 (profileImageUrl) — String
  • 역할 (role) — String
  • 생성날짜 (createDate) — LocalDateTime