> For the complete documentation index, see [llms.txt](https://docs.securepass.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.securepass.me/documentation/getting-started/deployment-guide/database-setup.md).

# Database setup

{% stepper %}
{% step %}

## Create the SECUREpass schema

Create the SECUREpass schema and run the initial seed scripts.
{% endstep %}

{% step %}

## Provision tenant databases or schemas

Where multi-tenancy is in use, provision the per-tenant databases or schemas.
{% endstep %}

{% step %}

## Configure reader and writer datasources

If you are using the multi-database performance configuration, configure the reader and writer datasources separately.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Size the database volume against both your user population and your audit-log retention period. Audit retention is usually the larger of the two.
{% endhint %}
