Add relationship between app and review

This commit is contained in:
Joe Au-Yeung 2022-05-24 15:32:50 -04:00
parent 794556ded3
commit cfe667b4d9

View File

@ -478,11 +478,13 @@ model App {
credentials Credential[]
Webhook Webhook[]
ApiKey ApiKey[]
reviews AppReview[]
}
model AppReview {
id Int @id @default(autoincrement())
slug String @unique
app App @relation(fields: [slug], references: [slug], onDelete: Cascade)
userId Int
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
date DateTime