6 Commits

Author SHA1 Message Date
0807547a51 feat: Enhance BaseModel validation with unique constraint checks and improve RelationshipManager model resolution 2025-06-19 20:55:17 +03:00
0305cb1737 feat: Enhance QueryBuilder with operator normalization and null handling; update ShardManager to ensure shard index bounds; improve BaseModel tests for email validation 2025-06-19 12:54:21 +03:00
9f425f2106 feat: Refactor BaseModel and decorators for improved field handling and relationships 2025-06-19 12:45:10 +03:00
64163a5b93 feat: Enhance model decorators and query builder
- Added validation for field and model configurations in decorators.
- Improved handling of relationships in the BelongsTo, HasMany, HasOne, and ManyToMany decorators.
- Introduced new methods in QueryBuilder for advanced filtering, caching, and relationship loading.
- Updated RelationshipManager to support new relationship configurations.
- Enhanced error handling and logging in migration tests.
- Refactored test cases for better clarity and coverage.
2025-06-19 12:09:23 +03:00
071723f673 feat: add Jest configuration and basic framework tests 2025-06-19 11:26:45 +03:00
1cbca09352 Add unit tests for RelationshipManager and ShardManager
- Implement comprehensive tests for RelationshipManager covering various relationship types (BelongsTo, HasMany, HasOne, ManyToMany) and eager loading functionality.
- Include caching mechanisms and error handling in RelationshipManager tests.
- Create unit tests for ShardManager to validate shard creation, routing, management, global index operations, and query functionalities.
- Ensure tests cover different sharding strategies (hash, range, user) and handle edge cases like errors and non-existent models.
2025-06-19 11:20:13 +03:00