Files
brunoandClaude Sonnet 4.5 cbe30d0849 feat: implement comprehensive tenant user management optimization
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>
2025-12-19 00:53:09 +08:00

49 MiB

The file is too large to be shown. View Raw