deer cooperation
Tables (4)
Areas (지역)
- id (지역 아이디) — Primary key — NOT NULL
- area_boundary (지역 표시 MySQL spatial data) — POLYGON
- area_center (지역의 중심점) — POINT
- area_coords (지역 경계 위도, 경도 리스트) — MultiPoint
- basic_fee (지역별 기본 요금) — Int
- fee_per_min (지역별 분당 요금) — Int
EKScooters (개별 스쿠터)
- name (킥보드 아이디) — Primary key — NOT NULL
- area (지역 아이디) — Foreign key → Areas.id — NOT NULL
Logs (이용내역)
- user (유저 아이디) — Foreign key → Users.id — NOT NULL
- id (킥보드 아이디) — Foreign key → EKScooters.name — NOT NULL
- use_end_lat (사용종료 경도) — Decimal
- use_end_lng (사용종료 위도) — Decimal
- use_start_at (사용 시작 시간) — Datetime
- use_end_at (사용 종료 시간) — Datetime
- fee (최종요금) — INT
- Field (사용중 여부) — Bool
Users (회원정보)
- id (Key) — Primary key — NOT NULL
- username (Field) — Char
- password (Field2) — Char