# CodeAnalysisJob

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

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `projectId` | `String` | ✓ |  |
| `repoUrl` | `String` | ✓ |  |
| `branch` | `String` | ✓ |  |
| `folderPath` | `String` | - |  |
| `status` | `String` | ✓ |  |
| `progress` | `Int` | ✓ |  |
| `documentationId` | `String` | - |  |
| `error` | `String` | - |  |
| `errorStack` | `String` | - |  |
| `framework` | `String` | - |  |
| `frameworkVersion` | `String` | - |  |
| `routesFound` | `Int` | - |  |
| `componentsFound` | `Int` | - |  |
| `modalsFound` | `Int` | - |  |
| `totalTokensUsed` | `Int` | - |  |
| `totalCost` | `Int` | - |  |
| `organizationId` | `String` | ✓ |  |
| `triggeredBy` | `String` | ✓ |  |
| `createdAt` | `DateTime` | ✓ |  |
| `updatedAt` | `DateTime` | ✓ |  |
| `completedAt` | `DateTime` | - |  |

## Diagram

```mermaid
erDiagram
    CodeAnalysisJob {
        id String [PK]
        projectId String
        repoUrl String
        branch String
        folderPath String?
        status String
        progress Int
        documentationId String?
        error String?
        errorStack String?
        framework String?
        frameworkVersion String?
        routesFound Int?
        componentsFound Int?
        modalsFound Int?
        totalTokensUsed Int?
        totalCost Int?
        organizationId String
        triggeredBy String
        createdAt DateTime
        updatedAt DateTime
        completedAt DateTime?
    }
```
