Add app relation to review

app-store-improvements
Joe Au-Yeung 2022-05-25 10:03:30 -04:00
parent cfe667b4d9
commit d6e9bfbe9f
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ model App {
model AppReview { model AppReview {
id Int @id @default(autoincrement()) id Int @id @default(autoincrement())
slug String @unique slug String @unique
app App @relation(fields: [slug], references: [slug], onDelete: Cascade) app App @relation(fields: [slug], references: [slug], onDelete: Cascade)
userId Int userId Int
user User @relation(fields: [userId], references: [id], onDelete: Cascade) user User @relation(fields: [userId], references: [id], onDelete: Cascade)
date DateTime date DateTime