NewsfeedProjectERD
Tables (6)
Comment (COMMENT_TABLE)
- 댓글 고유번호 (id) — Not null, auto increment, primary_key — Primary key — NOT NULL
- 사용자 고유 번호 (member_id) — Not null, auto increment — Foreign key → Member.사용자 고유 번호 — NOT NULL
- 뉴스피드 고유 번호 (feed_id) — Not null, auto increment — Foreign key → Newsfeed.뉴스피드 고유 번호 — NOT NULL
- 댓글 내용 (contents) — NOT NULL
- 작성일 (created_at) — NOT NULL
- 수정일 (updated_at) — NOT NULL
Comment_like (COMMENT_LIKE_TABLE)
- 좋아요 고유번호 (id) — Not null, auto increment, primary_key — Primary key — NOT NULL
- 댓글 고유번호 (comment_id) — Not null, auto increment — Foreign key → Comment.댓글 고유번호 — NOT NULL
- 사용자 고유 번호 (member_id) — Not null, auto increment — Foreign key → Member.사용자 고유 번호 — NOT NULL
Friend (FRIEND_TABLE)
- 팔로우 고유번호 (id) — Not null, auto increment, primary_key — Primary key — NOT NULL
- 사용자 고유 번호 (member_id) — Not null, auto increment — Foreign key → Member.사용자 고유 번호 — NOT NULL
- 친구 아이디 (friend_id) — Not null, auto increment — NOT NULL
- 승인여부 (friend_approval) — TRUE, FALSE
Member (MEMBER_TABLE)
- 사용자 고유 번호 (id) — Not null, auto increment, primary_key — Primary key — NOT NULL
- 사용자 이메일 (email) — NOT NULL
- 사용자 비밀번호 (password) — NOT NULL
- 사용자 휴대폰 번호 (phone_number) — NOT NULL
- 사용자 주소 (address) — NOT NULL
- 사용자 나이 (age) — NOT NULL
- 사용자 삭제 (deleted_at) — NULL
- 사용자 생성 (created_at) — NOT NULL
- 사용자 수정 (updated_at) — NOT NULL
- 이미지 (image) — NOT NULL
- 사용자 이름 (name) — NOT NULL
Newsfeed (NEWSFEED_TABLE)
- 뉴스피드 고유 번호 (id) — Not null, auto increment, primary_key — Primary key — NOT NULL
- 사용자 고유 번호 (member_id) — Not null, auto increment, — Foreign key → Member.사용자 고유 번호 — NOT NULL
- 이미지 (feed_image) — NOT NULL
- 제목 (title) — NOT NULL
- 내용 (contents) — NOT NULL
- 작성일 (created_at) — NOT NULL — NOT NULL
- 수정일 (updated_at) — NOT NULL
- Field (like_count)
Newsfeed_Like (NEWSFEED_LIKE_TABLE)
- 뉴스피드 좋아요 고유번호 (id) — Not null, auto increment, primary_key — Primary key — NOT NULL
- 뉴스피드 고유 번호 (feed_id) — Not null, auto increment — Foreign key → Newsfeed.뉴스피드 고유 번호 — NOT NULL
- 사용자 고유 번호 (member_id) — Not null, auto increment — Foreign key → Member.사용자 고유 번호 — NOT NULL