Skip to main content
Version: 3.0 Alpha

@core/prisma

The @core/prisma plugin generates a Prisma schema file from ZModel.

Please note that ZenStack's ORM runtime doesn't depend on Prisma, so you don't need to use this plugin to use the ORM. However, you can use it to generate a Prisma schema and then run custom Prisma generators or other tools that consumes a Prisma schema.

Options​

  • output: Specifies the path of the generated Prisma schema file. If a relative path is provided, it will be resolved relative to the ZModel schema.

Example​

plugin prisma {
provider = '@core/prisma'
output = '../prisma/schema.prisma'
}
Comments
Feel free to ask questions, give feedback, or report issues.

Don't Spam


You can edit/delete your comments by going directly to the discussion, clicking on the 'comments' link below