# com.professorbutts.sports.checkin

> A fan saying they're watching (or went to) a game or event, kept in the fan's own repo. One per fan per event: the record key is the subject's record key, so writing again replaces it (update in place to change who they're rooting for). Older records may use a TID key.

- 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.checkin)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:x6njyeyi47bqs2kueuv3mrg5/com.professorbutts.sports.checkin/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:x6njyeyi47bqs2kueuv3mrg5/com.professorbutts.sports.checkin/analytics)

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

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `note` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `place` (string): Free text, e.g. a bar's name. Shown publicly, so keep it general.
  - Constraints: maxLength: 640, maxGraphemes: 64
- `rootingFor` (string · at-uri): A com.professorbutts.sports.team (or person) record. Leave out for neutral.
- `subject` (string · at-uri, required): The com.professorbutts.sports.game or leaderboard record. A uri, not a strongRef, because game records are rewritten in place.
- `subjectCid` (string · cid): Optional: the version the fan saw, for display/audit only.
- `where` (string): venue = at the game in person; counts toward games attended.
  - Constraints: maxLength: 64, knownValues: home | venue | bar | online | other

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "note": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "place": {
            "description": "Free text, e.g. a bar's name. Shown publicly, so keep it general.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "rootingFor": {
            "description": "A com.professorbutts.sports.team (or person) record. Leave out for neutral.",
            "format": "at-uri",
            "type": "string"
          },
          "subject": {
            "description": "The com.professorbutts.sports.game or leaderboard record. A uri, not a strongRef, because game records are rewritten in place.",
            "format": "at-uri",
            "type": "string"
          },
          "subjectCid": {
            "description": "Optional: the version the fan saw, for display/audit only.",
            "format": "cid",
            "type": "string"
          },
          "where": {
            "description": "venue = at the game in person; counts toward games attended.",
            "knownValues": [
              "home",
              "venue",
              "bar",
              "online",
              "other"
            ],
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "subject",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A fan saying they're watching (or went to) a game or event, kept in the fan's own repo. One per fan per event: the record key is the subject's record key, so writing again replaces it (update in place to change who they're rooting for). Older records may use a TID key.",
  "id": "com.professorbutts.sports.checkin",
  "lexicon": 1
}
```
