Skip to content

Comment

reference
1 min readUpdated

Kind: Database Model

Source: atloria-monorepo/libs/database/prisma/schema.prisma

Fields

FieldTypeRequiredKey
idStringPK
documentIdString
parentCommentIdString-
contentString
selectionTextString-
positionStartInt-
positionEndInt-
resolvedBoolean
resolvedAtDateTime-
resolvedByIdString-
mentionsString[]
createdByIdString
createdAtDateTime
updatedAtDateTime

Diagram

mermaid
erDiagram
    Comment {
        id String [PK]
        documentId String
        parentCommentId String?
        content String
        selectionText String?
        positionStart Int?
        positionEnd Int?
        resolved Boolean
        resolvedAt DateTime?
        resolvedById String?
        mentions String[]
        createdById String
        createdAt DateTime
        updatedAt DateTime
    }
    Comment ||--|| User : ""
    Comment ||--|| User : ""
    Comment ||--|| Document : ""
    Comment ||--|| Comment : ""
    Comment ||--}o Comment : ""

Relationships

  • HAS_ONE → User
  • HAS_ONE → User
  • HAS_ONE → Document
  • HAS_ONE → Comment
  • HAS_ONE → Comment

Referenced By

  • User (HAS_ONE)
  • User (HAS_ONE)
  • Comment (HAS_ONE)
  • Comment (HAS_ONE)

Was this page helpful?

Download as PDF