understanding drizzle insert
I am trying to use insert in drizzle orm and it is requiring the id for the model:
code:
error disperses when I add id to the schema, I was under the assumption that id is not required because it is auto generated?
3 Replies
Solution
needed to use
.autoincrement()
in mysqlthanks