Kind: Database Model
Source: atloria-monorepo/libs/database/prisma/schema.prisma
Fields
| Field | Type | Required | Key |
|---|---|---|---|
id | String | ✓ | PK |
sessionId | String | ✓ | unique |
projectId | String | ✓ | |
agentId | String | ✓ | |
language | String | ✓ | |
startedAt | DateTime | ✓ | |
endedAt | DateTime | - | |
interactions | ChatInteraction[] | ✓ | |
messages | ChatMessage[] | ✓ |
Diagram
mermaiderDiagram ChatSession { id String [PK] sessionId String [UNIQUE] projectId String agentId String language String startedAt DateTime endedAt DateTime? interactions ChatInteraction[] messages ChatMessage[] } ChatSession ||--|| Project : "" ChatSession ||--|| SupportAgentConfig : ""
Relationships
- HAS_ONE →
Project - HAS_ONE →
SupportAgentConfig
Referenced By
ChatInteraction(HAS_ONE)ChatMessage(HAS_ONE)
Was this page helpful?