SpaceIdCapable
interface SpaceIdCapable
Interface for entities that support namespace-based data layering within a tenant context.
The namespace provides an additional level of data isolation and organization beneath the tenantId, enabling hierarchical data partitioning in multi-tenant applications. This allows for more granular control over data separation and organization within a single tenant.
Implementations of this interface should provide a meaningful namespace string that represents a logical grouping or layer of data. Common use cases include:
Environment isolation (e.g., "dev", "staging", "prod")
Data type partitioning (e.g., "metadata", "analytics", "cache")
Business domain separation (e.g., "primary", "archive", "backup")