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