{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One ballot in a poll topic; one per voter per poll, replaced when the voter switches options and deleted to withdraw. Stored in the voter's own repo.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "option": {
            "description": "Index into the post's pollOptions array.",
            "maximum": 5,
            "minimum": 0,
            "type": "integer"
          },
          "post": {
            "description": "The poll topic.",
            "ref": "ca.astronomi.boards.defs#strongRef",
            "type": "ref"
          }
        },
        "required": [
          "post",
          "option",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ca.astronomi.boards.pollBallot",
  "lexicon": 1
}
