Zod schema validation from Drizzle schema

Hello i have an issue with zod creating schema from drizzle. I don't understand why my categories won't works while my customers works with the same export code feel free to ask more elements I know that it could be a zod issue but there is no one active on their server and maybe someone here can help since i had recommandation tu use zod in this discord server
3 Replies
Amur
Amur15mo ago
How does the interface for your CreateStoreForm props look like?
Hugo
HugoOP15mo ago
it is like that i juste mooved to export type selectCategorySchema = InferSelectModel<typeof categories>; it works way better using drizlle omr instead of drizzle zod
Hugo
HugoOP15mo ago
i will close this post
Want results from more Discord servers?
Add your server