Ashiqur Rahman
06/22/2020, 12:16 PMwhy I am getting this error on while I tried to read user table?
user is already created but I can't read it from prisma studio.Ryan
06/22/2020, 12:18 PMAshiqur Rahman
06/22/2020, 12:21 PMmodel User {
id Int @default(autoincrement()) @id
email String @unique
name String
password String
emailVerified Boolean @default(false)
role Role
posts Post[]
comments Comment[]
emailToken String?
emailTokenExpiry Float?
credit CreditOfUser? @relation(fields: [creditId], references: [id])
creditId Int?
orders Order[]
package Package? @relation(fields: [packageId], references: [id])
packageId Int?
customerId String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}Ryan
06/22/2020, 12:43 PM@prisma/cli version 2.0.1.
Could you try deleting the migrations folder and run again and check?Ashiqur Rahman
06/22/2020, 1:06 PM