# app.atomes.loan

> The lending of a Copy to someone, from the day it leaves until it comes back. A Loan with no return date is open: the Copy is lent. Returned Loans stay as the Copy's history. Never Shared.

- Kind: record
- Record key: tid
- Authority: atomes.app
- Lexicon: 1
- Published by [neilujd.bsky.social](https://lexicon.garden/identity/did:plc:zqiqz76wf24fttlb2r73evli), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:zqiqz76wf24fttlb2r73evli/app.atomes.loan)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:zqiqz76wf24fttlb2r73evli/app.atomes.loan/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:zqiqz76wf24fttlb2r73evli/app.atomes.loan/analytics)

## Record (`app.atomes.loan`)

Type: record · key tid

### Properties

- `borrower` (string, required): Who has the Copy, as the reader typed it.
  - Constraints: minLength: 1, maxLength: 640, maxGraphemes: 64
- `copy` (string · tid, required): Record key of the app.atomes.copy that is lent.
- `createdAt` (string · datetime, required)
- `lentAt` (string · datetime, required): When the Copy left.
- `returnedAt` (string · datetime): When the Copy came back. Absent while the Loan is open.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The lending of a Copy to someone, from the day it leaves until it comes back. A Loan with no return date is open: the Copy is lent. Returned Loans stay as the Copy's history. Never Shared.",
      "key": "tid",
      "record": {
        "properties": {
          "borrower": {
            "description": "Who has the Copy, as the reader typed it.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "minLength": 1,
            "type": "string"
          },
          "copy": {
            "description": "Record key of the app.atomes.copy that is lent.",
            "format": "tid",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "lentAt": {
            "description": "When the Copy left.",
            "format": "datetime",
            "type": "string"
          },
          "returnedAt": {
            "description": "When the Copy came back. Absent while the Loan is open.",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "copy",
          "borrower",
          "lentAt",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.atomes.loan",
  "lexicon": 1
}
```
