How to avoid duplicate definition
Hello all, currently i have this on several of my models:
if feel i am doing something wrong.
is there a way to derive the type from the table so i don't have to double it?
any guidance is welcome.
2 Replies
Yea you have https://orm.drizzle.team/docs/goodies#type-api
Drizzle ORM - Goodies
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
this is exactly what i needed, thanks a lot!