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