use serde::{Deserialize, Serialize}; use sqlx::types::Json as SqlxJson; #[derive(Debug, Deserialize)] pub struct ListSchedulesQuery { pub route_id: Option, pub stop_id: Option, pub stop_code: Option, } #[derive(Debug, Serialize, sqlx::FromRow)] pub struct ScheduleRow { pub id: i32, pub route_id: String, pub station_id: i32, pub station_code: String, pub station_name_th: String, pub direction_note: Option, pub departure_times: Vec, pub variants: SqlxJson, pub schedule_note: Option, }