# net.alternativeproto.vote

> Published by [alternativeproto.net](https://lexicon.garden/identity/did:plc:zj3ek5g7p4gxvg6mcnxazar5)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:zj3ek5g7p4gxvg6mcnxazar5/net.alternativeproto.vote)
- [Documentation](https://lexicon.garden/lexicon/did:plc:zj3ek5g7p4gxvg6mcnxazar5/net.alternativeproto.vote/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:zj3ek5g7p4gxvg6mcnxazar5/net.alternativeproto.vote/examples)

## Definitions

### `net.alternativeproto.vote`

**Type**: `record`

A user vote on a submission to AlternativeProto. Each user may cast one vote per submission.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | Strong reference (AT URI + CID) to the submission record being voted on |
| `createdAt` | `string` (datetime) | Yes | Timestamp when the vote was cast |
| `direction` | `string` | Yes | Vote direction: 'up' for positive/quality, 'down' for negative/irrelevant |

## Raw Schema

```json
{
  "id": "net.alternativeproto.vote",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "direction",
          "createdAt"
        ],
        "properties": {
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Strong reference (AT URI + CID) to the submission record being voted on"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when the vote was cast"
          },
          "direction": {
            "type": "string",
            "description": "Vote direction: 'up' for positive/quality, 'down' for negative/irrelevant",
            "knownValues": [
              "up",
              "down"
            ]
          }
        }
      },
      "description": "A user vote on a submission to AlternativeProto. Each user may cast one vote per submission."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
