News for hackers. Stuff that matters.
Re:Cyclic dependencies are evil (2013) by Someone on Saturday January 30, 2021 @05:19PM (#25973563)
“Customers rely on Accounts (I.e. have one or many)”

Alternative model: the Customer relation couples a Person to an Account.

I think that’s a better model, as it allows Person P to be a Customer at bank B but not at Bank C, Person Q to be a Customer at both B and C, etc.

It also allows you to model Persons before you model Accounts, breaking the circularity, allows Companies to become Customers, etc.

There are no comments on this comment yet.