Remix.run Logo
efxhoy 15 days ago

There's nothing wrong with nullable fields when it's appropriate. When kids are born they don't have names. Not all users want to tell you their names. A null value is data too.

MrMcCall 15 days ago | parent [-]

> when it's appropriate

Yes, it just requires extra care when querying and handling the rows.

It's always just easier, if you can, to make it NOT NULL after prepopulating all rows' columns to the empty string (or real data).

Sometimes NULL is truly different than the empty string, but that, like you said, is just a kind of data.