Currently facing an issue whilst attempting to push schema changes to planetscale db. Not sure what I may be doing wrong. I am fairly new to prisma, so I would appreciate some help :).
generator client {
provider = "prisma-client-js"
binaryTargets = ["native"]
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
model User {
id String @id @default(uuid())
notes Note[]
}
model Note {
id String @id @default(uuid())
userId String @unique
user User @relation(fields: [userId], references: [id])
}
Tried migrating. If the relation of one to many is removed, the error goes away.