Auxx.ai
Custom Entities

Relationship fields

Link records across entities with relationship fields — belongs-to, has-one, has-many, and many-to-many cardinalities.

Relationship fields link records from one entity to another. For example, a "Product" entity can have a relationship to a "Supplier" entity, connecting each product to its supplier.

Relationship types

Four cardinality types are available:

TypeDescriptionExample
Belongs toMany-to-one — this record points to one target recordMany Products belong to one Category
Has oneOne-to-one — this record has exactly one related recordEach Product has one Warranty
Has manyOne-to-many — this record links to many target recordsOne Category has many Products
Many to manyBoth sides can have multiple related recordsProducts have many Tags, Tags have many Products

Automatic inverse fields

When you create a relationship field, Auxx.ai automatically creates the inverse field on the related entity. You don't need to set up both sides manually.

For example, if you add a "Supplier" field (has one) to the Product entity:

  • Product gets a Supplier field (has one → Supplier)
  • Supplier automatically gets a Products field (has many → Product)

Both fields are fully functional — you can navigate the relationship from either direction.

Self-referential relationships

An entity can relate to itself. This is useful for hierarchies like "Manager" or "Parent Category".

Self-referential relationships have additional constraint settings:

ConstraintDescription
Prevent circular referencesStops A → B → A chains from forming
Max depthLimits how deep the hierarchy can go
On deleteWhat happens to children when a parent is deleted: prevent (block deletion), cascade (delete children too), or nullify (clear the reference)

Uniqueness

Only has one relationships can be marked as unique, ensuring a one-to-one link where no two records share the same related record.

Where relationships appear

Relationship values are displayed throughout the app:

  • Record tables — related record's display name shown in the column
  • Record detail views — clickable links to related records
  • Filters — filter records by their related records
  • Record pickers — search and select related records when editing

Create a relationship field

  1. Open an entity in Settings > Custom Entities & Fields
  2. Click Add Field and choose Relationship
  3. Select the target entity — the entity this field will link to
  4. Choose the relationship type (belongs to, has one, has many, or many to many)
  5. Optionally configure constraints for self-referential relationships
  6. Click Save

Create Field dialog with Relationship type selected, showing target entity, cardinality dropdown, and inverse field name inputs

The cardinality dropdown shows all four relationship types:

Relationship type dropdown expanded showing Belongs To, Has One, Has Many, and Many To Many options

The inverse field is created automatically on the target entity.

Next steps