# app.userinput.downvote

> Published by [userinput.app](https://lexicon.garden/identity/did:plc:uyixj57k6nmxrdj7pjs2ss5s)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uyixj57k6nmxrdj7pjs2ss5s/app.userinput.downvote)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uyixj57k6nmxrdj7pjs2ss5s/app.userinput.downvote/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uyixj57k6nmxrdj7pjs2ss5s/app.userinput.downvote/examples)

## Definitions

### `app.userinput.downvote`

**Type**: `record`

A downvote on a discussion or reply. Written at the SAME record key as its subject, so a user holds at most one per subject. Lives in the voter's repo; counted network-wide by constellation at subject.uri.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | The discussion or reply being voted on. Indexed by constellation at subject.uri. |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "app.userinput.downvote",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "createdAt"
        ],
        "properties": {
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "The discussion or reply being voted on. Indexed by constellation at subject.uri."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "A downvote on a discussion or reply. Written at the SAME record key as its subject, so a user holds at most one per subject. Lives in the voter's repo; counted network-wide by constellation at subject.uri."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
