Add relationship between app and review
This commit is contained in:
parent
794556ded3
commit
cfe667b4d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user