> For the complete documentation index, see [llms.txt](https://docs.tribalknowledge.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tribalknowledge.tech/ratifier-tutorials/sql-simulator/technical-overview/step-2.md).

# Step 2

<figure><img src="/files/RGweqRjEpTYSknMUUrTT" alt=""><figcaption></figcaption></figure>

It then goes to the production database and retrieves the DDL's for those tables.&#x20;

{% hint style="info" %}
&#x20;If there are any tables that are linked by a foreign key reference it will retrieve the DDL's for those automatically.
{% endhint %}
