# com.professorbutts.sports.rating

> A fan's rating of a finished 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 rating again replaces it. Older records may use a TID key. Together they make a Letterboxd-style game log.

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

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

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `review` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `rootingFor` (string · at-uri): Team or person record the fan was pulling for, if any.
- `spoilers` (boolean): True if the review gives away the result; viewers hide it until opened.
- `stars` (integer, required): Half stars: 1 = half a star, 10 = five stars.
  - Constraints: minimum: 1, maximum: 10
- `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.
- `watched` (string)
  - Constraints: maxLength: 64, knownValues: live | replay | highlights | venue

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "review": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "rootingFor": {
            "description": "Team or person record the fan was pulling for, if any.",
            "format": "at-uri",
            "type": "string"
          },
          "spoilers": {
            "description": "True if the review gives away the result; viewers hide it until opened.",
            "type": "boolean"
          },
          "stars": {
            "description": "Half stars: 1 = half a star, 10 = five stars.",
            "maximum": 10,
            "minimum": 1,
            "type": "integer"
          },
          "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"
          },
          "watched": {
            "knownValues": [
              "live",
              "replay",
              "highlights",
              "venue"
            ],
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "subject",
          "stars",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A fan's rating of a finished 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 rating again replaces it. Older records may use a TID key. Together they make a Letterboxd-style game log.",
  "id": "com.professorbutts.sports.rating",
  "lexicon": 1
}
```
