hw3-2
Tables (3)
Post
- PK (post_id) — Long — Primary key — NOT NULL
- Field2 (user) — User
- 제목 (title) — VARCHAR
- 내용 (content) — VARCHAR
- 댓글 수 (commentNumber) — int
- 생성 시간 (createdAt) — LocalDateTime
- PK (user_id) — Long — Foreign key → User.PK — NOT NULL
User
- PK (user_id) — Long — Primary key — NOT NULL
- 이름 (username) — VARCHAR
- 비밀번호 (password) — VARCHAR
comment
- PK (comment_id) — Long — Primary key — NOT NULL
- Field (post) — Post
- 내용 (text) — String
- PK (post_id) — Long — Foreign key → Post.PK — NOT NULL