# us.off-the-clock.polls.vote

> A member's answer to a us.off-the-clock.polls.poll in the same space. The member's newest vote counts; one with no entries is an abstention. Votes are records in the space, so every member who reads it can see who voted and how. A client may add createdAt, the time it cast the vote; the AppView trusts it up to five minutes before it indexes the vote and never after.

- Kind: record
- Record key: tid
- Authority: polls.off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.polls.vote)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.polls.vote/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.polls.vote/analytics)

## Record (`us.off-the-clock.polls.vote`)

Type: record · key tid

### Properties

- `poll` (ref, required): The poll, with the CID of the version the voter saw.
  - Reference: `com.atproto.repo.strongRef`
- `votes` (array, required): The chosen options by key, at most one entry per key; empty to abstain.
  - `items` (ref)
    - Reference: `#entry`

## #entry (`us.off-the-clock.polls.vote#entry`)

Type: object

### Properties

- `input` (string): The voter's typed answer, for an option that allows input.
  - Constraints: minLength: 1, maxLength: 1000, minGraphemes: 1, maxGraphemes: 100
- `key` (string, required)
  - Constraints: minLength: 1, maxLength: 64

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "properties": {
        "input": {
          "description": "The voter's typed answer, for an option that allows input.",
          "maxGraphemes": 100,
          "maxLength": 1000,
          "minGraphemes": 1,
          "minLength": 1,
          "type": "string"
        },
        "key": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "key"
      ],
      "type": "object"
    },
    "main": {
      "description": "A member's answer to a us.off-the-clock.polls.poll in the same space. The member's newest vote counts; one with no entries is an abstention. Votes are records in the space, so every member who reads it can see who voted and how. A client may add createdAt, the time it cast the vote; the AppView trusts it up to five minutes before it indexes the vote and never after.",
      "key": "tid",
      "record": {
        "properties": {
          "poll": {
            "description": "The poll, with the CID of the version the voter saw.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "votes": {
            "description": "The chosen options by key, at most one entry per key; empty to abstain.",
            "items": {
              "ref": "#entry",
              "type": "ref"
            },
            "type": "array"
          }
        },
        "required": [
          "poll",
          "votes"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "us.off-the-clock.polls.vote",
  "lexicon": 1
}
```
