Hey everyone, Is it possible to attach custom meta...
# orm-help
y
Hey everyone, Is it possible to attach custom metadata at the model level in the prisma schema, eg:
Copy code
@Metadata({
  generate: true
})
model Product {
  id             String               @id @default(cuid())
  name          String
}
I want to build a custom generator, that helps me generate crud services, and react components, based on my prisma schema, so i wonder if something like this, is possible.
r
can you do this?
Copy code
generator client {
 provider = "your-custom-provider-here"
 custom-value1 = true
 custom-value2 = "here"
}
y
Yep that would surely work 😅