NewsFeed
테이블 (7)
게시물 (post)
- post PK (id) — Long — 기본 키 — NOT NULL
- user PK (user_id) — Long — 외래 키 → 사용자.user PK — NOT NULL
- 게시물 내용 (content) — String
- 댓글 수 (count_comments) — Integer
- 좋아요 수 (count_likes) — Integer
- 작성 일자 (created_at) — LocalDateTime
- 수정 일자 (updated_at) — LocalDateTime
게시물 좋아요 (post_likes)
- post_likes PK (id) — Long — 기본 키 — NOT NULL
- user PK (user_id) — Long — 외래 키 → 사용자.user PK — NOT NULL
- post PK (post_id) — Long — 외래 키 → 게시물.post PK — NOT NULL
댓글 (comment)
- comment PK (id) — Long — 기본 키 — NOT NULL
- user PK (user_id) — Long — 외래 키 → 사용자.user PK — NOT NULL
- post PK (post_id) — Long — 외래 키 → 게시물.post PK — NOT NULL
- 댓글 내용 (content) — String
- 작성 일자 (created_at) — LocalDateTime
- 수정 일자 (updated_at) — LocalDateTime
- 좋아요 수 (count_likes) — Integer
댓글 좋아요 (comment_likes)
- comment_likes PK (id) — Long — 기본 키 — NOT NULL
- user PK (user_id) — Long — 외래 키 → 사용자.user PK — NOT NULL
- comment PK (comment_id) — Long — 외래 키 → 댓글.comment PK — NOT NULL
사용자 (user)
- user PK (id) — Long — 기본 키 — NOT NULL
- 이름 (userName) — String
- 비밀번호 (password) — String
- 이메일(로그인 id) (email) — String
- 가입일자 (joined_at) — LocalDateTime
팔로우 (follow)
- Follow PK (id) — Long — 기본 키 — NOT NULL
- Follwing user PK (follower_id) — Long — 외래 키 → 사용자.user PK — NOT NULL
- user PK (following_id) — Long — 외래 키 → 사용자.user PK — NOT NULL
프로필 (profile)
- profile pk (id) — Long — 기본 키 — NOT NULL
- user pk (user_id) — Long — 외래 키 → 사용자.user PK — NOT NULL
- 소개글 (introduction) — String