{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A vote on a poll",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "optionIndex": {
            "description": "Index of the selected option (0-3)",
            "maximum": 3,
            "minimum": 0,
            "type": "integer"
          },
          "poll": {
            "description": "Reference to the poll record being voted on",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "poll",
          "optionIndex",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "tech.tokimeki.poll.vote",
  "lexicon": 1
}
