# Foreign key inheritance

Syntho automatically inherits all foreign keys that are stored in your source database. This means that the generated database will respect the foreign key constraints of your source database.

Foreign keys can be viewed when selecting the **Foreign keys** tab on the **Job configuration** screen and after unchecking the box **Show manually added foreign keys only**.

<figure><img src="/files/x3282i4hdpuLSsW8mWtf" alt=""><figcaption><p>Foreign keys tab</p></figcaption></figure>

## Limitations

* Composite foreign keys are not supported in the following situation:
  * when two or more columns that make up the composite foreign key *also* serve as a composite primary key in a referred other table, *AND*
  * the key generation method is set to **generate**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.syntho.ai/configure-a-data-generation-job/manage-foreign-keys/foreign-key-inheritance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
