依頼内容
“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.