# 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: 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.mindstellar.com/osclass-docs/developers/basic-osclass/database-model-and-diagram.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.
