# PmeGeneratedAsset

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

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `jobId` | `String` | ✓ |  |
| `pageId` | `String` | - |  |
| `projectId` | `String` | ✓ |  |
| `assetType` | `String` | ✓ |  |
| `sectionType` | `String` | - |  |
| `prompt` | `String` | - |  |
| `url` | `String` | ✓ |  |
| `cdnUrl` | `String` | - |  |
| `width` | `Int` | ✓ |  |
| `height` | `Int` | ✓ |  |
| `format` | `String` | ✓ |  |
| `sizeBytes` | `Int` | ✓ |  |
| `metadata` | `Json` | - |  |
| `createdAt` | `DateTime` | ✓ |  |
| `updatedAt` | `DateTime` | ✓ |  |

## Diagram

```mermaid
erDiagram
    PmeGeneratedAsset {
        id String [PK]
        jobId String
        pageId String?
        projectId String
        assetType String
        sectionType String?
        prompt String?
        url String
        cdnUrl String?
        width Int
        height Int
        format String
        sizeBytes Int
        metadata Json?
        createdAt DateTime
        updatedAt DateTime
    }
    PmeGeneratedAsset ||--|| PmeGenerationJob : ""
    PmeGeneratedAsset ||--|| PmeGeneratedPage : ""
    PmeGeneratedAsset ||--|| Project : ""
```

## Relationships

- HAS_ONE → `PmeGenerationJob`
- HAS_ONE → `PmeGeneratedPage`
- HAS_ONE → `Project`
