# world.ptah.event

> Published by [ptah.world](https://lexicon.garden/identity/did:plc:l45z35sxxjuobp5q65a5vu22)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:l45z35sxxjuobp5q65a5vu22/world.ptah.event)
- [Documentation](https://lexicon.garden/lexicon/did:plc:l45z35sxxjuobp5q65a5vu22/world.ptah.event/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:l45z35sxxjuobp5q65a5vu22/world.ptah.event/examples)

## Definitions

### `world.ptah.event`

**Type**: `record`

Where competition becomes history. A structured occurrence with participants, stakes, results, and witnesses.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | The name of the event |
| `result` | `string` | No | The outcome of the event |
| `stakes` | `string` | No | What is at stake in this event |
| `status` | `string` | No | The current status of the event |
| `endTime` | `string` (datetime) | No | When the event ends |
| `createdAt` | `string` (datetime) | Yes | Timestamp when this event was created |
| `eventType` | `string` | No | The type of event |
| `startTime` | `string` (datetime) | No | When the event begins |
| `witnesses` | `array` | No | References to witness action records — verifiable attendance |
| `creatorDID` | `string` (did) | Yes | The permanent identity of the event's creator |
| `description` | `string` | No | What this event is about |
| `participants` | `array` | No | References to character records participating in this event |
| `worldReference` | `string` (at-uri) | Yes | Reference to the world this event occurs in |
| `canonicalStatus` | `string` | No | The canonical standing of this event |
| `locationReference` | `string` (at-uri) | No | Reference to the location where this event takes place |

## Raw Schema

```json
{
  "id": "world.ptah.event",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "creatorDID",
          "worldReference",
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 640,
            "description": "The name of the event",
            "maxGraphemes": 64
          },
          "result": {
            "type": "string",
            "maxLength": 10240,
            "description": "The outcome of the event",
            "maxGraphemes": 1024
          },
          "stakes": {
            "type": "string",
            "maxLength": 10240,
            "description": "What is at stake in this event",
            "maxGraphemes": 1024
          },
          "status": {
            "type": "string",
            "description": "The current status of the event",
            "knownValues": [
              "scheduled",
              "active",
              "completed",
              "cancelled"
            ]
          },
          "endTime": {
            "type": "string",
            "format": "datetime",
            "description": "When the event ends"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when this event was created"
          },
          "eventType": {
            "type": "string",
            "description": "The type of event",
            "knownValues": [
              "competition",
              "gathering",
              "milestone",
              "ceremony",
              "conflict"
            ]
          },
          "startTime": {
            "type": "string",
            "format": "datetime",
            "description": "When the event begins"
          },
          "witnesses": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "at-uri"
            },
            "description": "References to witness action records — verifiable attendance"
          },
          "creatorDID": {
            "type": "string",
            "format": "did",
            "description": "The permanent identity of the event's creator"
          },
          "description": {
            "type": "string",
            "maxLength": 10240,
            "description": "What this event is about",
            "maxGraphemes": 1024
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "at-uri"
            },
            "description": "References to character records participating in this event"
          },
          "worldReference": {
            "type": "string",
            "format": "at-uri",
            "description": "Reference to the world this event occurs in"
          },
          "canonicalStatus": {
            "type": "string",
            "description": "The canonical standing of this event",
            "knownValues": [
              "world.ptah.defs#canonicalStatusOfficial",
              "world.ptah.defs#canonicalStatusCommunity",
              "world.ptah.defs#canonicalStatusApocryphal"
            ]
          },
          "locationReference": {
            "type": "string",
            "format": "at-uri",
            "description": "Reference to the location where this event takes place"
          }
        }
      },
      "description": "Where competition becomes history. A structured occurrence with participants, stakes, results, and witnesses."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
