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