Re:Choosing a Database Schema for Polymorphic Data (2024)
by gm678 on Wednesday July 09, 2025 @10:57AM
(#44510799)
I think the article alludes to the difficulty of this solution by discussing the need for invariants to be upheld when an insured patient becomes uninsured or vice versa. Different tables for each 'subclass' could be an option, but if that can change later on, you now need to move patients between the insured_patient and uninsured_patient tables and make sure you don't have duplicates.
[ Parent
| on HN ]
There are no comments on this comment yet.