From d6e9bfbe9f75630b9c2e88913ace1a2e23041eed Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung Date: Wed, 25 May 2022 10:03:30 -0400 Subject: [PATCH] Add app relation to review --- packages/prisma/schema.prisma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/prisma/schema.prisma b/packages/prisma/schema.prisma index d89af6919b..ae36336bb0 100644 --- a/packages/prisma/schema.prisma +++ b/packages/prisma/schema.prisma @@ -484,7 +484,7 @@ model App { model AppReview { id Int @id @default(autoincrement()) slug String @unique - app App @relation(fields: [slug], references: [slug], onDelete: Cascade) + app App @relation(fields: [slug], references: [slug], onDelete: Cascade) userId Int user User @relation(fields: [userId], references: [id], onDelete: Cascade) date DateTime