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