# DocVersionApproval

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

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `docVersionId` | `String` | ✓ |  |
| `status` | `ApprovalStatus` | ✓ |  |
| `reviewerId` | `String` | - |  |
| `reviewerEmail` | `String` | - |  |
| `reviewComment` | `String` | - |  |
| `requestedAt` | `DateTime` | ✓ |  |
| `requestedById` | `String` | ✓ |  |
| `reviewedAt` | `DateTime` | - |  |

## Diagram

```mermaid
erDiagram
    DocVersionApproval {
        id String [PK]
        docVersionId String
        status ApprovalStatus
        reviewerId String?
        reviewerEmail String?
        reviewComment String?
        requestedAt DateTime
        requestedById String
        reviewedAt DateTime?
    }
    DocVersionApproval ||--|| DocVersion : ""
```

## Relationships

- HAS_ONE → `DocVersion`
