# com.professorbutts.sports.team

> rkey is league-abbreviation lowercase, e.g. nfl-cin, cfb-cin, f1-mclaren

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

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

Type: record · key any

### Properties

- `abbreviation` (string)
  - Constraints: maxLength: 8
- `ageGroup` (string): 'senior' (or left out) is the main adult side. Age-limited sides use 'under-NN', e.g. 'under-20'. Not golf's over-50 'senior' tours.
  - Constraints: maxLength: 32, knownValues: senior | under-23 | under-21 | under-20 | under-19 | under-18
- `aliases` (array)
  - Constraints: maxLength: 16
  - `items` (string)
    - Constraints: maxLength: 64
- `color` (string)
  - Constraints: maxLength: 7
- `conference` (string)
  - Constraints: maxLength: 64
- `discipline` (string): Adaptive variant, e.g. 'wheelchair'. Leave out (or 'standard') for the standard game. Formats such as rugby sevens are told apart by their league, not here.
  - Constraints: maxLength: 32, knownValues: standard | wheelchair | intellectual-disability | physical-disability
- `division` (string)
  - Constraints: maxLength: 64
- `externalIds` (array)
  - Constraints: maxLength: 16
  - `items` (ref)
    - Reference: `com.professorbutts.sports.defs#externalId`
- `gender` (string): Men's, women's or mixed side, same values as league.gender, so a reader doesn't have to look up the league.
  - Constraints: maxLength: 16, knownValues: men | women | mixed
- `league` (string, required)
  - Constraints: maxLength: 32
- `location` (string)
  - Constraints: maxLength: 64
- `logoUrl` (string · uri)
  - Constraints: maxLength: 512
- `memberships` (array): League level, conference and division by season, newest first. conference and division above stay the current ones.
  - Constraints: maxLength: 32
  - `items` (ref)
    - Reference: `com.professorbutts.sports.defs#membership`
- `name` (string, required)
  - Constraints: maxLength: 128
- `officialAccounts` (array): The team's own Bluesky accounts, with evidence. profile, above, holds the primary account's DID.
  - Constraints: maxLength: 8
  - `items` (ref)
    - Reference: `com.professorbutts.sports.defs#officialAccount`
- `parent` (string · at-uri)
- `profile` (string · did)
- `secondaryColor` (string)
  - Constraints: maxLength: 7
- `shortName` (string)
  - Constraints: maxLength: 64
- `source` (string)
  - Constraints: maxLength: 64
- `sport` (string, required)
  - Constraints: maxLength: 64
- `status` (string): Leave out (or 'active') for a current team. 'inactive': not playing for now but expected back, e.g. a program on hiatus. 'retired': gone for good. 'superseded': another record replaces this one; see successor. Readers treat unknown values like 'active' and never drop a reference because of status.
  - Constraints: maxLength: 32, knownValues: active | inactive | retired | superseded
- `successor` (string · at-uri): The team record that replaces this one, e.g. a duplicate merged into it. A rename or relocation keeps its record (fields change and an 'old:' alias is added), so it doesn't use this. References to this record keep resolving. Readers stop following after a few hops or on a cycle.
- `updatedAt` (string · datetime, required)
- `venue` (string)
  - Constraints: maxLength: 256
- `website` (string · uri)
  - Constraints: maxLength: 512

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "rkey is league-abbreviation lowercase, e.g. nfl-cin, cfb-cin, f1-mclaren",
      "key": "any",
      "record": {
        "properties": {
          "abbreviation": {
            "maxLength": 8,
            "type": "string"
          },
          "ageGroup": {
            "description": "'senior' (or left out) is the main adult side. Age-limited sides use 'under-NN', e.g. 'under-20'. Not golf's over-50 'senior' tours.",
            "knownValues": [
              "senior",
              "under-23",
              "under-21",
              "under-20",
              "under-19",
              "under-18"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "aliases": {
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxLength": 16,
            "type": "array"
          },
          "color": {
            "maxLength": 7,
            "type": "string"
          },
          "conference": {
            "maxLength": 64,
            "type": "string"
          },
          "discipline": {
            "description": "Adaptive variant, e.g. 'wheelchair'. Leave out (or 'standard') for the standard game. Formats such as rugby sevens are told apart by their league, not here.",
            "knownValues": [
              "standard",
              "wheelchair",
              "intellectual-disability",
              "physical-disability"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "division": {
            "maxLength": 64,
            "type": "string"
          },
          "externalIds": {
            "items": {
              "ref": "com.professorbutts.sports.defs#externalId",
              "type": "ref"
            },
            "maxLength": 16,
            "type": "array"
          },
          "gender": {
            "description": "Men's, women's or mixed side, same values as league.gender, so a reader doesn't have to look up the league.",
            "knownValues": [
              "men",
              "women",
              "mixed"
            ],
            "maxLength": 16,
            "type": "string"
          },
          "league": {
            "maxLength": 32,
            "type": "string"
          },
          "location": {
            "maxLength": 64,
            "type": "string"
          },
          "logoUrl": {
            "format": "uri",
            "maxLength": 512,
            "type": "string"
          },
          "memberships": {
            "description": "League level, conference and division by season, newest first. conference and division above stay the current ones.",
            "items": {
              "ref": "com.professorbutts.sports.defs#membership",
              "type": "ref"
            },
            "maxLength": 32,
            "type": "array"
          },
          "name": {
            "maxLength": 128,
            "type": "string"
          },
          "officialAccounts": {
            "description": "The team's own Bluesky accounts, with evidence. profile, above, holds the primary account's DID.",
            "items": {
              "ref": "com.professorbutts.sports.defs#officialAccount",
              "type": "ref"
            },
            "maxLength": 8,
            "type": "array"
          },
          "parent": {
            "format": "at-uri",
            "type": "string"
          },
          "profile": {
            "format": "did",
            "type": "string"
          },
          "secondaryColor": {
            "maxLength": 7,
            "type": "string"
          },
          "shortName": {
            "maxLength": 64,
            "type": "string"
          },
          "source": {
            "maxLength": 64,
            "type": "string"
          },
          "sport": {
            "maxLength": 64,
            "type": "string"
          },
          "status": {
            "description": "Leave out (or 'active') for a current team. 'inactive': not playing for now but expected back, e.g. a program on hiatus. 'retired': gone for good. 'superseded': another record replaces this one; see successor. Readers treat unknown values like 'active' and never drop a reference because of status.",
            "knownValues": [
              "active",
              "inactive",
              "retired",
              "superseded"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "successor": {
            "description": "The team record that replaces this one, e.g. a duplicate merged into it. A rename or relocation keeps its record (fields change and an 'old:' alias is added), so it doesn't use this. References to this record keep resolving. Readers stop following after a few hops or on a cycle.",
            "format": "at-uri",
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "venue": {
            "maxLength": 256,
            "type": "string"
          },
          "website": {
            "format": "uri",
            "maxLength": 512,
            "type": "string"
          }
        },
        "required": [
          "name",
          "sport",
          "league",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.professorbutts.sports.team",
  "lexicon": 1
}
```
