You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if there's already a support for this, but I ran into this issue using MySQL connector.
For a model like this, I think it's redundant to use @zod keyword when there's clearly a criteria defined in the data models itself.
I want the library to be smart enough to understand the native column types if that's possible.
model User {
id String @id @default(uuid())
name String @unique @db.VarChar(15) ///@zod.max(15)
bio String? @db.VarChar(140) ///@zod.max(140)
email String @unique @db.VarChar(254) ///@zod.max(254)
password String @db.VarChar(255) ///@zod.max(255)
@@map("user")
}
The text was updated successfully, but these errors were encountered:
I'm not sure if there's already a support for this, but I ran into this issue using MySQL connector.
For a model like this, I think it's redundant to use
@zod
keyword when there's clearly a criteria defined in the data models itself.I want the library to be smart enough to understand the native column types if that's possible.
The text was updated successfully, but these errors were encountered: