CoderRing.Code (CoderRing v0.2.3) View Source
Schema for a code, pending use.
Link to this section Summary
Types
:id
- Unique integer ID for the code.:name
- Name of the code type.:position
- Primary key and auto-incrementing integer.:value
- A pre-generated code.
Link to this section Types
Specs
t() :: %CoderRing.Code{ __meta__: term(), id: non_neg_integer(), name: String.t(), position: non_neg_integer(), value: String.t() }
:id
- Unique integer ID for the code.:name
- Name of the code type.:position
- Primary key and auto-incrementing integer.:value
- A pre-generated code.
Link to this section Functions
Specs
changeset(t() | Ecto.Changeset.t(), map()) :: Ecto.Changeset.t()
Changeset for creating a new code.
Specs
update_changeset(t() | Ecto.Changeset.t(), map()) :: Ecto.Changeset.t()
Changeset for updating an existing code.