generator-helper: schema
attribute is not exposed to generators when using multiSchema
#19987
Labels
kind/improvement
An improvement to existing feature and code.
team/client
Issue for team Client.
team/schema
Issue for team Schema.
topic: dmmf
topic: generator
topic: multiSchema
multiple schemas
This was also reported in the feature feedback thread, but I thought it could be worth tracking separately.
Bug description
@prisma/generator-helper
does not expose any information about a model's schema, preventing generators like https://github.com/notiz-dev/prisma-dbml-generator or https://github.com/valtyr/prisma-kysely to generate proper table names without workarounds.It's missing from both the type (
DMMF.Model
) and the model objects provided togeneratorHandler
'sonGenerate
function (options.dmmf.datamodel.models
).How to reproduce
@prisma/generator-helper
and log the output.prisma/schema.prisma
file withmultiSchema
enabled that uses the generator.prisma generate
and look at the log - models do not include any schema info.Expected behavior
That a model's schema is included on the
DMMF.Model
object, e.g. like:Prisma information
Example Prisma schema:
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: