bulletin-board
Tables (3)
Posts (게시판)
- id (post_id) — Primary key — NOT NULL
- title (제목)
- content (내용)
- 생성날짜 (created_at) — NOT NULL
- 아이디 (user_id) — Foreign key → User.아이디 — NOT NULL
User (사용자)
- 아이디 (user_id) — Primary key — NOT NULL
- 이름 (name)
- 비밀번호 (password)
- 역할 (role) — NOT NULL
comments (댓글)
- 댓글 아이디 (comment_id)
- 댓글 내용 (content)
- id (post_id) — Foreign key → Posts.id — NOT NULL
- 아이디 (user_id) — Foreign key → User.아이디 — NOT NULL