CarterGrimmeisen / zod-prisma

A custom prisma generator that creates Zod schemas from your Prisma model.
MIT License
826 stars 86 forks source link

Feature/config for skip models #172

Open richardfeliciano opened 1 month ago

richardfeliciano commented 1 month ago

Adds a new configuration "skipModels" so that models can be excluded from file generation.

generator zod {
  provider      = "zod-prisma"
  output        = "../src/schemas"
  modelSuffix   = "Schema"
  relationModel = false
  skipModels    = ["SignIn", "SignUp"]
}