first_hw
Tables (5)
Bookmark (북마크)
- bookmark_id (북마크 아이디) — Primary key — NOT NULL
- user_id (유저 아이디) — Foreign key → User.user_id — NOT NULL
- post_id (게시글 아이디) — Foreign key → post.post_id — NOT NULL
User (사용자)
- user_id (유저 아이디) — Primary key — NOT NULL
- user_name (이름)
- email (이메일)
- password (비밀번호)
comment (댓글)
- comment_id (댓글 아이디) — Primary key — NOT NULL
- post_id (게시글 아이디) — Foreign key → post.post_id — NOT NULL
- user_id (유저 아이디) — Foreign key → User.user_id — NOT NULL
- contents (댓글 내용)
post (게시글)
- post_id (게시글 아이디) — Primary key — NOT NULL
- user_id (유저 아이디) — Foreign key → User.user_id — NOT NULL
- title (제목)
- contents (내용)
reply (답글)
- reply_id (답글 아이디) — Primary key — NOT NULL
- comment_id (댓글 아이디) — Foreign key → comment.comment_id — NOT NULL
- user_id (유저 아이디) — Foreign key → User.user_id — NOT NULL
- post_id (게시글 아이디) — Foreign key → post.post_id — NOT NULL
- contents (답글 내용)