# org.cairnsproto.draft.schemaAlias

> Maps one payload schema hash to another whose definition means the same, so stones under either share cairns. A reading applies only its policy author's aliases; one-to-one and acyclic. Stones keep their original hash.

- Kind: record
- Record key: tid
- Authority: draft.cairnsproto.org
- Lexicon: 1
- Published by [cairnsproto.org](https://lexicon.garden/identity/did:plc:np7ezqujtsry4bkogisaabul), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.schemaAlias)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.schemaAlias/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.schemaAlias/analytics)

## Record (`org.cairnsproto.draft.schemaAlias`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `from` (ref, required)
  - Reference: `org.cairnsproto.draft.defs#hash`
- `to` (ref, required)
  - Reference: `org.cairnsproto.draft.defs#hash`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Maps one payload schema hash to another whose definition means the same, so stones under either share cairns. A reading applies only its policy author's aliases; one-to-one and acyclic. Stones keep their original hash.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "from": {
            "ref": "org.cairnsproto.draft.defs#hash",
            "type": "ref"
          },
          "to": {
            "ref": "org.cairnsproto.draft.defs#hash",
            "type": "ref"
          }
        },
        "required": [
          "from",
          "to",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.cairnsproto.draft.schemaAlias",
  "lexicon": 1
}
```
