Documentation / @zerotal/tenancy / MultiDbTenant
Interface: MultiDbTenant
Defined in: tenancy/src/types.ts:21
Extended tenant shape for the multi-database strategy.
Extends
Tenant
Properties
id
id:
number
Defined in: tenancy/src/types.ts:11
Database primary key.
Inherited from
Tenant.id
slug
slug:
string
Defined in: tenancy/src/types.ts:13
URL-safe identifier used in subdomains and storage paths.
Inherited from
Tenant.slug
name
name:
string
Defined in: tenancy/src/types.ts:15
Display name.
Inherited from
Tenant.name
isActive
isActive:
boolean
Defined in: tenancy/src/types.ts:17
Whether this tenant is active. Inactive tenants are rejected by TenancyMiddleware.
Inherited from
Tenant.isActive
database
database:
string
Defined in: tenancy/src/types.ts:23
SQLite database file path OR connection string for this tenant's database.