# town.laugh.db.room

> 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.room)
- [Documentation](https://lexicon.garden/lexicon/did:plc:k6owgpe2rkkchoiivxhzp2t4/town.laugh.db.room/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:k6owgpe2rkkchoiivxhzp2t4/town.laugh.db.room/examples)

## Definitions

### `town.laugh.db.room`

**Type**: `record`

A room or stage within a venue

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Room or stage name |
| `slug` | `string` | Yes | URL routing slug (mutable) |
| `venue` | `string` (at-uri) | Yes | AT-URI reference to the town.laugh.db.venue record |
| `origin` | `string` | Yes | Where this record came from |
| `capacity` | `integer` | No | Seating capacity of the room |
| `createdAt` | `string` (datetime) | Yes | Timestamp of record creation |
| `description` | `array` | No | Room description, one entry per language |

## Raw Schema

```json
{
  "id": "town.laugh.db.room",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "venue",
          "name",
          "slug",
          "origin",
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "Room or stage name"
          },
          "slug": {
            "type": "string",
            "description": "URL routing slug (mutable)"
          },
          "venue": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI reference to the town.laugh.db.venue record"
          },
          "origin": {
            "type": "string",
            "description": "Where this record came from",
            "knownValues": [
              "scraped",
              "native",
              "atproto"
            ]
          },
          "capacity": {
            "type": "integer",
            "description": "Seating capacity of the room"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp of record creation"
          },
          "description": {
            "type": "array",
            "items": {
              "ref": "town.laugh.db.defs#localizedText",
              "type": "ref"
            },
            "description": "Room description, one entry per language"
          }
        }
      },
      "description": "A room or stage within a venue"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
