Skip to content

ChatInteraction

reference
1 min readUpdated

Kind: Database Model

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

Fields

FieldTypeRequiredKey
idStringPK
projectIdString
agentIdString
docVersionIdString-
sessionIdString-
queryString
responseString
sourceDocsString[]
responseTimeMsInt
helpfulBoolean-
escalatedBoolean-
messagesCountInt
sessionEndedDateTime-
ipHashString-
createdAtDateTime

Diagram

mermaid
erDiagram
    ChatInteraction {
        id String [PK]
        projectId String
        agentId String
        docVersionId String?
        sessionId String?
        query String
        response String
        sourceDocs String[]
        responseTimeMs Int
        helpful Boolean?
        escalated Boolean?
        messagesCount Int
        sessionEnded DateTime?
        ipHash String?
        createdAt DateTime
    }
    ChatInteraction ||--|| Project : ""
    ChatInteraction ||--|| SupportAgentConfig : ""
    ChatInteraction ||--|| ChatSession : ""

Relationships

  • HAS_ONE → Project
  • HAS_ONE → SupportAgentConfig
  • HAS_ONE → ChatSession

Was this page helpful?

Download as PDF