~ihabunek/triglav

ref: f66c43139d76b7a26925de4e29498ff1473c0950 triglav/lib/triglav/schemas/zet/trip.ex -rw-r--r-- 453 bytes
f66c4313Ivan Habunek Store sample trip ID in derived data, simplify schemas 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
defmodule Triglav.Schemas.Zet.Trip do
  use Ecto.Schema

  @primary_key false
  @schema_prefix :zet

  schema "trips" do
    field :id, :string, source: :trip_id, primary_key: true
    field :headsign, :string, source: :trip_headsign
    field :short_name, :string, source: :trip_short_name
    field :route_id, :string
    field :service_id, :string
    field :direction_id, :integer
    field :block_id, :string
    field :shape_id, :string
  end
end