Some time ago someone told me that nullable ForeignKeys are "evil" database design?
In other words it is an "anti-pattern", something you should avoid.
Why?
Some time ago someone told me that nullable ForeignKeys are "evil" database design?
In other words it is an "anti-pattern", something you should avoid.
Why?
You need an "if" to process a datastructure which has a nullable ForeignKey.
You can read more about why "if" is evil here: Why is the 'if' statement considered evil?