# games.gamesgamesgamesgames.actor.stats

> Published by [gamesgamesgamesgames.games](https://lexicon.garden/identity/did:web:gamesgamesgamesgames.games)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.actor.stats)
- [Documentation](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.actor.stats/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.actor.stats/examples)

## Definitions

### `games.gamesgamesgamesgames.actor.stats`

**Type**: `record`

Statistics for a game from a specific platform. May include attestation signatures proving the data was verified by an external service.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `game` | `ref` → `games.gamesgamesgamesgames.actor.game#gameRef` | Yes | Reference to the game record. |
| `source` | `string` | Yes | The platform that provided this statistics data. |
| `playtime` | `integer` | No | Total playtime recorded in minutes. |
| `createdAt` | `string` (datetime) | Yes |  |
| `lastPlayed` | `string` (datetime) | No | When the game was last played according to this source. |
| `signatures` | `array` | No | Attestation signatures proving stats were verified. Can be inline signatures or strongRefs to remote proof records. |
| `achievements` | `object` | No | Achievement progress from this source. |

## Raw Schema

```json
{
  "id": "games.gamesgamesgamesgames.actor.stats",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "game",
          "source",
          "createdAt"
        ],
        "properties": {
          "game": {
            "ref": "games.gamesgamesgamesgames.actor.game#gameRef",
            "type": "ref",
            "description": "Reference to the game record."
          },
          "source": {
            "type": "string",
            "description": "The platform that provided this statistics data.",
            "knownValues": [
              "steam",
              "gog",
              "epic",
              "playstation",
              "xbox",
              "nintendo",
              "itchio",
              "humble"
            ]
          },
          "playtime": {
            "type": "integer",
            "minimum": 0,
            "description": "Total playtime recorded in minutes."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "lastPlayed": {
            "type": "string",
            "format": "datetime",
            "description": "When the game was last played according to this source."
          },
          "signatures": {
            "type": "array",
            "items": {
              "refs": [
                "games.gamesgamesgamesgames.defs#signature",
                "com.atproto.repo.strongRef"
              ],
              "type": "union"
            },
            "description": "Attestation signatures proving stats were verified. Can be inline signatures or strongRefs to remote proof records."
          },
          "achievements": {
            "type": "object",
            "properties": {
              "total": {
                "type": "integer",
                "minimum": 0
              },
              "unlocked": {
                "type": "integer",
                "minimum": 0
              }
            },
            "description": "Achievement progress from this source."
          }
        }
      },
      "description": "Statistics for a game from a specific platform. May include attestation signatures proving the data was verified by an external service."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
