# com.professorbutts.sports.recap

> Record key is the subject record's key, e.g. 'nfl-401772936', so a game's recap is one getRecord away.

- Kind: record
- Record key: any
- Authority: sports.professorbutts.com
- Lexicon: 1
- Published by [professorbutts.com](https://lexicon.garden/identity/did:plc:x6njyeyi47bqs2kueuv3mrg5), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:x6njyeyi47bqs2kueuv3mrg5/com.professorbutts.sports.recap)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:x6njyeyi47bqs2kueuv3mrg5/com.professorbutts.sports.recap/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:x6njyeyi47bqs2kueuv3mrg5/com.professorbutts.sports.recap/analytics)

## Record (`com.professorbutts.sports.recap`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `document` (string · at-uri, required): The site.standard.document record that holds the recap. A uri, not a strongRef, because the document can be corrected in place.
- `documentCid` (string · cid): Optional: the document version this was written for.
- `league` (string): Key of the com.professorbutts.sports.league record, lowercase, e.g. 'nfl'.
  - Constraints: maxLength: 32
- `people` (array): com.professorbutts.sports.person records featured, e.g. a race winner.
  - Constraints: maxLength: 8
  - `items` (string · at-uri)
- `subject` (string · at-uri, required): The com.professorbutts.sports.game or com.professorbutts.sports.leaderboard record the recap covers.
- `subjectCid` (string · cid): Version of the subject record the recap was written from. Game records are updated in place.
- `teams` (array): com.professorbutts.sports.team records involved.
  - Constraints: maxLength: 4
  - `items` (string · at-uri)
- `updatedAt` (string · datetime)
- `url` (string · uri): The recap's public web page.
  - Constraints: maxLength: 512

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Record key is the subject record's key, e.g. 'nfl-401772936', so a game's recap is one getRecord away.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "document": {
            "description": "The site.standard.document record that holds the recap. A uri, not a strongRef, because the document can be corrected in place.",
            "format": "at-uri",
            "type": "string"
          },
          "documentCid": {
            "description": "Optional: the document version this was written for.",
            "format": "cid",
            "type": "string"
          },
          "league": {
            "description": "Key of the com.professorbutts.sports.league record, lowercase, e.g. 'nfl'.",
            "maxLength": 32,
            "type": "string"
          },
          "people": {
            "description": "com.professorbutts.sports.person records featured, e.g. a race winner.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 8,
            "type": "array"
          },
          "subject": {
            "description": "The com.professorbutts.sports.game or com.professorbutts.sports.leaderboard record the recap covers.",
            "format": "at-uri",
            "type": "string"
          },
          "subjectCid": {
            "description": "Version of the subject record the recap was written from. Game records are updated in place.",
            "format": "cid",
            "type": "string"
          },
          "teams": {
            "description": "com.professorbutts.sports.team records involved.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 4,
            "type": "array"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "url": {
            "description": "The recap's public web page.",
            "format": "uri",
            "maxLength": 512,
            "type": "string"
          }
        },
        "required": [
          "document",
          "subject",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Links a recap article (a site.standard.document record) to the game, race or tournament it covers, so indexers can join recaps to the sports graph without reading the article. Same pattern as a domain sidecar next to a standard.site document. The game or leaderboard record's own recap field points the other way.",
  "id": "com.professorbutts.sports.recap",
  "lexicon": 1
}
```
