Hacker News new | ask | show | jobs
by codeismath 1744 days ago
I do this too in some apps. Very near exactly how you show it.

How do you enforce required fields in the data model? By eliminating the possibility of null values, you eliminate the possibility of not-null constraints in the data model. I end up having to enforce these types of (non-complex) constraints outside the relational model. A missing row is not detectable in the same way as a null column value.