StrawHat.Map v0.3.0 StrawHat.Map.Schema.Place View Source

Represents a Place Ecto Schema with functionality about the data validation for Place.

Link to this section Summary

Types

Check t/0 type for more information about the keys

t()

Link to this section Types

Link to this type place_attrs() View Source
place_attrs() :: %{name: String.t(), owner_id: String.t(), place_id: String.t()}

Check t/0 type for more information about the keys.

Link to this type t() View Source
t() :: %StrawHat.Map.Schema.Place{
  __meta__: term(),
  id: term(),
  location: term(),
  location_id: term(),
  name: String.t(),
  owner_id: term(),
  place: State.t() | Ecto.Association.NotLoaded.t(),
  place_id: String.t()
}

Link to this section Functions

Link to this function changeset(place, place_attrs) View Source
changeset(t(), place_attrs()) :: Ecto.Changeset.t()
Link to this function create_changeset(place, place_attrs) View Source
create_changeset(t(), place_attrs()) :: Ecto.Changeset.t()
Link to this function update_changeset(place, place_attrs) View Source
update_changeset(t(), place_attrs()) :: Ecto.Changeset.t()