# ca.astronomi.boards.pollBallot

> 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.

- Kind: record
- Record key: tid
- Authority: boards.astronomi.ca
- Lexicon: 1
- Published by [cosm.blue](https://lexicon.garden/identity/did:plc:rnn63n5auoexnihjf7zllr6l), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:rnn63n5auoexnihjf7zllr6l/ca.astronomi.boards.pollBallot)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:rnn63n5auoexnihjf7zllr6l/ca.astronomi.boards.pollBallot/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:rnn63n5auoexnihjf7zllr6l/ca.astronomi.boards.pollBallot/analytics)

## Record (`ca.astronomi.boards.pollBallot`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `option` (integer, required): Index into the post's pollOptions array.
  - Constraints: minimum: 0, maximum: 5
- `post` (ref, required): The poll topic.
  - Reference: `ca.astronomi.boards.defs#strongRef`

## Schema

```json
{
  "$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
}
```
