Recommended Enum usage with Prisma and Zod
Currently, I have enums in my Prisma models which are also redefined in Zod schemas like this:
Then, I may reference the type in my code like this:
I've started wondering if I should remove the Zod enum/type and simply reference the ItemRequestStatus enum generated by Prisma. Is one approach recommended over the other?
Then, I may reference the type in my code like this:
I've started wondering if I should remove the Zod enum/type and simply reference the ItemRequestStatus enum generated by Prisma. Is one approach recommended over the other?