# scot.comhairle.testingPolisVoteV1

> Published by [stuartlynn.bsky.social](https://lexicon.garden/identity/did:plc:bigr55vtitf7uxcfxrzknj2s)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:bigr55vtitf7uxcfxrzknj2s/scot.comhairle.testingPolisVoteV1)
- [Documentation](https://lexicon.garden/lexicon/did:plc:bigr55vtitf7uxcfxrzknj2s/scot.comhairle.testingPolisVoteV1/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:bigr55vtitf7uxcfxrzknj2s/scot.comhairle.testingPolisVoteV1/examples)

## Definitions

### `scot.comhairle.testingPolisVoteV1`

**Type**: `record`

A vote on a statement in the Polis-style deliberation system

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `poll` | `ref` → `#pollRef` | Yes | Reference to the poll this vote belongs to |
| `value` | `string` | Yes | The vote value |
| `subject` | `ref` → `#statementRef` | Yes | Reference to the statement being voted on |
| `createdAt` | `string` (datetime) | Yes | Timestamp when the vote was created |

### `scot.comhairle.testingPolisVoteV1#pollRef`

**Type**: `object`

Reference to a poll record

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes | Content identifier of the poll record |
| `uri` | `string` (at-uri) | Yes | AT-URI of the poll record |

### `scot.comhairle.testingPolisVoteV1#statementRef`

**Type**: `object`

Reference to a statement record

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes | Content identifier of the statement record |
| `uri` | `string` (at-uri) | Yes | AT-URI of the statement record |

## Raw Schema

```json
{
  "id": "scot.comhairle.testingPolisVoteV1",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "value",
          "subject",
          "poll",
          "createdAt"
        ],
        "properties": {
          "poll": {
            "ref": "#pollRef",
            "type": "ref",
            "description": "Reference to the poll this vote belongs to"
          },
          "value": {
            "enum": [
              "agree",
              "disagree",
              "pass"
            ],
            "type": "string",
            "description": "The vote value"
          },
          "subject": {
            "ref": "#statementRef",
            "type": "ref",
            "description": "Reference to the statement being voted on"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when the vote was created"
          }
        }
      },
      "description": "A vote on a statement in the Polis-style deliberation system"
    },
    "pollRef": {
      "type": "object",
      "required": [
        "uri",
        "cid"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "format": "cid",
          "description": "Content identifier of the poll record"
        },
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT-URI of the poll record"
        }
      },
      "description": "Reference to a poll record"
    },
    "statementRef": {
      "type": "object",
      "required": [
        "uri",
        "cid"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "format": "cid",
          "description": "Content identifier of the statement record"
        },
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT-URI of the statement record"
        }
      },
      "description": "Reference to a statement record"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
