iconsulting/packages/services
hailin 422069be68 feat: add enterprise multi-tenancy infrastructure
- Add shared tenant module with AsyncLocalStorage-based context management
- Create TenantContextService, TenantContextMiddleware, TenantGuard
- Add @TenantId(), @Tenant(), @RequireFeatures() decorators
- Create BaseTenantRepository for automatic tenant filtering
- Add TenantORM entity for tenants table
- Add tenant_id column to all 16 ORM entities across 6 services
- Create database migration script for multi-tenancy support
- Add tenant-related error codes

This implements row-level isolation for 100% data separation between tenants.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 18:11:12 -08:00
..
conversation-service feat: add enterprise multi-tenancy infrastructure 2026-01-25 18:11:12 -08:00
evolution-service feat: add enterprise multi-tenancy infrastructure 2026-01-25 18:11:12 -08:00
file-service feat: add enterprise multi-tenancy infrastructure 2026-01-25 18:11:12 -08:00
knowledge-service feat: add enterprise multi-tenancy infrastructure 2026-01-25 18:11:12 -08:00
payment-service feat: add enterprise multi-tenancy infrastructure 2026-01-25 18:11:12 -08:00
user-service feat: add enterprise multi-tenancy infrastructure 2026-01-25 18:11:12 -08:00