about not null

I am fairly new to db design so I don't really understand: should I stick .notNull() everywhere if that's mostly my case? I just find it weird that the default for every value is type | null
2 Replies
MAST
MAST15mo ago
Yep, if something shouldn't be null you should add, notNull(). You're on the right track.
titongo
titongoOP15mo ago
Thanks!
Want results from more Discord servers?
Add your server