Facebook_ERD
테이블 (15)
User (user)
- 유저 아이디 (Key) — NOT NULL — 기본 키 — NOT NULL
- 이름 (name) — NOT NULL
- 이메일 (email) — NOT NULL
- 학력 (education)
- 출신지 (orgin)
- 거주지 (region)
- 직장 (office)
- 생년월일 (birth) — Not NULL
- 연락처 (contact)
- 가족 (family)
comment
- 댓글 (comment_num) — NOT NULL — 기본 키 — NOT NULL
- content (comment_content) — NOT NULL
- 좋아요 (comment_thumbsup) — NOTNULL
- recomment
- recommentnum (recomment_num) — NOTNULL
- Field
- 게시글 (post_num) — NOT NULL — 외래 키 → post.게시글 — NOT NULL
post
- 게시글 (post_num) — NOT NULL — 기본 키 — NOT NULL
- 내용 (post_content) — NOT NULL
- 날짜 (upadate_date) — NOT NULL
- 좋아요 (thumbsup) — NOT NULL
post 공유 (sharing)
- 게시글 (post_num) — NOT NULL — 외래 키 → post.게시글 — NOT NULL
- 유저 아이디 (Key) — NOT NULL — 외래 키 → User.유저 아이디 — NOT NULL
post 리액션 (reaction)
- 게시글 (post_num) — NOT NULL — 외래 키 → post.게시글 — NOT NULL
- 유저 아이디 (Key) — NOT NULL — 외래 키 → User.유저 아이디 — NOT NULL
post 수정 (correction)
- 게시글 (post_num) — NOT NULL — 외래 키 → post.게시글 — NOT NULL
- 유저 아이디 (Key) — NOT NULL — 외래 키 → User.유저 아이디 — NOT NULL
post 저장 (save)
- 게시글 (post_num) — NOT NULL — 외래 키 → post.게시글 — NOT NULL
- 유저 아이디 (Key) — NOT NULL — 외래 키 → User.유저 아이디 — NOT NULL
post 태그 (tag)
- 게시글 (post_num) — NOT NULL — 외래 키 → post.게시글 — NOT NULL
- hashtag
- user tag (user_tag)
- 유저 아이디 (Key) — NOT NULL — 외래 키 → User.유저 아이디 — NOT NULL
post업로드 (upload)
- 게시글 (post_num) — NOT NULL — 외래 키 → post.게시글 — NOT NULL
- 유저 아이디 (Key) — NOT NULL — 외래 키 → User.유저 아이디 — NOT NULL
user tag
- 댓글 (comment_num) — NOT NULL — 외래 키 → comment.댓글 — NOT NULL
- 유저 아이디 (Key) — NOT NULL — 외래 키 → User.유저 아이디 — NOT NULL
대댓글 (recomment)
- 대댓글 (recomment_num) — NOTNULL — 기본 키 — NOT NULL
- 댓글 (comment_num) — NOT NULL — 외래 키 → comment.댓글 — NOT NULL
- 내용 (content) — NOT NULL
- 유저 아이디 (Key) — NOT NULL — 외래 키 → User.유저 아이디 — NOT NULL
댓글 reaction (comment_reaction)
- 댓글 (comment_num) — NOT NULL — 외래 키 → comment.댓글 — NOT NULL
- 리액션 종류 (reacton_type)
알림 (notice)
- 알림 (notice_num) — NOTNULL — 기본 키 — NOT NULL
- event (event_num) — NOTNULL — 외래 키 → 이벤트.event — NOT NULL
- 유저 아이디 (Key) — NOT NULL — 외래 키 → User.유저 아이디 — NOT NULL
이벤트 (event)
- event (event_num) — NOTNULL — 기본 키 — NOT NULL
- 이벤트내용 (event_content)
팔로우 (follow)
- 팔로잉 아이디 (following_id) — Not NULL — 기본 키 — NOT NULL
- 팔로워 아이디 (follower_id) — Not NULL — 기본 키 — NOT NULL
- 팔로우 아이디 (follow_id) — Not NULL — 기본 키 — NOT NULL — tr
- 유저 아이디 (Key) — NOT NULL — 외래 키 → User.유저 아이디 — NOT NULL