# Importing a Data Model

Instead of creating entities from scratch, you can quickly import one from external sources. \
To import a model, create a model and open it on the canvas. Next, click![](https://reasyapps.com/forum/wp-content/uploads/2022/06/Import-model.png)in the canvas toolbar, and select the source from which you wish to import. You can import a model from:

* [Model file](#import-model-from-model-file)
* [XLS file](#import-model-from-xls-file)
* [Structure from XLS file](#import-model-structure-from-xls-file)
* [Database](#import-model-from-database)

### **Import Model from Model File**

Choose the model file in “.pdm” format or drag it here.

Then, select the entities and mark key attributes; and enable “Save as Physical Entities”, to save them to Reasy's database.

<img src="/files/8mmMs2ir3U5HqPTfEHDa" alt="" data-size="original">

### **Import Model from XLS File**

This feature helps when working collaboratively.\
Let’s understand it with a use case. If you’re working on a data model and a peer attempts to modify it, s/he is not permitted to do so. You can facilitate your peer work on it by exporting it into an Excel file and sharing it. Then, your peer can make the necessary changes and import them, as shown below.

To import a model into an Excel, choose the Excel file and click **Next**. Then, select the columns (attributes) and their data types. Additionally, you can specify the key attribute as well.\
– To import the model along with the data, enable “Import With Data”.\
– To save them as physical entities, enable “Save as Physical Entities”.

### **Import Model from Database**

Select the datasource and choose the tables (entities). Then, select the attributes that you require.

{% hint style="info" %}
**Note**: If you import an existing entity or a different one of the same name, it merges with the existing entity by adding additional fields, if any.
{% endhint %}


---

# 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://help.reasy.ai/help/getting-started/engines/data-modeler/importing-a-data-model.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.
