This commit adds a complete tenant optimization system that eliminates the need for redundant tenant_id columns across user-related tables by introducing a centralized TenantUser domain object and service layer. Key changes: - Database migrations: tenant_info view, unique indexes on user tables - New domain model: TenantUser with user-tenant relationship management - Service layer: TenantUserService with caching and batch operations - Architecture documentation: design decisions, implementation guide, deployment checklist - Testing: comprehensive test scripts and simplified HTML report generator - V2 implementation: TCustomerConfigServiceImpl_V2 using new tenant architecture Benefits: - Reduced database redundancy (eliminated tenant_id from 5+ tables) - Improved query performance with optimized indexes - Enhanced maintainability with centralized tenant logic - Better scalability with caching layer 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
49 MiB
49 MiB
The file is too large to be shown.
View Raw