board
테이블 (4)
Comment
- 댓글 ID (comment_id) — int — 기본 키 — NOT NULL
- 게시물Id (post_id) — int — 외래 키 → Post.게시물Id — NOT NULL
- 내용 (content) — varchar(5000)
- 작성자ID (user_id) — char(20)
- 생성시간 (created_at) — DateTime
Post
- 게시물Id (post_id) — int — 기본 키 — NOT NULL
- 유저ID (user_id) — char(20) — 외래 키 → User.유저ID — NOT NULL
- 제목 (title) — char(100)
- 내용 (content) — varchar(5000)
- 첨부파일 경로 (attached) — char(100)
- 생성시간 (created_at) — DateTime
- 수정자 (corrected_id) — char(20)
- 수정시간 (corrected_at) — DateTime
- 삭제대기 (deprecated) — int
User
- 유저ID (user_id) — char(20) — 기본 키 — NOT NULL
- 유저명 (name) — char(10)
- 비밀번호 (password) — char(20)
- 생성시간 (created_at) — DateTime
좋아요 (Like)
- 유저ID (user_id) — char(20) — 외래 키 → User.유저ID — NOT NULL
- 게시물Id (post_id) — int — 외래 키 → Post.게시물Id — NOT NULL