# computer.sims.log.watch

> Published by [sims.computer](https://lexicon.garden/identity/did:plc:gqorgf2irpe5vy6osekgc3be)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:gqorgf2irpe5vy6osekgc3be/computer.sims.log.watch)
- [Documentation](https://lexicon.garden/lexicon/did:plc:gqorgf2irpe5vy6osekgc3be/computer.sims.log.watch/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:gqorgf2irpe5vy6osekgc3be/computer.sims.log.watch/examples)

## Definitions

### `computer.sims.log.watch`

**Type**: `record`

A single diary entry: the user watched a movie or TV work at a point in time, with free-form tags. Adds the per-watch diary layer on top of the Popfeed listItem record referenced by 'subject'.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `note` | `string` | No | Optional short note about the watch. |
| `tags` | `array` | No | Free-form, lowercase, trimmed tags applied to this watch. |
| `season` | `integer` | No | Season number, for TV watches. |
| `tmdbId` | `string` | Yes | Denormalized TMDB id of the work, for resilience if the subject cannot be resolved. |
| `episode` | `integer` | No | Episode number, for TV watches. |
| `rewatch` | `boolean` | No | Whether this watch was a rewatch. |
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | Strong reference to the social.popfeed.feed.listItem record for this work. |
| `createdAt` | `string` (datetime) | Yes | When this record was created. |
| `mediaType` | `string` | Yes | Denormalized media type of the work. |
| `watchedAt` | `string` (datetime) | Yes | When the watch happened. |

## Raw Schema

```json
{
  "id": "computer.sims.log.watch",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "tmdbId",
          "mediaType",
          "watchedAt",
          "createdAt"
        ],
        "properties": {
          "note": {
            "type": "string",
            "maxLength": 3000,
            "description": "Optional short note about the watch.",
            "maxGraphemes": 300
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 640,
              "maxGraphemes": 64
            },
            "maxLength": 64,
            "description": "Free-form, lowercase, trimmed tags applied to this watch."
          },
          "season": {
            "type": "integer",
            "description": "Season number, for TV watches."
          },
          "tmdbId": {
            "type": "string",
            "description": "Denormalized TMDB id of the work, for resilience if the subject cannot be resolved."
          },
          "episode": {
            "type": "integer",
            "description": "Episode number, for TV watches."
          },
          "rewatch": {
            "type": "boolean",
            "description": "Whether this watch was a rewatch."
          },
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Strong reference to the social.popfeed.feed.listItem record for this work."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this record was created."
          },
          "mediaType": {
            "enum": [
              "movie",
              "tv"
            ],
            "type": "string",
            "description": "Denormalized media type of the work."
          },
          "watchedAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the watch happened."
          }
        }
      },
      "description": "A single diary entry: the user watched a movie or TV work at a point in time, with free-form tags. Adds the per-watch diary layer on top of the Popfeed listItem record referenced by 'subject'."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
