notNull() is still letting field be optional
I am performing the following for SQLite:
However, when I perform:
It says that
How can I fix this?
However, when I perform:
export type NewProduct = typeof products.$inferInsert;It says that
id is optional (this is what it shows when i hover over NewProduct)How can I fix this?