create table pid.ropid_departures_presets_routes (
    preset_id integer not null,
    stop_id varchar(50) not null,
    route_id varchar(50) not null,
    route_type smallint not null,
    route_short_name varchar(50) not null,
    created_at timestamptz not null,
    updated_at timestamptz not null,
    constraint ropid_departures_presets_routes_pk primary key (preset_id, stop_id, route_id)
);
create index ropid_departures_presets_routes_preset_id_idx on pid.ropid_departures_presets_routes (preset_id);
