Skip to content

Update from task d9094924-b67f-44f0-bb30-c9ebeaa0d379#6

Merged
fiqrikm18 merged 1 commit into
developmentfrom
normalized-user-domain-architecture-0d379
Jun 22, 2026
Merged

Update from task d9094924-b67f-44f0-bb30-c9ebeaa0d379#6
fiqrikm18 merged 1 commit into
developmentfrom
normalized-user-domain-architecture-0d379

Conversation

@fiqrikm18

Copy link
Copy Markdown
Collaborator

This PR was created by qwen-chat coder for task d9094924-b67f-44f0-bb30-c9ebeaa0d379.

… Handlers

Key features implemented:
- New docs/NORMALIZED_USER_DOMAIN.md detailing normalized schema design rationale and structure
- New src/modules/user/infrastructure/models/__init__.py aggregating all user domain models
- New src/modules/user/infrastructure/models/user_*_model.py files for normalized user entities (address, contact, profile, security, settings, verification)
- Updated src/modules/authorization/infrastructure/models/*_model.py with indexing optimizations
- Updated src/modules/user/application/auth/login_user/handler.py to reference password_hash correctly
- Updated src/modules/user/application/auth/register_user/handler.py to use password_hash in User.create
- Updated src/modules/user/application/detail_user/handler.py to fetch user with relations via get_by_id_with_relations
- Updated src/modules/user/domain/entities/user.py with normalized entity structure including profile, settings, security
- Updated src/modules/user/domain/repositories/user_repository.py interface for relation handling
- Updated src/modules/user/infrastructure/models/user_model.py to reflect normalized structure and relationships
- Updated src/modules/user/infrastructure/repositories/user_repository.py implementation for normalized data access

The changes implement a fully normalized user domain following DDD principles, separating concerns into distinct bounded contexts while updating application handlers to utilize the new structure. The repository layer now supports fetching related user data efficiently.
@fiqrikm18 fiqrikm18 merged commit 91f707c into development Jun 22, 2026
1 of 2 checks passed
@fiqrikm18 fiqrikm18 deleted the normalized-user-domain-architecture-0d379 branch June 22, 2026 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants