One directed relationship between two registered resources, shaped like PostgREST's schema-cache relationships.
Columns are database column names, in constraint order. source_columns[i]
pairs with target_columns[i].
:m2o-sourceholds the foreign key:o2m-targetholds the foreign key:o2o- one-to-one in either direction (the foreign key columns are unique):m2m- throughjunction;source_columns/target_columnsare the key columns of the two resources,junction.source_columns/junction.target_columnsthe junction columns that reference them, andconstraintis the junction table name andjunction.modulethe registered resource of the junction table
assoc is the Ecto association (or explicit declaration) name on source, when
there is one.
Summary
Functions
Whether the target is one row per source row (:m2o, :o2o) rather than a set.
Types
@type kind() :: :m2o | :o2m | :o2o | :m2m