Kelly Copley
05/25/2022, 1:47 AMRichard Ward
05/25/2022, 6:31 AMRichard Ward
05/25/2022, 6:43 AMRichard Ward
05/25/2022, 6:43 AMNurul
05/25/2022, 10:26 AMmodel Post {
id Int @id @default(autoincrement())
title String
content String
publishedOn DateTime @default(now())
authorId String
comments Comment[]
}
model Photo {
id Int @id @default(autoincrement())
photoUrl String
publishedOn DateTime @default(now())
authorId String
comments Comment[]
}
model Comment {
id Int @id @default(autoincrement())
content String
publishedOn DateTime @default(now())
authorId String
Post Post? @relation(fields: [postId], references: [id])
Photo Photo? @relation(fields: [photoId], references: [id])
photoId Int?
postId Int?
}Kelly Copley
05/26/2022, 4:42 PMNurul
05/27/2022, 10:34 AMKelly Copley
07/19/2022, 8:02 PMNurul
07/20/2022, 11:35 AM