Skip to content
GitHub

Tenant Configuration

The tenant is the top-level entity that groups all configurations for a specific organization or application. You must create a tenant before configuring any other settings.

Table name: tenant

FieldTypeDescription
idCHAR(10)Unique tenant identifier (Primary Key)
nameVARCHAR(256)Human-readable tenant name
created_atTIMESTAMPTimestamp when tenant was created
updated_atTIMESTAMPTimestamp when tenant was last updated

To onboard a new tenant, insert a record into the tenant table:

INSERT INTO tenant (id, name) 
VALUES ('tenant1', 'Tenant Name');

Important Notes:

  • The id must be unique and within 10 characters
  • The name must be unique across all tenants
  • Once a tenant is created, all other configurations use the tenant id

After creating a tenant, you need to configure:

These are required for all authentication flows.