# DocFeedback

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

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `projectId` | `String` | ✓ |  |
| `documentId` | `String` | - |  |
| `documentSlug` | `String` | ✓ |  |
| `sessionId` | `String` | ✓ |  |
| `rating` | `FeedbackRating` | ✓ |  |
| `comment` | `String` | - |  |
| `userAgent` | `String` | - |  |
| `country` | `String` | - |  |
| `createdAt` | `DateTime` | ✓ |  |

## Diagram

```mermaid
erDiagram
    DocFeedback {
        id String [PK]
        projectId String
        documentId String?
        documentSlug String
        sessionId String
        rating FeedbackRating
        comment String?
        userAgent String?
        country String?
        createdAt DateTime
    }
    DocFeedback ||--|| Project : ""
```

## Relationships

- HAS_ONE → `Project`
