{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "categories": {
      "properties": {
        "contentTaste": {
          "type": "boolean"
        },
        "health": {
          "type": "boolean"
        },
        "interests": {
          "type": "boolean"
        },
        "mobility": {
          "type": "boolean"
        },
        "schedule": {
          "type": "boolean"
        }
      },
      "required": [
        "mobility",
        "health",
        "interests",
        "contentTaste",
        "schedule"
      ],
      "type": "object"
    },
    "main": {
      "description": "Which categories of the parents' E04 data a general manager of this home may read. Root and main admins read and write every category whatever this says; general managers never write. One record per home, written by the root admin's session into the root admin's repo of the family sphere (dev-spec 21 §4.4).",
      "key": "literal:self",
      "record": {
        "properties": {
          "generalManagers": {
            "ref": "#categories",
            "type": "ref"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "updatedBy": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "generalManagers",
          "updatedAt",
          "updatedBy"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.illi.family.dataSharing",
  "lexicon": 1
}
