# com.professorbutts.sports.affiliation

> rkey is personRkey-teamRkey-role-season

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

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

Type: record · key any

### Properties

- `number` (string)
  - Constraints: maxLength: 4
- `person` (string · at-uri, required)
- `position` (string)
  - Constraints: maxLength: 32
- `role` (string, required)
  - Constraints: maxLength: 32, knownValues: player | driver | coach | manager | caddie
- `season` (string)
  - Constraints: maxLength: 32
- `source` (string)
  - Constraints: maxLength: 64
- `team` (string · at-uri, required)
- `term` (ref)
  - Reference: `com.professorbutts.sports.defs#dateRange`
- `updatedAt` (string · datetime, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "rkey is personRkey-teamRkey-role-season",
      "key": "any",
      "record": {
        "properties": {
          "number": {
            "maxLength": 4,
            "type": "string"
          },
          "person": {
            "format": "at-uri",
            "type": "string"
          },
          "position": {
            "maxLength": 32,
            "type": "string"
          },
          "role": {
            "knownValues": [
              "player",
              "driver",
              "coach",
              "manager",
              "caddie"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "season": {
            "maxLength": 32,
            "type": "string"
          },
          "source": {
            "maxLength": 64,
            "type": "string"
          },
          "team": {
            "format": "at-uri",
            "type": "string"
          },
          "term": {
            "ref": "com.professorbutts.sports.defs#dateRange",
            "type": "ref"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "person",
          "team",
          "role",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.professorbutts.sports.affiliation",
  "lexicon": 1
}
```
