# com.professorbutts.sports.badge

> Recommended key: the award's rkey, so a fan has one badge per award.

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

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

Type: record · key any

### Properties

- `award` (ref, required): The com.professorbutts.sports.award record. The CID pins the version the fan accepted; readers use the current version for status.
  - Reference: `com.atproto.repo.strongRef`
- `createdAt` (string · datetime, required)
- `pinned` (boolean): Show among the fan's featured badges.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Recommended key: the award's rkey, so a fan has one badge per award.",
      "key": "any",
      "record": {
        "properties": {
          "award": {
            "description": "The com.professorbutts.sports.award record. The CID pins the version the fan accepted; readers use the current version for status.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "pinned": {
            "description": "Show among the fan's featured badges.",
            "type": "boolean"
          }
        },
        "required": [
          "award",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A fan's choice to show an award on their profile. Lives in the fan's own repo and points at the award in the issuer's repo. Readers verify it: the award must exist in the contest publisher's repo, its subject must be this repo's DID, and it must not be revoked. Copying a badge to another repo fails that check.",
  "id": "com.professorbutts.sports.badge",
  "lexicon": 1
}
```
