{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One community the user belongs to.",
      "properties": {
        "category": {
          "description": "The nature or category of the community.",
          "knownValues": [
            "professional_group",
            "hobby_group",
            "membership",
            "affiliation",
            "volunteer",
            "local_group",
            "online_community"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "name": {
          "description": "The name of the community the user belongs to.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "role": {
          "description": "The role taken in the community.",
          "knownValues": [
            "member",
            "volunteer_helper",
            "organizer",
            "mentor",
            "moderator"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "tags": {
          "description": "List of the tags for the meaning, traits or context the user gave to or adopted for this group or community. A tag itself does not decide visibility or access rights: disclosure is decided by a separate user permission policy.",
          "items": {
            "description": "One item of the list of the tags for the meaning, traits or context the user gave to or adopted for this group or community.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "Communities the user belongs to, and roles in them.",
      "key": "tid",
      "record": {
        "properties": {
          "_meta": {
            "ref": "ai.newnal.mydata.defs#recordMeta",
            "type": "ref"
          },
          "data": {
            "closed": true,
            "refs": [
              "#entry"
            ],
            "type": "union"
          }
        },
        "required": [
          "data",
          "_meta"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.mydata.relationshipsCommunities",
  "lexicon": 1
}
