Skip to content

TenantWithRole

Tenant with user’s role (for “my tenants” endpoint)

PropertyTypeDescriptionInherited from
created_atstringCreation timestampTenant.created_at
db_name?string | nullDatabase name (null = uses main database, for backward compatibility)Tenant.db_name
deleted_at?string | nullSoft delete timestampTenant.deleted_at
idstringUnique identifier for the tenantTenant.id
is_defaultbooleanWhether this is the default tenantTenant.is_default
metadata?Record<string, unknown>Arbitrary metadataTenant.metadata
my_role"tenant_admin"Current user’s role in this tenant (always tenant_admin with database-per-tenant)-
namestringDisplay nameTenant.name
slugstringURL-friendly identifier (e.g., “acme-corp”)Tenant.slug
statusTenantStatusCurrent status of the tenantTenant.status
updated_at?stringLast update timestampTenant.updated_at