# tech.tokimeki.poll.vote

> Published by [tokimeki.blue](https://lexicon.garden/identity/did:plc:4tr5dqti7nmu6g2czpthntak)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/tech.tokimeki.poll.vote)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/tech.tokimeki.poll.vote/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/tech.tokimeki.poll.vote/examples)

## Definitions

### `tech.tokimeki.poll.vote`

**Type**: `record`

A vote on a poll

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `poll` | `ref` → `com.atproto.repo.strongRef` | Yes | Reference to the poll record being voted on |
| `createdAt` | `string` (datetime) | Yes |  |
| `optionIndex` | `integer` | Yes | Index of the selected option (0-3) |

## Raw Schema

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