# Model from database

Creating a new model from a database is now more accurate and more flexible.

### New model information retrieved from database : &#x20;

* Entity level :&#x20;
  * @DbCatalog(..)&#x20;
  * @DbSchema(..)&#x20;
  * @DbTable(..)&#x20;
  * @DbView <br>
* Attribute level :&#x20;
  * @DbType(..)&#x20;
  * @DbName(..)

### Customization in "databases.yaml"

New options allow you to define more precisely what you want to get from the database :&#x20;

```
linksManyToOne: true
linksOneToMany: false
linksManyToMany: false

dbComment : false
dbCatalog : false
dbSchema : false
dbTable : false
dbView : false
dbName  :     false    
dbType :     false    
dbDefaultValue: false
```

### Other&#x20;

* model files are now always created in UTF-8


---

# 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://news.telosys.org/version-4.1.0/model-from-database.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.
