ERD연습
테이블 (9)
Author (저자)
- 저자아이디 (id) — int — 기본 키 — NOT NULL — Auto_increment
- 이름 (name) — varchar
- 자기소개 (profile) — varchar
- 가입일 (created) — datetime — NOT NULL
Copy Of article (CopyOf기사)
- key (id) — int — 기본 키 — NOT NULL
- 기사제목 (title) — string
- 기사요약 (description) — String
- 원본링크 (articleUrl) — String
- 개시날짜 (pubDate) — DateTime
- 토픽 (topic) — String
User (유저)
- Key (id) — int — 기본 키 — NOT NULL
- 이메일 (email)
article (기사)
- key (id) — int — 기본 키 — NOT NULL
- 기사제목 (title) — string
- 기사요약 (description) — String
- 원본링크 (articleUrl) — String
- 개시날짜 (pubDate) — DateTime
- 토픽 (topic) — String
comment (댓글)
- 댓글 아이디 (id) — int — 기본 키 — NOT NULL
- 글 아이디 (id2) — int — 외래 키 → topic.글 아이디 — NOT NULL
- 저자아이디 (id3) — int — 외래 키 → Author.저자아이디 — NOT NULL — Auto_increment
- 본문 (description) — text
- 생성일 (created) — datetime
domant (휴면자)
- 저자아이디 (id) — int — 외래 키 → Author.저자아이디 — NOT NULL — Auto_increment
- 생성일 (created) — datetime
preference (선호도)
- Key (id) — int — 기본 키 — NOT NULL
- Key (user_id) — int — 외래 키 → User.Key — NOT NULL
- key (article_id) — int — 외래 키 → article.key — NOT NULL
- preferenceType (선호타입) — enum — like / pass
topic (주제)
- 글 아이디 (id) — int — 기본 키 — NOT NULL
- 제목 (title) — varchar
- 본문 (description) — text
- 생성일 (created) — datetime
작성 (write)
- 저자아이디 (id) — int — 외래 키 → Author.저자아이디 — NOT NULL — Auto_increment
- 글 아이디 (id2) — int — 외래 키 → topic.글 아이디 — NOT NULL