카카오 사전과제 erd
테이블 (5)
동선 및 방역 (Move_resp)
- 확진id (conf_id) — int — 외래 키 → 확진이력.확진id — NOT NULL
- 업체id (comp_id) — int — 외래 키 → 업체.업체id — NOT NULL
- 방문일시 (visit_date) — datetime — NOT NULL
- 방역일시 (resp_date) — datetime
사용자 (User)
- 사용자id (user_id) — int — 기본 키 — NOT NULL
- 위치정보수집동의여부 (user_agree) — boolean — NOT NULL
- 위도 (user_lat) — decimal(18,10) — NOT NULL
- 경도 (user_lon) — decimal(18,10) — NOT NULL
업체 (Company)
- 업체id (comp_id) — int — 기본 키 — NOT NULL
- 업체명 (comp_name) — varchar(50) — NOT NULL
- 위도 (comp_lat) — decimal(18,10) — NOT NULL
- 경도 (comp_lon) — decimal(18,10) — NOT NULL
- 주소 (comp_addr) — varchar(100) — NOT NULL
질병 (Disease)
- 질병코드 (dise_id) — int — 기본 키 — NOT NULL
- 질병명 (dise_name) — varchar(20) — NOT NULL
- 질병증상 (dise_symt) — text — NOT NULL
확진이력 (Confirm_History)
- 확진id (conf_id) — int — 기본 키 — NOT NULL — auto_increment
- 확진일자 (conf_date) — date — NOT NULL
- 격리해제일 (conf_end_date) — date — NOT NULL
- 질병코드 (dise_id) — int — 외래 키 → 질병.질병코드 — NOT NULL