Create Relationships and Domains

Use relationships and domains to define how data is connected and standardized across your model. Relationships define how entities or tables are related to one another. Domains standardize definitions for reused attributes or columns. Creating both helps enforce business rules and maintain consistency across the model.

Scenario: Connecting and Standardizing Lead‑to‑Cash Data

In this walkthrough, you start with a model that already contains the Customer, Order, and Invoice entities. You create relationships to show how these entities are connected, and then create a domain to standardize the CustomerId attribute across the model.

By the end of this walkthrough, you will have:

  • Created relationships between Customer and Order, and between Order and Invoice

  • Created a reusable CustomerId domain

  • Applied the domain to relevant attributes

  • Reviewed the model to confirm that the structure and definitions are consistent

Create Relationships

You can create relationships in Diagram View or from Model Explorer. Both methods produce the same result.

Create Relationships from the Toolbar

Use this method to create relationships directly in Diagram View.

  1. Open your data model.

    The model opens in Diagram View.

    Diagram View showing entities displayed on the modeling canvas.

  2. On the toolbar, select Add Relationship Icon.

    A list of relationship types appears.

  3. Select the relationship type that you want to create. For example, Identifying.

  4. Select the parent entity (Customer), and then drag to the child entity (Order).

    The relationship is created between Customer and Order and appears as a connecting line in the diagram.

    Identifying relationship between customer and order

  5. Select the relationship line to view or update its properties in the Properties pane.

  6. Repeat the same steps to create the relationship between Order and Invoice.

The relationships are now visible in Diagram View, where you can review their connections and properties.

Create Relationships from Model Explorer

Use this method to create relationships from Model Explorer.

  1. In the Model Explorer, select Relationships.

  2. Select next to the Relationships, and then select Create New.

    The New Relationship dialog box appears.

    Dialog box titled "New Relationship" with fields for Parent, Child, and Relationship Type (set to Identifying), and Cancel and Confirm buttons.

  3. In the Parent list, select Customer.

  4. In the Child list, select Order.

  5. In the Relationship Type list, select the appropriate type.

  6. Select Confirm.

    The new relationship (R/10) appears under Relationships in Model Explorer.

    Model Explorer panel displaying relationship objects, with the R/10 relationship highlighted in the list alongside other relationships.

  7. Repeat these steps to create the relationship between Order and Invoice.

To display the relationship in the diagram:

  • Select next to the R/10 relationship.

  • Select Add to Diagram.

The relationship is now visible in Diagram View.

ER diagram showing a relationship line highlighted between entities, created from the Model Explorer and added to the diagram using the "Add to Diagram" option.

Create Domains

After you create relationships, define shared attributes consistently across the model.

For example:

  • CustomerId might appear in the Customer entity.

  • The same identifier might also be used in Order or other related entities.

Instead of defining the attribute separately in each entity, create a domain and apply it wherever the attribute is reused.

Domains define reusable rules for attributes, such as data type, length, and naming standards.

To create a domain, follow these steps:

  1. In the Model Explorer, select Domains.

  2. Select next to Domains, and then select Create Domain.

  3. Define the domain.

    For example, create a domain named CustomerId and specify its data type and length.

  4. Save the domain.

The new domain appears under Domains in Model Explorer and is available to assign to attributes.

Domain Quick Editor showing the list of domains with CustomerId selected and highlighted in both the Model Explorer and the editor panel.

Apply Domains to Attributes

After you create the domain, apply it to the relevant attributes in each entity.

  1. Open an entity such as Customer, Order, or Invoice.

  2. Select the attribute that should use the domain.

    For example, select CustomerId.

  3. In the Properties pane, assign the CustomerId domain.

  4. Repeat these steps for other entities that use the same attribute.

The selected attributes now share the same domain definition, which helps keep the model consistent.

Review and Validate the Model

After you create relationships and domains, review the model in Diagram View to confirm that the entities are connected correctly and that shared attributes are used consistently across the model.

For example, the following screenshot shows the Customer, Order, and Invoice entities in Diagram View. This view helps illustrate the overall Lead-to-Cash flow and shows how shared attributes such as CustomerId are used across related entities.

ER diagram showing Customer, Order, and Invoice entities with their attributes, where CustomerId appears as a foreign key in Order and Invoice to represent relationships across the model.

Use the diagram to verify the following:

  • The Customer → Order → Invoice flow is clear.

  • The entities are connected as expected.

  • Shared attributes such as CustomerId appear in the appropriate entities.

  • The relationship lines align with the business flow shown in the model.

This review helps ensure consistency across the model.