{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "author": {
      "properties": {
        "countries": {
          "description": "Countries of citizenship (Wikidata P27), English labels.",
          "items": {
            "maxLength": 200,
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "description": "The Author name as the BookHive catalog writes it.",
          "type": "string"
        }
      },
      "required": [
        "name",
        "countries"
      ],
      "type": "object"
    },
    "main": {
      "description": "Facts about one BookHive book that Lena found in public sources (Open Library, Wikidata), shared so other phones need not look them up again. Only found facts are written. Record key: the BookHive hiveId.",
      "key": "any",
      "record": {
        "properties": {
          "authors": {
            "items": {
              "ref": "#author",
              "type": "ref"
            },
            "maxLength": 20,
            "type": "array"
          },
          "firstPublicationYear": {
            "description": "The year the work first came out, in any language and edition (Open Library first_publish_year). Not the edition year.",
            "type": "integer"
          },
          "hiveId": {
            "description": "The BookHive catalog ID (buzz.bookhive.catalogBook record key).",
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "hiveId",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "dev.apoena.lena.bookFacts",
  "lexicon": 1
}
