~ihabunek/triglav

ref: 26f2c3b921aea5c0e33d1f7c4320e9e6ceb08ea0 triglav/lib/triglav/schemas/osm_state.ex -rw-r--r-- 311 bytes
26f2c3b9Ivan Habunek Calculate and store derived data for public transport 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
defmodule Triglav.Schemas.OsmState do
  use Ecto.Schema
  import Ecto.Changeset

  schema "osm_state" do
    field :sequence_number, :integer
    field :timestamp, :utc_datetime
    timestamps()
  end

  def changeset(row, params \\ %{}) do
    row
    |> cast(params, [:sequence_number, :timestamp])
  end
end