StrawHat.Map v2.0.0 StrawHat.Map.State View Source

A State entity.

Link to this section Summary

Link to this section Types

Link to this type

state_attrs() View Source
state_attrs() :: %{name: String.t(), code: String.t(), country_id: String.t()}

Link to this type

t() View Source
t() :: %StrawHat.Map.State{
  __meta__: term(),
  cities: Schema.has_many(StrawHat.Map.City.t()),
  code: String.t(),
  counties: Schema.has_many(StrawHat.Map.County.t()),
  country: Schema.belongs_to(State.t()),
  country_id: String.t(),
  id: String.t(),
  inserted_at: DateTime.t(),
  name: String.t(),
  updated_at: DateTime.t()
}

Link to this section Functions

Link to this function

changeset(state, state_attrs) View Source
changeset(t(), state_attrs()) :: Ecto.Changeset.t()