PrismaClientKnownRequestError
I'm getting error that table can't be found.
It's not working even after migrate dev --name users and generate commands.
model User {
id Int @default(autoincrement()) @id
email String @unique
password String
@@map("users")
}
Model is using @@Map, and running from Nest.JS throws error that table can't be found:
Failing on await this.prismaService.user.create
The table
It's not working even after migrate dev --name users and generate commands.
model User {
id Int @default(autoincrement()) @id
email String @unique
password String
@@map("users")
}
Model is using @@Map, and running from Nest.JS throws error that table can't be found:
Failing on await this.prismaService.user.create
The table
public.User does not exist in the current database