db_practice
테이블 (5)
글 (topic)
- 글 아이디 (id) — int — 기본 키 — NOT NULL
- 제목 (title) — varchar(15)
- 본문 (description) — text
- 저자 작성일 (created) — datetime
댓글 (comment)
- 댓글 아이디 (id) — int — 기본 키 — NOT NULL
- 저자 아이디 (author_id) — int — 외래 키 → 저자.저자 아이디 — NOT NULL
- 글 아이디 (topic_id) — int — 외래 키 → 글.글 아이디 — NOT NULL
- 본문 (description) — text
- 작성일 (created) — datetime
쓰기 (write)
- 저자 아이디 (author_id) — int — 외래 키 → 저자.저자 아이디 — NOT NULL
- 글 아이디 (topic_id) — int — 외래 키 → 글.글 아이디 — NOT NULL
- 작성일 (created) — datetime
저자 (author)
- 저자 아이디 (id) — int — 기본 키 — NOT NULL
- 이름 (name) — varchar(15)
- 자기소개 (profile) — varchar(100)
- 가입일 (created) — datetime
휴면자 (dorment)
- 휴면자 아이디 (author_id) — int — 외래 키 → 저자.저자 아이디 — NOT NULL
- 휴면일 (created) — datetime