> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usedatabrain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure Tenants

> After setting up a data source, the next step is to configure the organization details to tailor the analytics experience for your clients.

<Steps>
  <Step title="Initial Setup: Select Tenancy Level">
    * Determine your organization’s **Tenancy Level**. Options include **Database** or **Table**.
    * Select the appropriate tenancy for your customer information, ensuring a personalized analytics experience.\
      Choose between:
      * **Database**: Choose this when your client data is stored at the database level (each client has its own database).
      * **Table**: Choose this when your client data is stored as rows identified by an ID column in a single table.

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/bwCiz-_A28wbmTpi/SelectTenancyLevel.png?fit=max&auto=format&n=bwCiz-_A28wbmTpi&q=85&s=dca3da0a81b42f330889cd961075a6cf" alt="Select Tenancy Level" width="2934" height="1656" data-path="SelectTenancyLevel.png" />
    </Frame>
  </Step>

  <Step title="Type 1: Database Tenancy Level">
    Select the tenancy level as **Database** if your client data is stored in separate databases for each customer.

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/bgUsI-_6ACBdj3SC/DatabaseTenancy.png?fit=max&auto=format&n=bgUsI-_6ACBdj3SC&q=85&s=cdf2f2bae6538bf1905fc79d78e348ff" alt="Database tenancy level" width="2928" height="1656" data-path="DatabaseTenancy.png" />
    </Frame>
  </Step>

  <Step title="Type 2: Table Tenancy Level">
    Select Client Data Source and Determine Primary Key:

    * Find and select the **Table** that houses your client, organization, or customer data.
    * Use the search function if necessary. Clicking a table displays its columns.
    * Choose the **Primary Key** column (e.g., `id`, `user_id`, `org_id`).
    * Select the column indicating the **Customer Name**\
      (e.g., `name`, `client_name`, `org_name`, `company_name`).
    * After designating both the primary key and customer name columns, press **Complete** to finalize the configuration.

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/bwCiz-_A28wbmTpi/TableTenancy.png?fit=max&auto=format&n=bwCiz-_A28wbmTpi&q=85&s=562e5cd39c112fc92463d4d340b0e639" alt="" width="2926" height="1652" data-path="TableTenancy.png" />
    </Frame>
  </Step>
</Steps>

<Check>
  With these steps, you've successfully added customer organizations of your company to Databrain.
</Check>
