# AchievementAssignment model

How far a user is with an achievement. Anyone else's has only the achievement and the tier reached: the counts and the times are only on your own.

## Fields

| Field | Type | Present | Notes |
|---|---|---|---|
| `id` | `integer` |  |  |
| `userId` | `integer` |  |  |
| `achievementId` | `integer` |  |  |
| `currentValue` | `integer` | optional | Only on your own assignments; left out of anyone else's. |
| `bestValue` | `integer` | optional | Only on your own assignments; left out of anyone else's. |
| `currentTier` | `integer` |  |  |
| `createdAt` | `date-time` | optional | Only on your own assignments; left out of anyone else's. |
| `updatedAt` | `date-time` | optional | Only on your own assignments; left out of anyone else's. |
| `unlockedAt` | `date-time \| null` | optional | Only on your own assignments; left out of anyone else's. |

## Returned by

The endpoints whose `data` holds an AchievementAssignment as it is, and where.

- [`GET /users/:userId/achievement-assignments`](https://hematite.gg/docs/developers/reference/users#get-users-userid-achievement-assignments), in `data[]`

## Example

```json
{
  "id": 1,
  "userId": 1,
  "achievementId": 1,
  "currentValue": 0,
  "bestValue": 0,
  "currentTier": 0,
  "createdAt": "2026-11-10T18:24:00.000Z",
  "updatedAt": "2026-11-10T18:24:00.000Z",
  "unlockedAt": null
}
```
