요청 내용
“Create a domain model with a User who owns one Profile containing a bio, age and gender.”
그렇다면Add a photo collection to Profile.Add a verification status to User.
이 도면에 담긴 내용
그 이면의 의사결정을 읽어 보세요.
01
Chose composition (strong ownership) over aggregation because a Profile cannot exist without a User in this context.
02
Included essential attributes and methods to illustrate class structure.
Use this as a starting point for modeling entities in social or dating apps where users have singular profiles.