> For the complete documentation index, see [llms.txt](https://appmaster.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appmaster.gitbook.io/docs/data-design/data-models-designer/creating-and-modifying-relations.md).

# Creating and modifying relations

Working with the data model designer.

To **create a link between the models**, click on the border of one of them, draw a line to the border of the other - and click again.&#x20;

An arrow appears between the models to indicate the relationship. Also, new fields will appear in each model - they will allow you to refer from one related model to another.&#x20;

To **configure a connection**, left-click on it and select `Edit Relation`. A modal settings window will open:&#x20;

* **Source** - the source model from which the link comes and its field through which it is linked to the target model;&#x20;
* **Target** - the target model to which the link goes and its field through which it is linked to the source model;&#x20;
* **Relation type** - the type of relationship between models (see[ the list of relation types](/docs/data-design/relation-types.md)). To remove a link between models, right-click on it and press `Delete`.

![](https://3563768697-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MapxHzVskQ_27pNUTT4%2F-MglUsX2079u1ZqOKNrj%2F-MgldFRryk9X-t39724q%2F4-create_relation.gif?alt=media\&token=6296c45b-2f2d-4ecc-803b-3b5fe4a64828)
