GetTanantModelParams
@abimongo/core / GetTanantModelParams
Type Alias: GetTanantModelParams<T>
GetTanantModelParams<
T> =object
Defined in: core/src/tanancy/TenantModelResolver.ts:12
Parameters required to resolve a tenant-specific model.
Type Parameters
T
T extends Document
The type of the document in the model.
Properties
modelName
modelName:
string
Defined in: core/src/tanancy/TenantModelResolver.ts:16
The name of the model to resolve.
schema?
optionalschema:AbimongoSchema<T>
Defined in: core/src/tanancy/TenantModelResolver.ts:26
The schema definition for the model (optional).
tenantId
tenantId:
string
Defined in: core/src/tanancy/TenantModelResolver.ts:21
The ID of the tenant for which the model is being resolved.