Kind: Database Model
Source: atloria-monorepo/libs/database/prisma/schema.prisma
Fields
| Field | Type | Required | Key |
|---|---|---|---|
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 | ✓ |
Diagram
mermaiderDiagram 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?