# io.kich.recipe.collectionitem

> Published by [kich.io](https://lexicon.garden/identity/did:plc:uxjwdy4wvuridijisalvxlxe)

✓ This is the authoritative definition for this NSID.

## Description

Record representing a recipe's inclusion in a specific collection. One record per recipe per collection.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uxjwdy4wvuridijisalvxlxe/io.kich.recipe.collectionitem)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uxjwdy4wvuridijisalvxlxe/io.kich.recipe.collectionitem/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uxjwdy4wvuridijisalvxlxe/io.kich.recipe.collectionitem/examples)

## Definitions

### `io.kich.recipe.collectionitem`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `group` | `string` | No | Optional group/section name for organizing recipes within the collection |
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | Reference to the recipe (io.kich.recipe.recipe) included in the collection |
| `position` | `integer` | No | Optional position for ordering items within the collection |
| `createdAt` | `string` (datetime) | Yes | When this item was added to the collection |
| `collection` | `string` (at-uri) | Yes | Reference (AT-URI) to the collection record (io.kich.recipe.collection) |

## Raw Schema

```json
{
  "id": "io.kich.recipe.collectionitem",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "collection",
          "createdAt"
        ],
        "properties": {
          "group": {
            "type": "string",
            "description": "Optional group/section name for organizing recipes within the collection"
          },
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Reference to the recipe (io.kich.recipe.recipe) included in the collection"
          },
          "position": {
            "type": "integer",
            "description": "Optional position for ordering items within the collection"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this item was added to the collection"
          },
          "collection": {
            "type": "string",
            "format": "at-uri",
            "description": "Reference (AT-URI) to the collection record (io.kich.recipe.collection)"
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Record representing a recipe's inclusion in a specific collection. One record per recipe per collection."
}
```
