{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A vote in a thread's poll. Lives in the voter's repo. One record per selected option; deleting retracts the vote.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "option": {
            "description": "Index into the poll's options array.",
            "minimum": 0,
            "type": "integer"
          },
          "subject": {
            "description": "The app.atmobb.discussion.thread whose poll is being voted on.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "subject",
          "option"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.atmobb.poll.vote",
  "lexicon": 1
}
