at.skeetfighter.best

One per player (key self): their all-time best and this week's best, each pointing at the at.skeetfighter.score record it came from.

Repository @skeetfighter.at did:plc:xa2u22z7m4qgaaxxy3kjyqs4 namespace authority
Details · record, key literal:self
Kindrecord
Record keyliteral:self
Authorityskeetfighter.at
Commit rev3n32nsh6tc62d
Indexed
cid bafyreibpmt7aazlfju7z2636ienck4aeiibjuj3t4lg4cnwcs4bpoz75hi

Checks

Valid
  • unlimited-string defs.entry.properties.outcomeNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.weekEntry.properties.outcomeNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "properties": {
        "achievedAt": {
          "format": "datetime",
          "type": "string"
        },
        "cleared": {
          "description": "Whether the run beat the final boss.",
          "type": "boolean"
        },
        "fighter": {
          "description": "The account whose fighter the player used.",
          "format": "did",
          "type": "string"
        },
        "outcome": {
          "knownValues": [
            "cleared",
            "gameOver",
            "continued",
            "quit"
          ],
          "type": "string"
        },
        "ref": {
          "description": "The at.skeetfighter.score record this entry came from.",
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "score": {
          "maximum": 99999999,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "score",
        "outcome",
        "fighter",
        "cleared",
        "achievedAt",
        "ref"
      ],
      "type": "object"
    },
    "main": {
      "description": "One per player (key self): their all-time best and this week's best, each pointing at the at.skeetfighter.score record it came from.",
      "key": "literal:self",
      "record": {
        "properties": {
          "allTime": {
            "description": "The player's best score ever.",
            "ref": "#entry",
            "type": "ref"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "week": {
            "description": "The player's best score in the week starting at weekStart.",
            "ref": "#weekEntry",
            "type": "ref"
          }
        },
        "required": [
          "allTime",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "weekEntry": {
      "properties": {
        "achievedAt": {
          "format": "datetime",
          "type": "string"
        },
        "cleared": {
          "type": "boolean"
        },
        "fighter": {
          "format": "did",
          "type": "string"
        },
        "outcome": {
          "knownValues": [
            "cleared",
            "gameOver",
            "continued",
            "quit"
          ],
          "type": "string"
        },
        "ref": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "score": {
          "maximum": 99999999,
          "minimum": 0,
          "type": "integer"
        },
        "weekStart": {
          "description": "The Monday 00:00 UTC that starts the week.",
          "format": "datetime",
          "type": "string"
        }
      },
      "required": [
        "score",
        "outcome",
        "fighter",
        "cleared",
        "achievedAt",
        "ref",
        "weekStart"
      ],
      "type": "object"
    }
  },
  "description": "A Skeet Fighter II player's best scores, kept so a scoreboard can read one record per player.",
  "id": "at.skeetfighter.best",
  "lexicon": 1
}