# DocsOutbox

**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#L1885)

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `projectId` | `String` | ✓ |  |
| `eventType` | `String` | ✓ |  |
| `payload` | `Json` | ✓ |  |
| `attempts` | `Int` | ✓ |  |
| `processedAt` | `DateTime` | - |  |
| `createdAt` | `DateTime` | ✓ |  |

## Diagram

```mermaid
erDiagram
    DocsOutbox {
        id String [PK]
        projectId String
        eventType String
        payload Json
        attempts Int
        processedAt DateTime?
        createdAt DateTime
    }
    DocsOutbox ||--|| Project : ""
```

## Relationships

- HAS_ONE → `Project`
