# de.libranoir.schrank

> One record per saved bookcase. Record key: first letter of the OSM element type plus the OSM id, e.g. n123456 for node/123456. The record itself means 'saved'; deleting it un-saves the bookcase.

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

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:ynof7d6bm7yhdw5nudasfdop/de.libranoir.schrank)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:ynof7d6bm7yhdw5nudasfdop/de.libranoir.schrank/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:ynof7d6bm7yhdw5nudasfdop/de.libranoir.schrank/analytics)

## Record (`de.libranoir.schrank`)

Type: record · key any

### Properties

- `createdAt` (string · datetime, required)
- `geo` (ref): Coordinates at the time of saving (snapshot).
  - Reference: `community.lexicon.location.geo`
- `locality` (string): Municipality at the time of saving (snapshot).
  - Constraints: maxLength: 2000, maxGraphemes: 200
- `name` (string): Display name at the time of saving (snapshot, may be generated from street or district).
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `osm` (string, required): OpenStreetMap element, e.g. node/123456 (type/id). The source of truth for the bookcase.
  - Constraints: maxLength: 40
- `url` (string · uri): Page of the bookcase on LibraNoir, otherwise on OpenStreetMap.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One record per saved bookcase. Record key: first letter of the OSM element type plus the OSM id, e.g. n123456 for node/123456. The record itself means 'saved'; deleting it un-saves the bookcase.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "geo": {
            "description": "Coordinates at the time of saving (snapshot).",
            "ref": "community.lexicon.location.geo",
            "type": "ref"
          },
          "locality": {
            "description": "Municipality at the time of saving (snapshot).",
            "maxGraphemes": 200,
            "maxLength": 2000,
            "type": "string"
          },
          "name": {
            "description": "Display name at the time of saving (snapshot, may be generated from street or district).",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "osm": {
            "description": "OpenStreetMap element, e.g. node/123456 (type/id). The source of truth for the bookcase.",
            "maxLength": 40,
            "type": "string"
          },
          "url": {
            "description": "Page of the bookcase on LibraNoir, otherwise on OpenStreetMap.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "osm",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A public bookcase (OpenStreetMap amenity=public_bookcase) that a reader saved on LibraNoir.",
  "id": "de.libranoir.schrank",
  "lexicon": 1
}
```
