Facebook_ERD
테이블 (15)
거주지 (residence)
- 거주지id (local_id) — NOTNULL — 기본 키 — NOT NULL
- 도 (do) — NOTNULL
- 시 (si) — NOTNULL
- 구 (gu) — NOTNULL
- 도로명 (roadname) — NOTNULL
글 (article)
- 글id (article_id) — NOTNULL — 기본 키 — NOT NULL
- 이메일 (email) — NOT NULL — 외래 키 → 유저.이메일 — NOT NULL
- 내용 (article) — NOTNULL
- 이미지 (image)
- 해시태그 (hashtag)
- 유저태그사용id (usertag_id) — 외래 키 → 유저태그.유저태그사용id — NOT NULL
- 작성시간 (time) — NOTNULL
- 리액션id (reaction_id) — 외래 키 → 리액션.리액션id — NOT NULL
글작성친구알림 (alert)
- 알람id (alert_id) — NOTNULL — 기본 키 — NOT NULL
- 글id (article_id) — NOTNULL — 외래 키 → 글.글id — NOT NULL
- 이메일 (email) — NOTNULL — 외래 키 → 글.이메일 — NOT NULL
대댓글 (recomment)
- 대댓글id (recomment_id) — NOTNULL — 기본 키 — NOT NULL
- 댓글id (comment_id2) — NOTNULL — 외래 키 → 댓글.댓글id — NOT NULL
- 글id (article_id) — NOTNULL — 외래 키 → 댓글.글id — NOT NULL
- 글쓴이이메일 (writeremail) — NOT NULL — 외래 키 → 댓글.글쓴이이메일 — NOT NULL
- 댓글메일 (commentwriteremail) — NOT NULL — 외래 키 → 댓글.댓글이메일 — NOT NULL
- 대댓글이메일 (recommentwriteremail) — NOT NULL — 외래 키 → 유저.이메일 — NOT NULL
- 대댓글내용 (recomment) — NOTNULL
- 유저태그사용id (usertag_id) — 외래 키 → 유저태그.유저태그사용id — NOT NULL
- 작성시간 (time) — NOTNULL
- 리액션id (reaction_id) — 외래 키 → 리액션.리액션id — NOT NULL
대댓글알림 (alertcomment)
- 알람id (alert_id) — NOTNULL — 기본 키 — NOT NULL
- 댓글id (comment_id2) — NOTNULL — 외래 키 → 대댓글.댓글id — NOT NULL
- 글id (article_id) — NOTNULL — 외래 키 → 대댓글.글id — NOT NULL
- 글쓴이이메일 (writeremail) — NOTNULL — 외래 키 → 대댓글.글쓴이이메일 — NOT NULL
- 댓글메일 (commentwriteremail) — NOTNULL — 외래 키 → 대댓글.댓글메일 — NOT NULL
댓글 (comment)
- 댓글id (comment_id) — NOTNULL — 기본 키 — NOT NULL
- 글id (article_id) — NOTNULL — 외래 키 → 글.글id — NOT NULL
- 글쓴이이메일 (writeremail) — NOT NULL — 외래 키 → 글.이메일 — NOT NULL
- 댓글이메일 (commentwriteremail) — NOT NULL — 외래 키 → 유저.이메일 — NOT NULL
- 댓글내용 (comment) — NOTNULL
- 유저태그사용id (usertag_id) — 외래 키 → 유저태그.유저태그사용id — NOT NULL
- 작성시간 (time) — NOTNULL
- 리액션id (reaction_id) — 외래 키 → 리액션.리액션id — NOT NULL
댓글알림 (alertwriter)
- 알람id (alert_id) — NOTNULL — 기본 키 — NOT NULL
- 글id (article_id) — NOTNULL — 외래 키 → 댓글.글id — NOT NULL
- 글쓴이이메일 (writeremail) — NOTNULL — 외래 키 → 댓글.글쓴이이메일 — NOT NULL
리액션 (reaction)
- 리액션id (reaction_id) — NOTNULL — 기본 키 — NOT NULL
- 리액션이메일 (reactionemail) — NOTNULL — 외래 키 → 유저.이메일 — NOT NULL
- 리액션내용 (reaction) — NOTNULL
유저 (users)
- 이메일 (email) — NOT NULL — 기본 키 — NOT NULL
- 성 (firstname)
- 이름 (name)
- 나이 (age)
- 성별 (gender)
- 전화번호 (phonenum)
- 직업 (job)
- 학력id (educational_id) — 외래 키 → 학력.학력id — NOT NULL
- 출신지id (hometown_id) — 외래 키 → 출신지.출신지id — NOT NULL
- 거주지id (local_id) — 외래 키 → 거주지.거주지id — NOT NULL
유저별메인홈 (userhome)
- 유저메인홈id (userhome_id) — NOTNULL — 기본 키 — NOT NULL
- 유저이메일 (email2) — NOT NULL — 외래 키 → 유저.이메일 — NOT NULL
- 글id (article_id) — 외래 키 → 글.글id — NOT NULL
- 글쓴이이메일 (writeremail) — 외래 키 → 글.이메일 — NOT NULL
유저태그 (usertag)
- 유저태그사용id (usertag_id) — NOTNULL — 기본 키 — NOT NULL
- 사용이메일스트링 (emailstring) — NOTNULL
유저태그알림 (alerttag)
- 알람id (alert_id) — NOTNULL — 기본 키 — NOT NULL
- 유저태그사용id (usertag_id) — NOTNULL — 외래 키 → 유저태그.유저태그사용id — NOT NULL
출신지 (hometown)
- 출신지id (hometown_id) — NOTNULL — 기본 키 — NOT NULL
- 도 (do) — NOTNULL
- 시 (si) — NOTNULL
- 구 (gu) — NOTNULL
- 도로명 (roadname) — NOTNULL
친구목록 (firend)
- 친구id (firend_id) — NOTNULL — 기본 키 — NOT NULL
- 내이메일 (myemail) — NOT NULL — 외래 키 → 유저.이메일 — NOT NULL
- 친구이메일 (firendemail) — 외래 키 → 유저.이메일 — NOT NULL
학력 (academic background)
- 학력id (educational_id) — NOTNULL — 기본 키 — NOT NULL
- 초중고대 (gradetype) — NOTNULL
- 학교이름 (schoolname) — NOTNULL