Node_project2
Tables (3)
Articles (게시글)
- 게시글아이디 (articleId) — Long — Primary key — NOT NULL
- 유저아이디 (userId) — Long — Foreign key → Users.유저아이디 — NOT NULL
- 제목 (title) — String
- 컨텐츠 (content) — String
- 작성일자 (createdAt) — Datetime
- 수정일자 (updatedAt) — Datetime
Comments (댓글)
- 댓글아이디 (commentId) — Long — Primary key — NOT NULL
- 게시글아이디 (articleId) — Long — Foreign key → Articles.게시글아이디 — NOT NULL
- 유저아이디 (userId) — Long — Foreign key → Articles.유저아이디 — NOT NULL
- 댓글 (comment) — String
- 작성일자 (createdAt) — Datetime
- 수정일자 (updateAt) — Datetime
Users (유저)
- 유저아이디 (userId) — Long — Primary key — NOT NULL
- 닉네임 (nickname) — String
- 비밀번호 (password) — Encoded
- 가입일자 (createdAt)