Skip to content

Commit c01c363

Browse files
committed
Remove Tenant schema and migrate to Space
Deleted Tenant.json and removed TenantSchema from tenant.zod.ts. The tenant concept is now represented as attributes of a Space in HubSpaceSchema, consolidating isolation and quota logic.
1 parent 250596a commit c01c363

File tree

2 files changed

+3
-95
lines changed

2 files changed

+3
-95
lines changed

packages/spec/json-schema/hub/Tenant.json

Lines changed: 0 additions & 61 deletions
This file was deleted.

packages/spec/src/hub/tenant.zod.ts

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -48,40 +48,9 @@ export const TenantQuotaSchema = z.object({
4848

4949
export type TenantQuota = z.infer<typeof TenantQuotaSchema>;
5050

51-
/**
52-
* Tenant Schema
53-
* Represents a tenant in a multi-tenant SaaS deployment
54-
*/
55-
export const TenantSchema = z.object({
56-
/**
57-
* Unique tenant identifier
58-
*/
59-
id: z.string().describe('Unique tenant identifier'),
60-
61-
/**
62-
* Tenant name (display name)
63-
*/
64-
name: z.string().describe('Tenant display name'),
65-
66-
/**
67-
* Data isolation level for this tenant
68-
* Determines how tenant data is segregated from other tenants
69-
*/
70-
isolationLevel: TenantIsolationLevel.describe('Data isolation strategy'),
71-
72-
/**
73-
* Custom configurations and metadata specific to this tenant
74-
* Can store tenant-specific settings, branding, features, etc.
75-
*/
76-
customizations: z.record(z.any()).optional().describe('Tenant-specific customizations'),
77-
78-
/**
79-
* Resource quotas and limits for this tenant
80-
*/
81-
quotas: TenantQuotaSchema.optional().describe('Resource quotas and limits'),
82-
});
83-
84-
export type Tenant = z.infer<typeof TenantSchema>;
51+
// Tenant Schema REMOVED.
52+
// The concept of a "Tenant" is now an attribute of a "Space".
53+
// See HubSpaceSchema in space.zod.ts which embeds TenantIsolationLevel and TenantQuotaSchema.
8554

8655
/**
8756
* Tenant Isolation Strategy Documentation

0 commit comments

Comments
 (0)