# app.atbuddy.stats

> Published by [atbuddy.app](https://lexicon.garden/identity/did:plc:cjmftryiihdz5jafq77n6b2u)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cjmftryiihdz5jafq77n6b2u/app.atbuddy.stats)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cjmftryiihdz5jafq77n6b2u/app.atbuddy.stats/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cjmftryiihdz5jafq77n6b2u/app.atbuddy.stats/examples)

## Definitions

### `app.atbuddy.stats`

**Type**: `record`

Mutable buddy stats. Fixed rkey 'self'.

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `xp` | `integer` | Yes | Cumulative experience points. |
| `mood` | `integer` | Yes | Current mood (0-100). |
| `level` | `integer` | Yes | Current level. |
| `energy` | `integer` | Yes | Current energy (0-100). |
| `lastFedAt` | `string` (datetime) | No |  |
| `updatedAt` | `string` (datetime) | Yes |  |
| `lastPettedAt` | `string` (datetime) | No |  |

## Raw Schema

```json
{
  "id": "app.atbuddy.stats",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "mood",
          "energy",
          "xp",
          "level",
          "updatedAt"
        ],
        "properties": {
          "xp": {
            "type": "integer",
            "minimum": 0,
            "description": "Cumulative experience points."
          },
          "mood": {
            "type": "integer",
            "maximum": 100,
            "minimum": 0,
            "description": "Current mood (0-100)."
          },
          "level": {
            "type": "integer",
            "minimum": 1,
            "description": "Current level."
          },
          "energy": {
            "type": "integer",
            "maximum": 100,
            "minimum": 0,
            "description": "Current energy (0-100)."
          },
          "lastFedAt": {
            "type": "string",
            "format": "datetime"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          },
          "lastPettedAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "Mutable buddy stats. Fixed rkey 'self'."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
