study_project
테이블 (7)
emoji (Untitled3)
- 이모티콘 아이디 (emoji_id) — int — 기본 키
- 글 아이디 (post_id) — int — 외래 키 → 글.글 아이디 — NOT NULL
- 유저 아이디 (user_id) — int — 외래 키 → 유저.유저 아이디 — NOT NULL
- 이모티콘 타입 (emoji_type) — NOT NULL
권한 종류 (authority_type)
- 관리자 (manager)
- 회원 (member)
- 비회원 (non-member)
글 (post)
- 글 아이디 (post_id) — int — 기본 키 — NOT NULL
- 유저 아이디 (user_id) — int — 외래 키 → 유저.유저 아이디 — NOT NULL
- 작성일 (post_date) — date — NOT NULL
- 제목 (title) — varchar — NOT NULL
- 본문 (content) — varchar
- 사진 (post_photo)
댓글 (comment')
- 댓글 아이디 (comment_id) — int — 기본 키 — NOT NULL
- 유저 아이디 (user_id) — int — 외래 키 → 유저.유저 아이디 — NOT NULL
- 글 아이디 (post_id) — int — 외래 키 → 글.글 아이디 — NOT NULL
- 작성일 (comment_date) — date — NOT NULL
- 댓글내용 (comment_content) — varchar — NOT NULL
로그인 (login)
- 소셜 아이디 (social_id) — int — 기본 키 — NOT NULL
- 로컬 아이디 (local_id) — int — 기본 키 — NOT NULL
- 유저 아이디 (user_id) — int — 외래 키 → 유저.유저 아이디 — NOT NULL
유저 (User)
- 유저 아이디 (user_id) — int — 기본 키 — NOT NULL
- 이름 (name) — varchar — NOT NULL
- 가입일 (join_date) — varchar — NOT NULL
- 이메일 (email) — varchar — NOT NULL
- 권한 종류 (authority_type) — varchar — NOT NULL
팔로우 (follow)
- 팔로우 아이디 (follow_id) — int — 기본 키 — NOT NULL
- 팔로워 아이디 (follwer_id) — int — 외래 키 → 유저.유저 아이디 — NOT NULL
- 팔로잉 아이디 (following_id) — int — 외래 키 → 유저.유저 아이디 — NOT NULL