Represents a User in the domain model.
The unique identifier for the user, represented as a UserId.
The profile information associated with the user, represented as a UserProfile.
Converts a User domain model to a UserDocument.
User
UserDocument
Converts a User domain model to a UserDTO.