Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for connectors #136

Open
TenshiMunasinghe opened this issue Jul 10, 2022 · 0 comments
Open

Add support for connectors #136

TenshiMunasinghe opened this issue Jul 10, 2022 · 0 comments

Comments

@TenshiMunasinghe
Copy link

TenshiMunasinghe commented Jul 10, 2022

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")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant