board
Tables (4)
Comment (댓글)
- 댓글 ID (comment_id) — NOT NULL — Primary key — NOT NULL
- 게시글 ID (board_id) — NOT NULL — Foreign key → Post.게시글 ID — NOT NULL
- 유저ID (member_id) — NOT NULL — Foreign key → Post.유저ID — NOT NULL
- 내용 (content) — NOT NULL
- 생성일 (created_at) — NOT NULL
Likes (좋아요)
- 좋아요 ID (likes_id) — NOT NULL — Primary key — NOT NULL
- 게시글 ID (board_id) — NOT NULL — Foreign key → Post.게시글 ID — NOT NULL
- 유저ID (users_id) — NOT NULL — Foreign key → Post.유저ID — NOT NULL
Member (사용자)
- 유저ID (member_id) — NOT NULL — Primary key — NOT NULL
- 유저이름 (username) — NOT NULL
- 이메일 (email) — NOT NULL
- 비밀번호 (password) — NOT NULL
- 생성일 (created_at) — NOT NULL
Post (게시글)
- 게시글 ID (board_id) — NOT NULL — Primary key — NOT NULL
- 유저ID (member_id) — NOT NULL — Foreign key → Member.유저ID — NOT NULL
- 제목 (title) — NOT NULL
- 내용 (content) — NULLABLE
- 생성일 (created_at) — NOT NULL