{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A vote on a poll. Lives in the voter's repo.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "Timestamp of vote.",
            "format": "datetime",
            "type": "string"
          },
          "poll": {
            "description": "AT-URI of the poll being voted on.",
            "format": "at-uri",
            "type": "string"
          },
          "selectedOptions": {
            "description": "Indices of selected options (0-based).",
            "items": {
              "minimum": 0,
              "type": "integer"
            },
            "maxLength": 10,
            "type": "array"
          }
        },
        "required": [
          "poll",
          "selectedOptions",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.protoimsg.chat.vote",
  "lexicon": 1
}
