# ScreenshotVersion

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

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `screenshotId` | `String` | ✓ |  |
| `version` | `Int` | ✓ |  |
| `assetId` | `String` | ✓ |  |
| `changeNote` | `String` | - |  |
| `changeScore` | `Float` | - |  |
| `commitSha` | `String` | - |  |
| `branch` | `String` | - |  |
| `createdBy` | `String` | ✓ |  |
| `createdAt` | `DateTime` | ✓ |  |

## Diagram

```mermaid
erDiagram
    ScreenshotVersion {
        id String [PK]
        screenshotId String
        version Int
        assetId String
        changeNote String?
        changeScore Float?
        commitSha String?
        branch String?
        createdBy String
        createdAt DateTime
    }
    ScreenshotVersion ||--|| Screenshot : ""
    ScreenshotVersion ||--|| Asset : ""
    ScreenshotVersion ||--|| User : ""
```

## Relationships

- HAS_ONE → `Screenshot`
- HAS_ONE → `Asset`
- HAS_ONE → `User`

## Referenced By

- `User` (HAS_ONE)
