79423555

Date: 2025-02-08 16:49:51
Score: 1
Natty:
Report link

In Domain-Driven Design, you should model your aggregate to closely reflect the real-world domain and the invariants you need to enforce.

In your travel planning system, a TravelPlan is an aggregate that can involve multiple associated MemberTravelPlan records(even if in some cases you only have one).

So I think you should store the MemberTravelPlan as a List within your TravelPlan aggregate.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Ramin Farajpour