~ihabunek/triglav

ref: b3486b734cd9f0a7d951408e2bca028b5a40afa2 triglav/lib/triglav/schemas/zet/stop.ex -rw-r--r-- 570 bytes
b3486b73Ivan Habunek Add Router.route_all 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
    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