{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A named collection of books in a user's library (e.g. 'For the school', 'Take to Spain').",
      "key": "tid",
      "record": {
        "properties": {
          "books": {
            "description": "The books that belong to this group (each an org.passingreads.book.registration).",
            "items": {
              "ref": "com.atproto.repo.strongRef#main",
              "type": "ref"
            },
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "name": {
            "description": "Display name of the group.",
            "maxGraphemes": 64,
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "name",
          "books",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.passingreads.book.group",
  "lexicon": 1
}
