# blue.registry.donation

> Published by [registry.blue](https://lexicon.garden/identity/did:plc:4olik72a346dcc2hppt7ioo4)

✓ This is the authoritative definition for this NSID.

## Description

A record indicating a user has donated to a donation item.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4olik72a346dcc2hppt7ioo4/blue.registry.donation)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4olik72a346dcc2hppt7ioo4/blue.registry.donation/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4olik72a346dcc2hppt7ioo4/blue.registry.donation/examples)

## Definitions

### `blue.registry.donation`

**Type**: `record`

Records a donation to an item. Stored in the donor's repo. Multiple donations to the same item are allowed.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `item` | `string` (at-uri) | Yes | AT-URI of the donation item. |
| `amount` | `ref` → `blue.registry.item#money` | No | Amount donated. |
| `createdAt` | `string` (datetime) | Yes | Timestamp of the donation. |

## Raw Schema

```json
{
  "id": "blue.registry.donation",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "item",
          "createdAt"
        ],
        "properties": {
          "item": {
            "type": "string",
            "format": "at-uri",
            "description": "AT-URI of the donation item."
          },
          "amount": {
            "ref": "blue.registry.item#money",
            "type": "ref",
            "description": "Amount donated."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp of the donation."
          }
        }
      },
      "description": "Records a donation to an item. Stored in the donor's repo. Multiple donations to the same item are allowed."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "A record indicating a user has donated to a donation item."
}
```
