# gg.infinitetavern.adventurer.grimoire

> Published by [infinitetavern.gg](https://lexicon.garden/identity/did:plc:vxwgn77hp5ikvbiggm5es3rv)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.adventurer.grimoire)
- [Documentation](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.adventurer.grimoire/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.adventurer.grimoire/examples)

## Definitions

### `gg.infinitetavern.adventurer.grimoire`

**Type**: `record`

An adventurer's grimoire — a lifetime record of battles fought, victories won, and heroes commanded. One record per adventurer, stored at rkey 'self'.

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `totalWins` | `integer` | Yes | Total number of championship victories (1st-place finishes). |
| `gamesPlayed` | `integer` | Yes | Total tavern battles fought across all seasons. |
| `lastHeroKey` | `string` | Yes | Hero commanded in the most recent battle. |
| `lastPlayedAt` | `string` (datetime) | Yes | ISO 8601 UTC timestamp of the most recent battle. |
| `bestPlacement` | `integer` | Yes | Finest standing ever achieved (1 = champion). |
| `lastPlacement` | `integer` | Yes | Standing in the most recent battle. |

## Raw Schema

```json
{
  "id": "gg.infinitetavern.adventurer.grimoire",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "gamesPlayed",
          "bestPlacement",
          "totalWins",
          "lastPlacement",
          "lastHeroKey",
          "lastPlayedAt"
        ],
        "properties": {
          "totalWins": {
            "type": "integer",
            "minimum": 0,
            "description": "Total number of championship victories (1st-place finishes)."
          },
          "gamesPlayed": {
            "type": "integer",
            "minimum": 1,
            "description": "Total tavern battles fought across all seasons."
          },
          "lastHeroKey": {
            "type": "string",
            "description": "Hero commanded in the most recent battle."
          },
          "lastPlayedAt": {
            "type": "string",
            "format": "datetime",
            "description": "ISO 8601 UTC timestamp of the most recent battle."
          },
          "bestPlacement": {
            "type": "integer",
            "maximum": 8,
            "minimum": 1,
            "description": "Finest standing ever achieved (1 = champion)."
          },
          "lastPlacement": {
            "type": "integer",
            "maximum": 8,
            "minimum": 1,
            "description": "Standing in the most recent battle."
          }
        }
      },
      "description": "An adventurer's grimoire — a lifetime record of battles fought, victories won, and heroes commanded. One record per adventurer, stored at rkey 'self'."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
