erd
테이블 (4)
게시글 (post)
- 게시판 번호 (post_id) — bigint — 기본 키 — NOT NULL
- 제목 (title) — vharchar(255)
- 내용 (content) — varchar(65535)
- 생성일 (created_at) — datetime
- 수정일 (modified_at) — datetime
- 조회수 (hits) — int
댓글 (comment)
- 댓글id (comment_id) — bigint — 기본 키 — NOT NULL
- 게시판 번호 (post_id) — bigint — 외래 키 → 게시글.게시판 번호 — NOT NULL
- 사용자아이디 (user_id) — varchar(255) — 외래 키 → 사용자.사용자아이디 — NOT NULL
- 댓글내용 (comment_content) — varchar(2000)
- 생성일시 (created_date) — datetime
- 수정일시 (modified_date) — datetime
- 별점 (star_cnt) — int
사용자 (user)
- 사용자아이디 (user_id) — varchar(255) — 기본 키 — NOT NULL
- 닉네임 (nickname) — varchar(255)
이미지 (upload_image)
- 이미지 번호 (image_id) — bigint — 기본 키 — NOT NULL
- 게시판 번호 (board_id) — bigint — 외래 키 → 게시글.게시판 번호 — NOT NULL
- 댓글id (comment_id) — bigint — 외래 키 → 댓글.댓글id — NOT NULL
- 파일이름 (file_name) — varchar(255)
- 파일경로 (file_path) — varchar(255)
- 이미지 (image_data) — BLOB