~ihabunek/triglav

ref: f66c43139d76b7a26925de4e29498ff1473c0950 triglav/lib/triglav/schemas/zet/feed_info.ex -rw-r--r-- 495 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
defmodule Triglav.Schemas.Zet.FeedInfo do
  use Ecto.Schema

  @primary_key false
  @schema_prefix :zet

  schema "feed_info" do
    field :publisher_name, :string, source: :feed_publisher_name, null: false
    field :publisher_url, :string, source: :feed_publisher_url, null: false
    field :lang, :string, source: :feed_lang
    field :start_date, :date, source: :feed_start_date
    field :end_date, :date, source: :feed_end_date
    field :version, :string, source: :feed_version
  end
end