model Comment {
id String @id @default(auto()) @map("_id") @db.ObjectId
content String
replies Reply
...
@@unique([replies.replyId ], map: "replies_id_1")
@@map("comments")
}
type Reply {
replyId String @db.ObjectId @map("id")
content String
...
}
model Comment {
id String @id @default(auto()) @map("_id") @db.ObjectId
content String
replies Reply
...
@@unique([replies.replyId ], map: "replies_id_1")
@@map("comments")
}
type Reply {
replyId String @db.ObjectId @map("id")
content String
...
}