kh 미니프로젝트
테이블 (5)
게시글 (post)
- 게시글id (id) — Long — 기본 키 — NOT NULL
- 게시글제목 (post_title) — varchar(255)
- 게시글본문 (post_content) — TEXT
- 게시글작성날짜 (create_at) — timestamp
- 유저id (user_id) — Long — 외래 키 → 유저.사용자id — NOT NULL
- 댓글id (comment_id) — Long — 외래 키 → 댓글.댓글id — NOT NULL
게시글좋아요 (post_like)
- 좋아요 (id) — Long — 기본 키 — NOT NULL
- 게시글id (post_id) — Long — 외래 키 → 게시글.게시글id — NOT NULL
- 사용자id (user_id) — Long — 외래 키 → 유저.사용자id — NOT NULL
댓글 (comment)
- 댓글id (id) — Long — 기본 키 — NOT NULL
- 댓글본문 (content) — varchar(255)
- 댓글작성날짜 (create_at) — timestamp
- 대댓글id (parent_comment_id) — Long — 외래 키 → 댓글.댓글id — NOT NULL
- 게시글id (post_id) — Long — 외래 키 → 게시글.게시글id — NOT NULL
- 사용자id (user_id) — Long — 외래 키 → 유저.사용자id — NOT NULL
유저 (user)
- 사용자id (id) — Long — 기본 키 — NOT NULL
- 유저아이디 (user_account) — varchar(50)
- 유저비밀번호 (user_pass) — varchar(255)
- 유저닉네임 (user_nick) — varchar(50)
- 유저프로필 (user_profile) — varchar(255)
- 유저상태메세지 (user_about) — varchar(255)
- 게시글id (post_id) — Long — 외래 키 → 게시글.게시글id — NOT NULL
팔로우관계 (follow)
- 팔로우id (id) — Long — 기본 키 — NOT NULL
- 팔로우한사용자id (follower_user_id) — Long — 외래 키 → 유저.사용자id — NOT NULL
- 팔로우당한사용자id (followed_user_id) — Long — 외래 키 → 유저.사용자id — NOT NULL