{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "dxScore": {
      "properties": {
        "achieved": {
          "minimum": 0,
          "type": "integer"
        },
        "total": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "achieved",
        "total"
      ],
      "type": "object"
    },
    "main": {
      "description": "Personal best score for a canonical Derakkuma chart",
      "key": "any",
      "record": {
        "properties": {
          "achievement": {
            "maxLength": 8,
            "type": "string"
          },
          "chart": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "dxScore": {
            "ref": "#dxScore",
            "type": "ref"
          },
          "dxStar": {
            "maximum": 5,
            "minimum": 1,
            "type": "integer"
          },
          "fcStatus": {
            "maxLength": 16,
            "type": "string"
          },
          "lastPlayed": {
            "format": "datetime",
            "type": "string"
          },
          "playCount": {
            "minimum": 0,
            "type": "integer"
          },
          "scoreRank": {
            "maxLength": 8,
            "type": "string"
          },
          "syncStatus": {
            "maxLength": 16,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "chart",
          "achievement",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.derakkuma.best",
  "lexicon": 1
}
