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.

Details · record, key tid
Kindrecord
Record keytid
Authorityatomes.app
Commit rev3n2g5qhq6ch2b
Indexed
cid bafyreig6jc4f2eiuczswb4an5ullfbmujito44bc4dfgrtrqkucsm6gmdq

Checks

Valid Lint pass
JSONDownload
{
  "$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
}