# DocsShareLink

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

## Fields

| Field | Type | Required | Key |
|---|---|---|---|
| `id` | `String` | ✓ | PK |
| `projectId` | `String` | ✓ |  |
| `tokenHash` | `String` | ✓ | unique |
| `label` | `String` | - |  |
| `expiresAt` | `DateTime` | - |  |
| `maxUses` | `Int` | - |  |
| `useCount` | `Int` | ✓ |  |
| `revokedAt` | `DateTime` | - |  |
| `createdById` | `String` | ✓ |  |
| `createdAt` | `DateTime` | ✓ |  |

## Diagram

```mermaid
erDiagram
    DocsShareLink {
        id String [PK]
        projectId String
        tokenHash String [UNIQUE]
        label String?
        expiresAt DateTime?
        maxUses Int?
        useCount Int
        revokedAt DateTime?
        createdById String
        createdAt DateTime
    }
    DocsShareLink ||--|| Project : ""
```

## Relationships

- HAS_ONE → `Project`
