Spaces:
Running
Running
add galleryId on comment
Browse files- prisma/schema.prisma +3 -0
prisma/schema.prisma
CHANGED
|
@@ -35,6 +35,7 @@ model Gallery {
|
|
| 35 |
modelId String
|
| 36 |
user User? @relation(fields: [userId], references: [sub])
|
| 37 |
userId String?
|
|
|
|
| 38 |
}
|
| 39 |
|
| 40 |
model Reaction {
|
|
@@ -55,6 +56,8 @@ model Comment {
|
|
| 55 |
userId String
|
| 56 |
model Model? @relation(fields: [modelId], references: [id])
|
| 57 |
modelId String?
|
|
|
|
|
|
|
| 58 |
}
|
| 59 |
|
| 60 |
model User {
|
|
|
|
| 35 |
modelId String
|
| 36 |
user User? @relation(fields: [userId], references: [sub])
|
| 37 |
userId String?
|
| 38 |
+
Comment Comment[]
|
| 39 |
}
|
| 40 |
|
| 41 |
model Reaction {
|
|
|
|
| 56 |
userId String
|
| 57 |
model Model? @relation(fields: [modelId], references: [id])
|
| 58 |
modelId String?
|
| 59 |
+
gallery Gallery? @relation(fields: [galleryId], references: [id])
|
| 60 |
+
galleryId String?
|
| 61 |
}
|
| 62 |
|
| 63 |
model User {
|