session_3
테이블 (4)
게시글 (post)
- post_id — string — 기본 키 — NOT NULL
- 생성날짜 (Date) — datetime
- 제목 (Title) — string
- 내용 (Contents) — text
- 조회수 (view_cnt) — integer
- user_id — string — 외래 키 → 사용자.user_id — NOT NULL
댓글 (Comment)
- comment_id — string — 기본 키 — NOT NULL
- 코멘트 (comment) — text
- 생성날짜 (Date) — datetime
- 닉네임 (nickname) — string
- user_id — string — 외래 키 → 사용자.user_id — NOT NULL
- post_id — string — 외래 키 → 게시글.post_id — NOT NULL
사용자 (User)
- user_id — string — 기본 키 — NOT NULL
- 이름 (name) — string
- 닉네임 (nickname) — string
- 이메일 (email) — string
좋아요 (Like)
- like_id — string — 기본 키 — NOT NULL
- like — integer
- user_id — string — 외래 키 → 사용자.user_id — NOT NULL
- comment_id — string — 외래 키 → 댓글.comment_id — NOT NULL
- post_id — string — 외래 키 → 게시글.post_id — NOT NULL