> For the complete documentation index, see [llms.txt](https://docs.mindstellar.com/osclass-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindstellar.com/osclass-docs/v3.9.0/developers/basic-osclass/database-model-and-diagram.md).

# Database model and diagram

This diagram could be a bit difficult to understand at first and follow all the relations. To be able to use an interactive version of the same diagram, please use the [MySQL Workbench](http://www.mysql.com/products/workbench/) and follow these steps.

* Download [MySQL Workbench](http://www.mysql.com/products/workbench/) (it's free and cross-platform!)
* Install it and open it
* Select **Create EER Model From SQL Script**
* Look for your file 'struct.sql (your\_osclass\_folder/oc-includes/osclass/installer/struct.sql)
* **Check** Place imported object on a diagram
* Click on **Execute**, **Next**, **Finish**
* Re-arrange the boxes (tables) as you wish

Relations will highlight if you place your mouse over the tables or the relations.

![](/files/-LsgGO0D93a0HCel5EV_)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.mindstellar.com/osclass-docs/v3.9.0/developers/basic-osclass/database-model-and-diagram.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
