# xyz.opnshelf.movie

> 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.movie)
- [Documentation](https://lexicon.garden/lexicon/did:plc:jkf4momksftvstbyqnb5sxik/xyz.opnshelf.movie/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:jkf4momksftvstbyqnb5sxik/xyz.opnshelf.movie/examples)

## Definitions

### `xyz.opnshelf.movie`

**Type**: `record`

A tracked movie record for OpnShelf

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `source` | `string` | Yes | Source of the movie data (e.g., tmdb) |
| `movieId` | `string` | Yes | TMDB movie ID |
| `createdAt` | `string` (datetime) | Yes | Record creation timestamp |
| `watchedAt` | `string` (datetime) | Yes | When the movie was watched |

## Raw Schema

```json
{
  "id": "xyz.opnshelf.movie",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "movieId",
          "source",
          "watchedAt",
          "createdAt"
        ],
        "properties": {
          "source": {
            "type": "string",
            "description": "Source of the movie data (e.g., tmdb)"
          },
          "movieId": {
            "type": "string",
            "description": "TMDB movie ID"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Record creation timestamp"
          },
          "watchedAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the movie was watched"
          }
        }
      },
      "description": "A tracked movie record for OpnShelf"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
