Closed fortezhuo closed 7 months ago
@fortezhuo as far as I know prisma requires uppercase model names to work properly especially with the generated zod schemas.
if you have lower case names in your database please use prismas @@map()
directive like
model UppercaseName {
id Sttring @id
property int
...
@@map("my_lowercase_database_name")
}
Yes. You are right, sorry for not paying attention about @@map on Prisma Documentation
Describe the bug Hey! Love your library.. but I found some errors while using lower case prisma model.
Screenshots If applicable, add screenshots to help explain your problem.
Package versions (please complete the following information):
Additional context I have tried to build the generated zod prisma types for produce errors