prisma table B2bTransaction exists in database cross-checked with the studio, but when try to use in hono on production, it gives this error:
PrismaClientKnownRequestError: Invalid prisma.b2bTransaction.findUnique() invocation: The table public.B2bTransaction does not exist in the current database.
PrismaClientKnownRequestError: Invalid prisma.b2bTransaction.findUnique() invocation: The table public.B2bTransaction does not exist in the current database.
table schema
model B2bTransaction { id String @id @default(uuid()) amount Int timestamp DateTime @default(now()) status TransactionStatus type TransactionType webhookId String? @unique // To track webhook processing webhookStatus WebhookStatus? webhookAttempts Int @default(0) lastWebhookAttempt DateTime? senderUserId String? receiverUserId String? senderAccountNumber String? receiverAccountNumber String? senderBankName String receiverBankName String senderUser User? @relation("SenderBankRelation", fields: [senderUserId], references: [id], onDelete: SetNull) receiverUser User? @relation("ReceiverBankRelation", fields: [receiverUserId], references: [id], onDelete: SetNull) @@index([senderUserId]) @@index([receiverUserId]) @@index([webhookId])}
model B2bTransaction { id String @id @default(uuid()) amount Int timestamp DateTime @default(now()) status TransactionStatus type TransactionType webhookId String? @unique // To track webhook processing webhookStatus WebhookStatus? webhookAttempts Int @default(0) lastWebhookAttempt DateTime? senderUserId String? receiverUserId String? senderAccountNumber String? receiverAccountNumber String? senderBankName String receiverBankName String senderUser User? @relation("SenderBankRelation", fields: [senderUserId], references: [id], onDelete: SetNull) receiverUser User? @relation("ReceiverBankRelation", fields: [receiverUserId], references: [id], onDelete: SetNull) @@index([senderUserId]) @@index([receiverUserId]) @@index([webhookId])}