feat(plugin-multi-tenant): allow custom tenant field per collection (#13553)

This commit is contained in:
Jarrod Flesch
2025-08-27 13:31:20 -04:00
committed by GitHub
parent 13c24afa63
commit 6db07f0c03
7 changed files with 84 additions and 74 deletions

View File

@@ -80,13 +80,18 @@ type MultiTenantPluginConfig<ConfigTypes = unknown> = {
* @default false
*/
isGlobal?: boolean
/**
* Opt out of adding the tenant field and place
* it manually using the `tenantField` export from the plugin
*/
customTenantField?: boolean
/**
* Overrides for the tenant field, will override the entire tenantField configuration
*/
tenantFieldOverrides?: CollectionTenantFieldConfigOverrides
/**
* Set to `false` if you want to manually apply
* the baseFilter
* Set to `false` if you want to manually apply the baseListFilter
* Set to `false` if you want to manually apply the baseFilter
*
* @default true
*/