~ihabunek/triglav

ref: 86bd16c9a2b36e8198f3ba8708669c41ea6a20b1 triglav/lib/triglav/schemas/zet/stop.ex -rw-r--r-- 589 bytes
86bd16c9Ivan Habunek Add missing primary key column to Zet.Stop 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