Ecto v1.1.0 Ecto.Association.BelongsTo
The association struct for a belongs_to
association.
Its fields are:
cardinality
- The association cardinalityfield
- The name of the association field on the modelowner
- The model where the association was definedrelated
- The model that is associatedowner_key
- The key on theowner
model used for the associationrelated_key
- The key on therelated
model used for the associationqueryable
- The real query to use for querying associationdefaults
- Default fields used when building the association