tom
WWasp-lang
•Created by tom on 10/15/2024 in #🙋questions
Problem with generating Entity from Prisma Model.
👍 I found the solution.. There is a different schema.prisma file. My bad.
8 replies
WWasp-lang
•Created by tom on 10/15/2024 in #🙋questions
Problem with generating Entity from Prisma Model.
I think that the model aproach is correct, I am not adding the entity into wasp file, just model to prisma schema. But the entity is not generated when i do the db migrate
8 replies
WWasp-lang
•Created by tom on 10/15/2024 in #🙋questions
Problem with generating Entity from Prisma Model.
When i add the entity to the wasp file i have this error now
my-project/app/main.wasp @ 349:1 - 353:5
Validation error:
Entities can no longer be defined in the .wasp file. You should migrate your entities to the schema.prisma file. Read more: https://wasp-lang.dev/docs/migrate-from-0-13-to-0-14#migrate-to-the-new-schemaprisma-file
348 |
349 | entity Rocket {=psl
350 | id Int @id @default(autoincrement())
351 | description String
352 | isDone Boolean @default(false)
353 | psl=}
350 | id Int @id @default(autoincrement())
351 | description String
352 | isDone Boolean @default(false)
353 | psl=}
8 replies