# com.airplaneian.contrail.temp.trip

> Published by [airplaneian.com](https://lexicon.garden/identity/did:plc:5jsivedaksbcc4n2epiegflk)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:5jsivedaksbcc4n2epiegflk/com.airplaneian.contrail.temp.trip)
- [Documentation](https://lexicon.garden/lexicon/did:plc:5jsivedaksbcc4n2epiegflk/com.airplaneian.contrail.temp.trip/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:5jsivedaksbcc4n2epiegflk/com.airplaneian.contrail.temp.trip/examples)

## Definitions

### `com.airplaneian.contrail.temp.trip`

**Type**: `record`

An assertion that a set of flights belonged to one journey. Only 'createdAt' is required, and absent means unknown or not applicable. The reference points one way only, from trip to flight, and a trip references only flight records the author wrote.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | No | Free-text name for the trip. Public as soon as the record is written, and copies may persist after the record is deleted. |
| `source` | `string` | No | Short identifier for the tool that wrote this record. |
| `flights` | `array` | No | The flights in this trip, in the order flown, as AT-URIs to flight records. Plain AT-URIs rather than strong references, so a reference stays valid when a flight record is corrected in place. A reference may dangle if a flight is later deleted. |
| `sourceId` | `string` | No | That tool's own identifier for this trip. A grouping key may be sensitive even when the grouping is not: never write a booking reference here. |
| `createdAt` | `string` (datetime) | Yes | When this record was written, not when the trip happened. Explicit UTC offset, no fractional seconds. |

## Raw Schema

```json
{
  "id": "com.airplaneian.contrail.temp.trip",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 640,
            "description": "Free-text name for the trip. Public as soon as the record is written, and copies may persist after the record is deleted.",
            "maxGraphemes": 64
          },
          "source": {
            "type": "string",
            "maxLength": 64,
            "description": "Short identifier for the tool that wrote this record."
          },
          "flights": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "at-uri"
            },
            "maxLength": 200,
            "description": "The flights in this trip, in the order flown, as AT-URIs to flight records. Plain AT-URIs rather than strong references, so a reference stays valid when a flight record is corrected in place. A reference may dangle if a flight is later deleted."
          },
          "sourceId": {
            "type": "string",
            "maxLength": 512,
            "description": "That tool's own identifier for this trip. A grouping key may be sensitive even when the grouping is not: never write a booking reference here."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this record was written, not when the trip happened. Explicit UTC offset, no fractional seconds."
          }
        }
      },
      "description": "An assertion that a set of flights belonged to one journey. Only 'createdAt' is required, and absent means unknown or not applicable. The reference points one way only, from trip to flight, and a trip references only flight records the author wrote."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
