# com.livtet.shelfItem

> A book placed on one of a reader's shelves. Unlike bookStatus, which carries the reading status of an edition, a shelfItem is a plain membership edge: one record per (shelf, book) pair, so a book can sit on any number of custom shelves independently of its reading status. The rkey is `<shelf rkey>-<edition rkey>`, so the same pair always lands on the same record.

- Kind: record
- Record key: any
- Authority: livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.shelfItem)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.shelfItem/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.shelfItem/analytics)

## Record (`com.livtet.shelfItem`)

Type: record · key any

### Properties

- `book` (ref, required): The book on the shelf (catalog edition record URI).
  - Reference: `com.atproto.repo.strongRef`
- `createdAt` (string · datetime, required)
- `metadata` (ref): Optional position, notes and emoji for this book's place on the shelf.
  - Reference: `com.livtet.defs#shelfItemMetadata`
- `shelf` (string · at-uri, required): AT-URI of the shelf record this book belongs to.
- `updatedAt` (string · datetime, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "any",
      "record": {
        "properties": {
          "book": {
            "description": "The book on the shelf (catalog edition record URI).",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "metadata": {
            "description": "Optional position, notes and emoji for this book's place on the shelf.",
            "ref": "com.livtet.defs#shelfItemMetadata",
            "type": "ref"
          },
          "shelf": {
            "description": "AT-URI of the shelf record this book belongs to.",
            "format": "at-uri",
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "shelf",
          "book",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A book placed on one of a reader's shelves. Unlike bookStatus, which carries the reading status of an edition, a shelfItem is a plain membership edge: one record per (shelf, book) pair, so a book can sit on any number of custom shelves independently of its reading status. The rkey is `<shelf rkey>-<edition rkey>`, so the same pair always lands on the same record.",
  "id": "com.livtet.shelfItem",
  "lexicon": 1
}
```
