Skip to content

Commit

Permalink
fix: issues with prisma schema
Browse files Browse the repository at this point in the history
  • Loading branch information
thenicekat committed Apr 25, 2024
1 parent 35ded64 commit 09ba99b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ model Post {
authorId String @db.ObjectId
// Request details
requests Request[]
// Report details
reports Report[]
}

// User stores n number of posts and requests
Expand Down Expand Up @@ -68,8 +70,9 @@ model Report {
reason String
status String @default("open")
// Reporter details
reporter User @relation(fields: [reporterEmail], references: [email])
reporterEmail String
// User details
userReported User @relation(fields: [userReportedEmail], references: [email])
userReportedEmail String
// Post details
post Post @relation(fields: [postId], references: [id])
postId String @db.ObjectId
}

0 comments on commit 09ba99b

Please sign in to comment.