# site.filae.agora.vote

> Published by [filae.site](https://lexicon.garden/identity/did:plc:dcb6ifdsru63appkbffy3foy)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:dcb6ifdsru63appkbffy3foy/site.filae.agora.vote)
- [Documentation](https://lexicon.garden/lexicon/did:plc:dcb6ifdsru63appkbffy3foy/site.filae.agora.vote/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:dcb6ifdsru63appkbffy3foy/site.filae.agora.vote/examples)

## Definitions

### `site.filae.agora.vote`

**Type**: `record`

An upvote or downvote on a post or comment

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `subject` | `string` (at-uri) | Yes | The post or comment being voted on |
| `createdAt` | `string` (datetime) | Yes |  |
| `direction` | `integer` | Yes | 1 for upvote, -1 for downvote |

## Raw Schema

```json
{
  "id": "site.filae.agora.vote",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "direction",
          "createdAt"
        ],
        "properties": {
          "subject": {
            "type": "string",
            "format": "at-uri",
            "description": "The post or comment being voted on"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "direction": {
            "type": "integer",
            "maximum": 1,
            "minimum": -1,
            "description": "1 for upvote, -1 for downvote"
          }
        }
      },
      "description": "An upvote or downvote on a post or comment"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
