Model named "Check" is incorrectly typed #7655
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: reserved words
See https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#naming-conventions
topic: type-clash
Milestone
Bug description
I have a model called
Check
, after runningPrisma generate
. There will be 2 different types with the same keyCheckSelect
one used by the Prisma client itself and the other is generated to give the ability to select properties while querying the Check model.How to reproduce
npm run db:generate
npm run build
Expected behavior
Check
should be a valid name for a model with no duplicate types with its namePrisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: