DEBUG="*" prisma format --schema="./schema.prisma"
# Edited schema path to upload as a gist
prisma:loadEnv project root found at /tmp/package.json +0ms
prisma:tryLoadEnv Environment variables loaded from /tmp/.env +0ms
Environment variables loaded from .env
prisma:engines binaries to download libquery-engine, migration-engine, introspection-engine, prisma-fmt +0ms
Prisma schema loaded from prisma/schema.prisma
prisma:getDMMF Using CLI Query Engine (Node-API) at: /usr/lib/node_modules/prisma/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node +0ms
Error: Error: Schema parsing
error: Error parsing attribute "@relation": The relation fields `Description` on Model `Tester` and `Tester` on Model `TesterDescription` both provide the `references` argument in the @relation attribute. You have to provide it only on one of the two fields.
--> schema.prisma:18
|
17 | Ingredients TesterIngredients[]
18 | Description TesterDescription @relation(fields: [testerDescriptionTesterID], references: [TesterID])
19 | testerDescriptionTesterID String @db.Uuid
|
error: Error parsing attribute "@relation": The relation fields `Description` on Model `Tester` and `Tester` on Model `TesterDescription` both provide the `references` argument in the @relation attribute. You have to provide it only on one of the two fields.
--> schema.prisma:44
|
43 |
44 | Tester Tester @relation(fields: [TesterID], references: [TesterID])
45 | }
|
error: Error parsing attribute "@relation": The relation fields `Description` on Model `Tester` and `Tester` on Model `TesterDescription` both provide the `fields` argument in the @relation attribute. You have to provide it only on one of the two fields.
--> schema.prisma:18
|
17 | Ingredients TesterIngredients[]
18 | Description TesterDescription @relation(fields: [testerDescriptionTesterID], references: [TesterID])
19 | testerDescriptionTesterID String @db.Uuid
|
error: Error parsing attribute "@relation": The relation fields `Description` on Model `Tester` and `Tester` on Model `TesterDescription` both provide the `fields` argument in the @relation attribute. You have to provide it only on one of the two fields.
--> schema.prisma:44
|
43 |
44 | Tester Tester @relation(fields: [TesterID], references: [TesterID])
45 | }
|
error: Error parsing attribute "@relation": The relation fields `Description` on Model `Ingredient` and `Ingredient` on Model `IngredientDescription` both provide the `references` argument in the @relation attribute. You have to provide it only on one of the two fields.
--> schema.prisma:27
|
26 | UsedIn TesterIngredients[]
27 | Description IngredientDescription @relation(fields: [ingredientDescriptionIngredientID], references: [IngredientID])
28 | ingredientDescriptionIngredientID String @db.Uuid
|
error: Error parsing attribute "@relation": The relation fields `Description` on Model `Ingredient` and `Ingredient` on Model `IngredientDescription` both provide the `references` argument in the @relation attribute. You have to provide it only on one of the two fields.
--> schema.prisma:36
|
35 |
36 | Ingredient Ingredient @relation(fields: [IngredientID], references: [IngredientID])
37 | }
|
error: Error parsing attribute "@relation": The relation fields `Description` on Model `Ingredient` and `Ingredient` on Model `IngredientDescription` both provide the `fields` argument in the @relation attribute. You have to provide it only on one of the two fields.
--> schema.prisma:27
|
26 | UsedIn TesterIngredients[]
27 | Description IngredientDescription @relation(fields: [ingredientDescriptionIngredientID], references: [IngredientID])
28 | ingredientDescriptionIngredientID String @db.Uuid
|
error: Error parsing attribute "@relation": The relation fields `Description` on Model `Ingredient` and `Ingredient` on Model `IngredientDescription` both provide the `fields` argument in the @relation attribute. You have to provide it only on one of the two fields.
--> schema.prisma:36
|
35 |
36 | Ingredient Ingredient @relation(fields: [IngredientID], references: [IngredientID])
37 | }
|
Validation Error Count: 8
at getDmmfNodeAPI (/usr/lib/node_modules/prisma/build/index.js:37108:15)
at async getDMMF (/usr/lib/node_modules/prisma/build/index.js:37085:17)
at async Object.parse (/usr/lib/node_modules/prisma/build/index.js:104929:5)
at async main (/usr/lib/node_modules/prisma/build/index.js:106144:18)