페이스북 기능 구현
테이블 (10)
게시글 (post)
- 게시글 번호 (post_id) — number — 기본 키 — NOT NULL
- 제목 (title) — varchar(50) — NOT NULL
- 게시글 내용 (content) — varchar(500) — NOT NULL
- 작성일 (created_date) — datetime — NOT NULL
- 리액션 수 (reaction_count) — int
- 댓글 수 (commnet_count) — int
- 공유 수 (shared_count) — int
게시글_공유 (post_share)
- 유저 아이디 (user_id) — number — 외래 키 → 유저.유저 아이디 — NOT NULL
- 게시글 번호 (post_id) — number — 외래 키 → 게시글.게시글 번호 — NOT NULL
- 공유일 (shared_date) — datetime — NOT NULL
게시글_수정 (post_edit)
- 유저 아이디 (user_id) — number — 외래 키 → 유저.유저 아이디 — NOT NULL
- 게시글 번호 (post_id) — number — 외래 키 → 게시글.게시글 번호 — NOT NULL
- 수정일 (edited_date) — datetime — NOT NULL
게시글_업로드 (post_upload)
- 유저 아이디 (user_id) — number — 외래 키 → 유저.유저 아이디 — NOT NULL
- 게시글 번호 (post_id) — number — 외래 키 → 게시글.게시글 번호 — NOT NULL
- 업로드 날짜 (uploaded_date) — datetime — NOT NULL
게시글_저장 (post_store)
- 게시글 번호 (post_id) — number — 외래 키 → 게시글.게시글 번호 — NOT NULL
- 유저 아이디 (user_id) — number — 외래 키 → 유저.유저 아이디 — NOT NULL
- 저장일 (stored_date) — datetime — NOT NULL
대댓글 (recomment)
- 대댓글 번호 (recomment_id) — number — 기본 키 — NOT NULL
- 댓글 번호 (comment_id2) — number — 외래 키 → 댓글.댓글 번호 — NOT NULL
- 게시글 번호 (post_id) — number — 외래 키 → 댓글.게시글 번호 — NOT NULL
- 유저 아이디 (user_id) — number — 외래 키 → 댓글.유저 아이디 — NOT NULL
- 대댓글 내용 (content) — varchar(300) — NOT NULL
- 작성일 (created_date) — datetime — NOT NULL
댓글 (comment)
- 댓글 번호 (comment_id) — number — 기본 키 — NOT NULL
- 게시글 번호 (post_id) — number — 외래 키 → 게시글.게시글 번호 — NOT NULL
- 유저 아이디 (user_id) — number — 외래 키 → 유저.유저 아이디 — NOT NULL
- 댓글 내용 (comment_content) — varchar(300) — NOT NULL
- 댓글 작성일 (comment_time) — datetime — NOT NULL
- 리액션 수 (reaction_count) — int
- 좋아요 수 (like_count) — int
- 유저 태그 (user_tag) — varchar(10)
알림 (notification)
- 알림 번호 (notification_id) — number — 기본 키 — NOT NULL
- 유저 아이디 (user_id) — number — 외래 키 → 유저.유저 아이디 — NOT NULL
- 유저 닉네임 (user_nickname) — varchar(30) — NOT NULL
- 알림 내용 (content) — varchar(100) — NOT NULL
유저 (user)
- 유저 아이디 (user_id) — number — 기본 키 — NOT NULL
- 유저 성 (user_surname) — varchar(10) — NOT NULL
- 유저 이름 (user_given name) — varchar(10) — NOT NULL
- 유저 비밀번호 (password) — varchar(30) — NOT NULL
- 이메일 주소 (email_address) — varchar(30) — NOT NULL
- 가입일 (created_date) — datetime — NOT NULL
- 프로필사진 (profile_image) — image
- 커버사진 (cover_image) — image
- 약력 (summary) — varchar(100)
- 거주지 (user_located) — list
- 출신지 (user_birth_located) — list
- 학력 (education) — list
팔로우 (follow)
- 팔로우 번호 (follow_id) — number — 기본 키 — NOT NULL
- 유저 아이디 (user_id) — number — 외래 키 → 유저.유저 아이디 — NOT NULL