`id` type is `undefined` when using `serial("id").primaryKey()`
Part of the issue is I always have to validate id exists:

3 Replies
id
can be undefined
because it's created as a serial
, but... i'm using .update
so it obviously exists.
what's the best way to do this?
I can do id as number
but that's bad practice 😦
I could do this, maybe this is best?
Drizzle ORM - Goodies
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
In particular: