OJT
게시판 ERD
테이블 (3)
게시글 (Post)
- id — Int — 기본 키 — NOT NULL — @id
- 제목 (title) — String — NOT NULL
- 내용 (content) — String — NOT NULL
- 작성자 닉네임 (userName) — String — NOT NULL
- ip — String — NOT NULL
- 생성일시 (createdAt) — DateTime — NOT NULL
- 수정일시 (modifiedAt) — DateTime — @updatedAt
댓글 (Comment)
- id — Int — 기본 키 — NOT NULL — @id
- 게시글 id (postId) — Int — 외래 키 → 게시글.id — NOT NULL
- 댓글 id (commentId) — Int
- 내용 (content) — String — NOT NULL
- 작성자 닉네임 (userName) — String — NOT NULL
- ip — String — NOT NULL
- 생성일시 (createdAt) — DateTime — NOT NULL
- 수정일시 (modifiedAt) — DateTime — NOT NULL — @updatedAt
좋아요 (Like)
- id — Int — 기본 키 — NOT NULL — @id
- 게시글 id (postId) — Int — 외래 키 → 게시글.id — NOT NULL
- ip — String — NOT NULL