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
MAST16mo ago
Yep, if something shouldn't be null you should add, notNull(). You're on the right track.
titongo
titongoOP16mo ago
Thanks!

Did you find this page helpful?