# xyz.opnshelf.note

> Published by [opnshelf.xyz](https://lexicon.garden/identity/did:plc:jkf4momksftvstbyqnb5sxik)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:jkf4momksftvstbyqnb5sxik/xyz.opnshelf.note)
- [Documentation](https://lexicon.garden/lexicon/did:plc:jkf4momksftvstbyqnb5sxik/xyz.opnshelf.note/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:jkf4momksftvstbyqnb5sxik/xyz.opnshelf.note/examples)

## Definitions

### `xyz.opnshelf.note`

**Type**: `record`

A user note about a media item

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `content` | `string` | Yes | Note content |
| `mediaId` | `string` | Yes | TMDB movie ID or show ID |
| `createdAt` | `string` (datetime) | Yes | Record creation timestamp |
| `mediaType` | `string` | Yes | Media type |
| `seasonNumber` | `integer` | No | Season number for season/episode items |
| `episodeNumber` | `integer` | No | Episode number for episode items |

## Raw Schema

```json
{
  "id": "xyz.opnshelf.note",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "mediaType",
          "mediaId",
          "content",
          "createdAt"
        ],
        "properties": {
          "content": {
            "type": "string",
            "maxLength": 5000,
            "description": "Note content"
          },
          "mediaId": {
            "type": "string",
            "description": "TMDB movie ID or show ID"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Record creation timestamp"
          },
          "mediaType": {
            "enum": [
              "movie",
              "show",
              "season",
              "episode"
            ],
            "type": "string",
            "description": "Media type"
          },
          "seasonNumber": {
            "type": "integer",
            "description": "Season number for season/episode items"
          },
          "episodeNumber": {
            "type": "integer",
            "description": "Episode number for episode items"
          }
        }
      },
      "description": "A user note about a media item"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
