뉴스 피드
테이블 (7)
comment (댓글)
- comment_id (댓글 id) — not null — 기본 키 — NOT NULL
- feed_id (게시물 id) — not null — 외래 키 → news feed.feed_id — NOT NULL
- member_id (유저 id) — not null — 외래 키 → member.member_id — NOT NULL
- content (내용) — not null
- created_at (생성일) — not null
- modified_at (수정일) — not null
- Field (좋아요 수) — not null
comment_heart (댓글 좋아요)
- comment_heart_id (댓글 좋아요 id) — not null — 기본 키 — NOT NULL
- member_id (유저 id) — not null — 외래 키 → member.member_id — NOT NULL
- created_at (생성일) — not null
- modified_at (수정일) — not null
- comment_id (댓글 id) — nullable — 외래 키 → comment.comment_id
friendship (친구)
- id (친구 id) — not null — 기본 키 — NOT NULL
- member_id (요청한 유저 id) — not null — member_friend_id (unique)
- friend_id (요청받은 유저 id) — not null — member_friend_id (unique)
- status (상태) — not null — PENDING, ACCEPTED, DECLINED, DELETED, CANCELLED
- created_at (생성일) — not null
- modified_at (수정일) — not null
heart (좋아요)
- heart_id (좋아요 id) — not null — 기본 키 — NOT NULL
- feed_id (게시물 id) — not null — 외래 키 → news feed.feed_id — NOT NULL
- member_id (유저 id) — not null — 외래 키 → member.member_id — NOT NULL
- created_at (생성일) — not null
- modified_at (수정일) — not null
member (유저)
- member_id (유저 id) — not null — 기본 키 — NOT NULL
- nick_name (별명) — not null
- email (이메일) — not null
- password (비밀번호) — not null
- created_at (생성일) — not null
- modified_at (수정일) — not null
- birth (생년월일) — not null
- phone (전화번호) — not null
- is_deleted (탈퇴여부) — not null
news feed (뉴스피드)
- feed_id (게시물 id) — not null — 기본 키 — NOT NULL
- member_id (유저 id) — not null — 외래 키 → member.member_id — NOT NULL
- title (제목) — not null
- content (내용) — not null
- created_at (생성일) — not null
- modified_at (수정일) — not null
- heart_count (좋아요 수) — not null
- comment_count (댓글 수) — not null
- is_deleted (삭제여부) — not null
roles (권한)
- member_id (유저 id) — not null — 외래 키 → member.member_id — NOT NULL
- role (역할) — not null