Parent model in child model in Prisma?

Sorry for the confusing title, I'm looking to do something like this:

model Parent {
  id         String     @id @default(cuid())
  name  String
  
  children Child[]
}

model Child {
  id               String          @id @default(cuid())
  name  String

 parent   Parent? @relation(fields: [parentId], references: [id])
 parentId String?

subChild Parent // is something like this possible? <<<<
}
Was this page helpful?