# ExportHistory

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

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `projectId` | `String` | ✓ |  |
| `format` | `ReportFormat` | ✓ |  |
| `period` | `Int` | ✓ |  |
| `sections` | `String[]` | ✓ |  |
| `filename` | `String` | ✓ |  |
| `fileSize` | `Int` | ✓ |  |
| `scheduledReportId` | `String` | - |  |
| `createdById` | `String` | - |  |
| `createdAt` | `DateTime` | ✓ |  |

## Diagram

```mermaid
erDiagram
    ExportHistory {
        id String [PK]
        projectId String
        format ReportFormat
        period Int
        sections String[]
        filename String
        fileSize Int
        scheduledReportId String?
        createdById String?
        createdAt DateTime
    }
    ExportHistory ||--|| Project : ""
```

## Relationships

- HAS_ONE → `Project`
