# Link records

Ask Orbit Agent to define a relationship between two tables, then check the link in Data Model.

## Name both sides

1. Open an app with the tables you want to connect. If you need tables first, follow [Define a data model](/guides/define-a-data-model).
2. State which record refers to which other record. For example, each request belongs to one client, while one client can have several requests.
3. Decide whether a request can exist without a client.
4. If the tables already contain records, decide how those records should use the new relationship. Do not ask Orbit to guess which client belongs to an existing request.

## Request the relationship

1. Adapt this request with your app's table names:

   > Link the requests table to the clients table. Each request can refer to one client. One client can have several requests. Make the client link optional for now. Keep existing records unchanged. Do not change the pages yet.

2. Ask Orbit Agent to define the relationship with your adapted request.

## Check the link

1. Open **Data Model**.
2. Find both tables.
3. Check that the relationship connects the tables you named.
4. Ask Orbit Agent to confirm whether the client link is optional and whether existing records remain unchanged.

If the relationship differs from your request, name both tables and ask Orbit Agent for a correction. Check the result again.

The [Orbit product FAQ](https://orbitapps.io/) confirms that each app has its own Postgres database. The data model describes the data your app stores, not just what appears on a page.

The relationship alone does not prove that a page lets users choose a related record. Next, [edit a mockup](/guides/edit-a-mockup) and inspect the page that needs that choice.