# TechChatMessage

**Kind:** Database Model

**Source:** [`atloria-monorepo/libs/database/prisma/schema.prisma`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/database/prisma/schema.prisma#L2990)

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `sessionId` | `String` | ✓ |  |
| `role` | `String` | ✓ |  |
| `content` | `String` | ✓ |  |
| `citations` | `Json` | - |  |
| `feedback` | `String` | - |  |
| `createdAt` | `DateTime` | ✓ |  |

## Diagram

```mermaid
erDiagram
    TechChatMessage {
        id String [PK]
        sessionId String
        role String
        content String
        citations Json?
        feedback String?
        createdAt DateTime
    }
    TechChatMessage ||--|| TechChatSession : ""
```

## Relationships

- HAS_ONE → `TechChatSession`
