육무해자유게시판
테이블 (3)
Comment (댓글)
- comment_id (댓글아이디) — SERIAL — 기본 키
- post_id (글 아이디) — int — 외래 키 → Post.post_id
- user_id (유저아이디) — int — 외래 키 → User.user_id
- content (내용) — TEXT — NOT NULL
- created_at (작성일) — TIMESTAMP
Post (게시글)
- post_id (글 아이디) — int — 기본 키
- user_id (유저아이디) — int — 외래 키 → User.user_id
- title (제목) — VARCHAR(255) — NOT NULL
- content (내용) — TEXT — NOT NULL
- created_at (작성일) — TIMESTAMP
- updated_at (수정일) — TIMESTAMP
User (유저)
- user_id (유저아이디) — int — 기본 키
- user_name (유저이름) — VARCHAR(10)
- user_pw (유저비밀번호) — VARCHAR(10)