Ecto.Associations.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 definedassoc
- The model that is associatedowner_key
- The key on theowner
model used for the associationassoc_key
- The key on theassoc
model used for the association