# ProjectDocsSync

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

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `projectId` | `String` | ✓ | unique |
| `provider` | `String` | ✓ |  |
| `repoFullName` | `String` | ✓ |  |
| `branch` | `String` | ✓ |  |
| `pathPrefix` | `String` | ✓ |  |
| `direction` | `String` | ✓ |  |
| `status` | `String` | ✓ |  |
| `error` | `String` | - |  |
| `lastMirroredSha` | `String` | - |  |
| `lastSourceSha` | `String` | - |  |
| `lastIngestedSha` | `String` | - |  |
| `lastMirroredAt` | `DateTime` | - |  |
| `lastIngestedAt` | `DateTime` | - |  |
| `forcePushRecoveredAt` | `DateTime` | - |  |
| `createdById` | `String` | - |  |
| `createdAt` | `DateTime` | ✓ |  |
| `updatedAt` | `DateTime` | ✓ |  |

## Diagram

```mermaid
erDiagram
    ProjectDocsSync {
        id String [PK]
        projectId String [UNIQUE]
        provider String
        repoFullName String
        branch String
        pathPrefix String
        direction String
        status String
        error String?
        lastMirroredSha String?
        lastSourceSha String?
        lastIngestedSha String?
        lastMirroredAt DateTime?
        lastIngestedAt DateTime?
        forcePushRecoveredAt DateTime?
        createdById String?
        createdAt DateTime
        updatedAt DateTime
    }
    ProjectDocsSync ||--|| Project : ""
```

## Relationships

- HAS_ONE → `Project`
