Krunal Shah
DTDrizzle Team
•Created by Krunal Shah on 8/14/2024 in #help
Nullable columns doesn't show up while doing inserts
This is my database schema
When i try to do insert on any nullable fields it doesn't show up in insert types. Let's say while creating tokens user_id is nullable but i want to insert the user_id when creating token if i type user_id in values it shows typescript error. If i add
.notNull()
in the user_id foreign key it shows up in the insert.
does anyone has this issue?2 replies