# tech.tokimeki.kaku.collectionItem

> Published by [tokimeki.blue](https://lexicon.garden/identity/did:plc:4tr5dqti7nmu6g2czpthntak)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/tech.tokimeki.kaku.collectionItem)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/tech.tokimeki.kaku.collectionItem/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/tech.tokimeki.kaku.collectionItem/examples)

## Definitions

### `tech.tokimeki.kaku.collectionItem`

**Type**: `record`

An item in a collection linking to a post

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `post` | `ref` → `com.atproto.repo.strongRef` | Yes | Reference to the post |
| `order` | `integer` | No | Order within the collection |
| `createdAt` | `string` (datetime) | Yes |  |
| `collection` | `ref` → `com.atproto.repo.strongRef` | Yes | Reference to the collection |

## Raw Schema

```json
{
  "id": "tech.tokimeki.kaku.collectionItem",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "collection",
          "post",
          "createdAt"
        ],
        "properties": {
          "post": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Reference to the post"
          },
          "order": {
            "type": "integer",
            "minimum": 0,
            "description": "Order within the collection"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "collection": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Reference to the collection"
          }
        }
      },
      "description": "An item in a collection linking to a post"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
