# extendModels

### Type: [Map](../types-and-objects/map)<[FileModel](../types-and-objects/file-model), [FileModel](../types-and-objects/file-model)>

<details>

<summary>Versioning History</summary>

**API Version v1.0.0** - Introduced `extended` configuration option.

</details>

This object's entries are a key-value pair. When the schema is being generated, all non-id and non-relation fields from the value model will be added to the key model. To extend models, add the following line to your exported configuration object:

{% code title="prisma-util.config.mjs" %}
```javascript
export default {
    // Other configuration lines
    extended: {
        "filePath1:Model1": "filePath2:Model2"
    }
}
```
{% endcode %}

In this example, `Model1` will take on all non-id and non-relation fields from `Model2`.
