GIS
테이블 (5)
경로 (Route)
- 경로 번호 (route_id) — long — 기본 키 — NOT NULL
- 출발 주소 (origin_region_id) — long — 외래 키 → 지역.지역 번호 — NOT NULL
- 도착 주소 (destination_region_id) — long — 외래 키 → 지역.지역 번호 — NOT NULL
- 이동수단 (transport_mode) — ENUM — NOT NULL
- 데이터 생성 시간 (created_at) — timestamp
- 데이터 수정 시간 (updated_at) — timestamp
경로내역 (RouteHistory)
- 경로내역 번호 (route_history_id) — long — 기본 키 — NOT NULL
- 사용자번호 (user_id) — long — 외래 키 → 사용자.사용자번호 — NOT NULL
- 경로 번호 (route_id) — long — 외래 키 → 경로.경로 번호 — NOT NULL
- 소요시간 (time_taken) — int
- 소요거리 (distance) — int
- 요청시간 (requested_at) — timestamp
- 데이터 생성 시간 (created_at) — timestamp
- 데이터 수정 시간 (updated_at) — timestamp
사용자 (User)
- 사용자번호 (user_id) — long — 기본 키 — NOT NULL
- 아이디 (username) — string — NOT NULL
- 비밀번호 (password) — string — NOT NULL
- 닉네임 (nickname) — string
- 휴대폰 번호 (phone) — string
- 파일 이름 (img_name) — string
- 파일 경로 (img_path) — string
- 가입 시간 (requested_at) — timestamp
- 데이터 생성 시간 (created_at) — timestamp
- 데이터 수정 시간 (updated_at) — timestamp
스크랩 (Scrap)
- 스크랩번호 (scrap_id) — long — 기본 키 — NOT NULL
- 사용자번호 (user_id) — long — 외래 키 → 사용자.사용자번호 — NOT NULL
- 경로 번호 (route_id) — long — 외래 키 → 경로.경로 번호 — NOT NULL
- 데이터 생성 시간 (created_at) — timestamp
- 데이터 수정 시간 (updated_at) — timestamp
지역 (Region)
- 지역 번호 (Region_id) — long — 기본 키 — NOT NULL
- 지역 이름 (region_name) — String — NOT NULL
- 위도 (latitude) — double — NOT NULL
- 경도 (longitude) — double
- 지역 타입 (region_type) — ENUM
- 파일 이름 (img_name) — stirng
- 파일 경로 (img_path) — string
- 데이터 생성 시간 (created_at) — timestamp
- 데이터 수정 시간 (updated_at) — timestamp