Models can be related to one another with relations. These relations are used when something needs to be stored in a different model. For instance, when a customer needs to have multiple addresses a new model called address can be created. The models can call out to each other through a relation. Betty Blocks uses 3 different kinds of relations:
1. Has many
2. Belongs to
3. Has and belongs to many
More about these different kinds of relations can be found in this article: Relations Reference.
Relations can also be created via the model settings:
Every model relation is shown in both models. Example: If you’ve created a relation that one Customer holds multiple Invoices, you will now see Customer in the Invoice model and Invoices in the Customer model.