NodeJS-Week2
Tables (4)
comments
- 게시글id (post_id) — NOT NULL — Foreign key → posts.게시글id
- 유저id (user_id) — NOT NULL — Foreign key → users.유저id
- 댓글id (comment_id) — NOT NULL
- 댓글 (content) — NOT NULL
- 작성일 (created_at) — NOT NULL
- 수정일 (updated_at)
- 삭제일 (deleted_at)
likes
- 게시글id (post_id) — NOT NULL — Foreign key → posts.게시글id
- 유저id (user_id) — NOT NULL — Foreign key → users.유저id
posts
- 게시글id (post_id) — NOT NULL — Primary key
- 작성자id (user_id) — NOT NULL — Foreign key → users.유저id
- 게시글 (content) — NOT NULL
- 이미지 (image_url) — NOT NULL
- 작성일 (created_at) — NOT NULL
- 수정일 (updated_at)
- 삭제일 (deleted_at)
users
- 유저id (user_id) — NOT NULL — Primary key
- 이메일 (email) — NOT NULL
- 닉네임 (nickname) — NOT NULL
- 비밀번호 (password) — NOT NULL
- 권한 (role) — NOT NULL