# com.derakkuma.play

> Published by [derakkuma.com](https://lexicon.garden/identity/did:plc:4uoc2as443j2fg2f6xfsogqs)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4uoc2as443j2fg2f6xfsogqs/com.derakkuma.play)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4uoc2as443j2fg2f6xfsogqs/com.derakkuma.play/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4uoc2as443j2fg2f6xfsogqs/com.derakkuma.play/examples)

## Definitions

### `com.derakkuma.play`

**Type**: `record`

A single maimai DX play log entry linked to a canonical Derakkuma chart

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `fast` | `integer` | No |  |
| `late` | `integer` | No |  |
| `chart` | `ref` → `com.atproto.repo.strongRef` | Yes |  |
| `notes` | `ref` → `#noteBreakdown` | No |  |
| `rating` | `integer` | No |  |
| `dxScore` | `ref` → `#dxScore` | No |  |
| `maxSync` | `ref` → `#achievedTotal` | No |  |
| `fcStatus` | `string` | No |  |
| `maxCombo` | `ref` → `#achievedTotal` | No |  |
| `playedAt` | `string` | No |  |
| `trackNum` | `integer` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `dedupeKey` | `string` | No |  |
| `scoreRank` | `string` | No |  |
| `syncStatus` | `string` | No |  |
| `achievement` | `string` | Yes |  |
| `isNewRecord` | `boolean` | No |  |
| `ratingDelta` | `integer` | No |  |
| `matchingRank` | `integer` | No |  |

### `com.derakkuma.play#dxScore`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `total` | `integer` | Yes |  |
| `achieved` | `integer` | Yes |  |

### `com.derakkuma.play#achievedTotal`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `total` | `integer` | Yes |  |
| `achieved` | `integer` | Yes |  |

### `com.derakkuma.play#noteBreakdown`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `tap` | `ref` → `#noteJudgement` | No |  |
| `hold` | `ref` → `#noteJudgement` | No |  |
| `break` | `ref` → `#noteJudgement` | No |  |
| `slide` | `ref` → `#noteJudgement` | No |  |
| `touch` | `ref` → `#noteJudgement` | No |  |

### `com.derakkuma.play#noteJudgement`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `good` | `integer` | Yes |  |
| `miss` | `integer` | Yes |  |
| `great` | `integer` | Yes |  |
| `perfect` | `integer` | Yes |  |
| `criticalPerfect` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "com.derakkuma.play",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "chart",
          "achievement",
          "createdAt"
        ],
        "properties": {
          "fast": {
            "type": "integer",
            "minimum": 0
          },
          "late": {
            "type": "integer",
            "minimum": 0
          },
          "chart": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "notes": {
            "ref": "#noteBreakdown",
            "type": "ref"
          },
          "rating": {
            "type": "integer",
            "minimum": 0
          },
          "dxScore": {
            "ref": "#dxScore",
            "type": "ref"
          },
          "maxSync": {
            "ref": "#achievedTotal",
            "type": "ref"
          },
          "fcStatus": {
            "type": "string",
            "maxLength": 16
          },
          "maxCombo": {
            "ref": "#achievedTotal",
            "type": "ref"
          },
          "playedAt": {
            "type": "string",
            "maxLength": 32
          },
          "trackNum": {
            "type": "integer",
            "minimum": 1
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "dedupeKey": {
            "type": "string",
            "maxLength": 512
          },
          "scoreRank": {
            "type": "string",
            "maxLength": 8
          },
          "syncStatus": {
            "type": "string",
            "maxLength": 16
          },
          "achievement": {
            "type": "string",
            "maxLength": 8
          },
          "isNewRecord": {
            "type": "boolean"
          },
          "ratingDelta": {
            "type": "integer"
          },
          "matchingRank": {
            "type": "integer",
            "minimum": 1
          }
        }
      },
      "description": "A single maimai DX play log entry linked to a canonical Derakkuma chart"
    },
    "dxScore": {
      "type": "object",
      "required": [
        "achieved",
        "total"
      ],
      "properties": {
        "total": {
          "type": "integer",
          "minimum": 0
        },
        "achieved": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "achievedTotal": {
      "type": "object",
      "required": [
        "achieved",
        "total"
      ],
      "properties": {
        "total": {
          "type": "integer",
          "minimum": 0
        },
        "achieved": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "noteBreakdown": {
      "type": "object",
      "properties": {
        "tap": {
          "ref": "#noteJudgement",
          "type": "ref"
        },
        "hold": {
          "ref": "#noteJudgement",
          "type": "ref"
        },
        "break": {
          "ref": "#noteJudgement",
          "type": "ref"
        },
        "slide": {
          "ref": "#noteJudgement",
          "type": "ref"
        },
        "touch": {
          "ref": "#noteJudgement",
          "type": "ref"
        }
      }
    },
    "noteJudgement": {
      "type": "object",
      "required": [
        "criticalPerfect",
        "perfect",
        "great",
        "good",
        "miss"
      ],
      "properties": {
        "good": {
          "type": "integer",
          "minimum": 0
        },
        "miss": {
          "type": "integer",
          "minimum": 0
        },
        "great": {
          "type": "integer",
          "minimum": 0
        },
        "perfect": {
          "type": "integer",
          "minimum": 0
        },
        "criticalPerfect": {
          "type": "integer",
          "minimum": 0
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
