Re:Old, Good Database Design
by throwaway894345 on Tuesday September 15, 2020 @02:17AM
(#24478362)
That’s generally what I’m talking about, and it works well enough for simple cases, but these sorts of solutions tend not to scale well and you give up type safety. Not the end of the world, just disappointing.
Typically I would see this modelled with two db columns, with a DB constraint indicating that only one of these can have a value.