7.0 the column `(not available)` does not exist in the current database.
I'm getting an error trying to load a user since upgrading to 7.0. I've changed my imports and my client and generator.
The important parts of my schema.prisma:
The important parts of my schema.prisma:
generator client {
provider = "prisma-client"
output = "../src/generated/prisma"
}
datasource db {
provider = "postgresql"
}
model User {
id String @id @unique @default(cuid(2)) @map("id")
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime? @updatedAt @map("updated_at")
email String? @unique
givenName String?
familyName String?
organizationName String?
emailVerified Boolean? @map("email_verified")
employee Boolean @default(false)
admin Boolean @default(false)
archive Boolean @default(false)
googleId String?
yahooId String?
customerNotes String?
doNotRent Boolean @default(false)
alternative Boolean @default(false)
address Address[]
session Session[]
verification Verification[]
employeeDiscountCode DiscountCode[]
PropertyWithLien PropertyWithLien[]
@@unique([id, email])
@@unique([email, givenName, familyName])
@@index([id, email])
@@map("users")
}generator client {
provider = "prisma-client"
output = "../src/generated/prisma"
}
datasource db {
provider = "postgresql"
}
model User {
id String @id @unique @default(cuid(2)) @map("id")
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime? @updatedAt @map("updated_at")
email String? @unique
givenName String?
familyName String?
organizationName String?
emailVerified Boolean? @map("email_verified")
employee Boolean @default(false)
admin Boolean @default(false)
archive Boolean @default(false)
googleId String?
yahooId String?
customerNotes String?
doNotRent Boolean @default(false)
alternative Boolean @default(false)
address Address[]
session Session[]
verification Verification[]
employeeDiscountCode DiscountCode[]
PropertyWithLien PropertyWithLien[]
@@unique([id, email])
@@unique([email, givenName, familyName])
@@index([id, email])
@@map("users")
}