# town.laugh.db.work

> Published by [laugh.town](https://lexicon.garden/identity/did:plc:k6owgpe2rkkchoiivxhzp2t4)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:k6owgpe2rkkchoiivxhzp2t4/town.laugh.db.work)
- [Documentation](https://lexicon.garden/lexicon/did:plc:k6owgpe2rkkchoiivxhzp2t4/town.laugh.db.work/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:k6owgpe2rkkchoiivxhzp2t4/town.laugh.db.work/examples)

## Definitions

### `town.laugh.db.work`

**Type**: `record`

A comedian's creative work (special, album, film, tour, book, podcast)

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `role` | `string` | No | Role in the work |
| `type` | `string` | Yes | Type of work |
| `year` | `integer` | No | Release year |
| `title` | `string` | Yes | Title of the work |
| `origin` | `string` | Yes | Where this record came from |
| `comedian` | `string` (at-uri) | Yes | AT-URI reference to the town.laugh.db.comedian record |
| `platform` | `string` | No | Distributor or streaming service |
| `createdAt` | `string` (datetime) | Yes | Timestamp of record creation |
| `externalIds` | `array` | No | External identifiers (imdb, musicbrainz, etc.) |

## Raw Schema

```json
{
  "id": "town.laugh.db.work",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "comedian",
          "type",
          "title",
          "origin",
          "createdAt"
        ],
        "properties": {
          "role": {
            "type": "string",
            "description": "Role in the work"
          },
          "type": {
            "type": "string",
            "description": "Type of work",
            "knownValues": [
              "special",
              "album",
              "film",
              "tour",
              "book",
              "podcast"
            ]
          },
          "year": {
            "type": "integer",
            "description": "Release year"
          },
          "title": {
            "type": "string",
            "description": "Title of the work"
          },
          "origin": {
            "type": "string",
            "description": "Where this record came from",
            "knownValues": [
              "scraped",
              "native",
              "atproto"
            ]
          },
          "comedian": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI reference to the town.laugh.db.comedian record"
          },
          "platform": {
            "type": "string",
            "description": "Distributor or streaming service"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp of record creation"
          },
          "externalIds": {
            "type": "array",
            "items": {
              "ref": "town.laugh.db.defs#externalId",
              "type": "ref"
            },
            "description": "External identifiers (imdb, musicbrainz, etc.)"
          }
        }
      },
      "description": "A comedian's creative work (special, album, film, tour, book, podcast)"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
