Skip to main content

Tenant — How it works

Overview

The tenant engine defines the platform's top-level multi-tenancy boundary. A tenant is an isolated customer/organization; every business row across the platform carries a tenant_id, and tenant-scoped uniqueness and access decisions hang off it. The engine also holds a tenant's branding, configuration, and subscription.

Data model & ownership

TablePurpose
tenantThe isolation boundary; unique tenant code/name.
tenant_brandingPer-tenant look & feel.
tenant_configurationPer-tenant settings.
tenant_subscriptionSubscription/plan state.

Key rules & invariants

  • Tenant code is unique; a tenant is the scoping key other engines validate against (e.g. demographic search requires a valid tenant).
  • Cross-tenant data never mixes — tenant-scoped rows filter by tenant_id.

API

See the API Reference. Endpoint groups under /api/v1/tenant: tenants, branding, configuration, subscription.

Configuration & feature flags

None.