daegu

Tables (5)

fare_policy

  • 요금 id (fare_id) — BIGINT — Primary key — NOT NULL
  • 최소 거리 (min_distance_km) — DECIMAL(5,2) — NOT NULL
  • 최대 거리 (max_distance_km) — DECIMAL(5,2) — NOT NULL
  • 기본 요금 (base_fare) — INT — NOT NULL

line

  • 노선 id (line_id) — BIGINT — Primary key — NOT NULL
  • 노선명 (line_name) — VARCHAR(20) — NOT NULL
  • 노선 색상 (line_color) — VARCHAR(10)

station

  • 역 id (station_id) — BIGINT — Primary key — NOT NULL
  • 노선 id (line_id) — BIGINT — Foreign key → line.노선 id — NOT NULL
  • 역 명 (station_name) — VARCHAR(50) — NOT NULL
  • 역 코드 (station_code) — VARCHAR(20)
  • 순번 (sequence) — INT — NOT NULL
  • 환승역 여부 (is_transfer) — BOOLEAN — NOT NULL

station_section

  • 구간 id (section_id) — BIGINT — Primary key — NOT NULL
  • 출발역 id (from_station_id) — BIGINT — Foreign key → station.역 id — NOT NULL
  • 도착역 id (to_station_id) — BIGINT — Foreign key → station.역 id — NOT NULL
  • 소요 시간 (duration_seconds) — INT — NOT NULL
  • 이동 거리 (distance_km) — DECIMAL(5,2) — NOT NULL

transfer_info

  • 환승 id (transfer_id) — BIGINT — Primary key — NOT NULL
  • 출발 환승역 id (from_station_id) — BIGINT — Foreign key → station.역 id — NOT NULL
  • 도착 환승역 id (to_station_id) — BIGINT — Foreign key → station.역 id — NOT NULL
  • 환승 소요 시간 (transfer_time_sec) — INT — NOT NULL