~ihabunek/triglav

ref: 248d445efaf6ff9a19f9fc8c8ed4359a87aeb85b triglav/lib/triglav/schemas/osmosis/replication_changes.ex -rw-r--r-- 1.2 KiB
248d445eIvan Habunek Data status page 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
defmodule Triglav.Schemas.Osmosis.ReplicationChanges do
  use Ecto.Schema

  @schema_prefix :osmosis

  @type t() :: %__MODULE__{
          __meta__: Ecto.Schema.Metadata.t(),
          tstamp: DateTime.t(),
          nodes_modified: integer(),
          nodes_added: integer(),
          nodes_deleted: integer(),
          ways_modified: integer(),
          ways_added: integer(),
          ways_deleted: integer(),
          relations_modified: integer(),
          relations_added: integer(),
          relations_deleted: integer(),
          changesets_applied: [integer()],
          earliest_timestamp: DateTime.t(),
          latest_timestamp: DateTime.t()
        }

  schema "replication_changes" do
    field :tstamp, :utc_datetime
    field :nodes_modified, :integer
    field :nodes_added, :integer
    field :nodes_deleted, :integer
    field :ways_modified, :integer
    field :ways_added, :integer
    field :ways_deleted, :integer
    field :relations_modified, :integer
    field :relations_added, :integer
    field :relations_deleted, :integer
    field :changesets_applied, {:array, :integer}
    field :earliest_timestamp, :utc_datetime
    field :latest_timestamp, :utc_datetime
  end
end