# tv.dinger.favorites

> Published by [dinger.tv](https://lexicon.garden/identity/did:plc:wos76ilw75ikf2bquxqvt3lm)

✓ This is the authoritative definition for this NSID.

## Description

A public singleton record containing a viewer's favorite MLB players and teams for dinger.tv and compatible AT Protocol apps.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wos76ilw75ikf2bquxqvt3lm/tv.dinger.favorites)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wos76ilw75ikf2bquxqvt3lm/tv.dinger.favorites/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wos76ilw75ikf2bquxqvt3lm/tv.dinger.favorites/examples)

## Definitions

### `tv.dinger.favorites`

**Type**: `record`

Public favorite players and teams saved by a signed-in dinger.tv user.

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `updatedAt` | `string` (datetime) | Yes | When this record was last updated. |
| `favoriteTeams` | `array` | Yes | MLB teams the user wants to follow. |
| `schemaVersion` | `integer` | Yes | Record schema version for forward-compatible consumers. |
| `favoritePlayers` | `array` | Yes | Specific MLB players the user wants to follow. |

### `tv.dinger.favorites#team`

**Type**: `object`

A single favorite MLB team.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `integer` | Yes |  |
| `name` | `string` | Yes |  |
| `abbreviation` | `string` | Yes |  |

### `tv.dinger.favorites#player`

**Type**: `object`

A single favorite MLB player.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `integer` | Yes |  |
| `fullName` | `string` | Yes |  |
| `teamName` | `string` | No |  |
| `primaryPosition` | `string` | No |  |
| `teamAbbreviation` | `string` | No |  |

## Raw Schema

```json
{
  "id": "tv.dinger.favorites",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "favoritePlayers",
          "favoriteTeams",
          "schemaVersion",
          "updatedAt"
        ],
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this record was last updated."
          },
          "favoriteTeams": {
            "type": "array",
            "items": {
              "ref": "#team"
            },
            "maxLength": 10,
            "description": "MLB teams the user wants to follow."
          },
          "schemaVersion": {
            "type": "integer",
            "const": 1,
            "description": "Record schema version for forward-compatible consumers."
          },
          "favoritePlayers": {
            "type": "array",
            "items": {
              "ref": "#player"
            },
            "maxLength": 50,
            "description": "Specific MLB players the user wants to follow."
          }
        }
      },
      "description": "Public favorite players and teams saved by a signed-in dinger.tv user."
    },
    "team": {
      "type": "object",
      "required": [
        "abbreviation",
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "minimum": 1
        },
        "name": {
          "type": "string",
          "maxLength": 64
        },
        "abbreviation": {
          "type": "string",
          "maxLength": 8
        }
      },
      "description": "A single favorite MLB team."
    },
    "player": {
      "type": "object",
      "required": [
        "fullName",
        "id"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "minimum": 1
        },
        "fullName": {
          "type": "string",
          "maxLength": 128
        },
        "teamName": {
          "type": "string",
          "maxLength": 64
        },
        "primaryPosition": {
          "type": "string",
          "maxLength": 24
        },
        "teamAbbreviation": {
          "type": "string",
          "maxLength": 8
        }
      },
      "description": "A single favorite MLB player."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "A public singleton record containing a viewer's favorite MLB players and teams for dinger.tv and compatible AT Protocol apps."
}
```
