# Models

When creating a database, it's crucial to define its properties and the type of data it will store. This involves choosing an appropriate data model and structuring tables or collections. For each field, specify data types (numbers, text, etc.), indexes for performance, and constraints to ensure data integrity.

<figure><img src="/files/a2msf0whFvxBME7n4Veu" alt=""><figcaption><p>Schema for the data that will be handled in the application</p></figcaption></figure>

Data validation rules should be in place to control the quality of data being entered Consider scalability and performance optimization for future growth and efficient data management.


---

# 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.brokenatom.io/models.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.
