Add app relation to review
parent
cfe667b4d9
commit
d6e9bfbe9f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue