~ihabunek/triglav

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

  @primary_key false
  @schema_prefix :zet

  schema "stops" do
    field :id, :string, source: :stop_id, primary_key: true
    field :code, :string, source: :stop_code
    field :name, :string, source: :stop_name
    field :desc, :string, source: :stop_desc
    field :lat, :float, source: :stop_lat
    field :lon, :float, source: :stop_lon
    field :zone_id, :string
    field :url, :string, source: :stop_url
    field :location_type, :integer
    field :parent_station, :string
    field :geom, Geo.PostGIS.Geometry
  end
end