# com.livtet.readingGoal

> Reading goal record stored on the user's PDS at rkey 'current'. Written by the OAuth client (livtet-service).

- Kind: record
- Record key: literal:current
- Authority: livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.readingGoal)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.readingGoal/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.readingGoal/analytics)

## Record (`com.livtet.readingGoal`)

Type: record · key literal:current

### Properties

- `booksGoal` (integer, required): Number of books the user aims to finish in the period.
  - Constraints: minimum: 1
- `createdAt` (string · datetime, required)
- `period` (string, required): weekly = Mon-Sun, monthly = calendar month, annual = calendar year.
  - Constraints: knownValues: weekly | monthly | annual
- `updatedAt` (string · datetime, required)
- `year` (integer, required)
  - Constraints: minimum: 1900, maximum: 9999

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "literal:current",
      "record": {
        "properties": {
          "booksGoal": {
            "description": "Number of books the user aims to finish in the period.",
            "minimum": 1,
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "period": {
            "description": "weekly = Mon-Sun, monthly = calendar month, annual = calendar year.",
            "knownValues": [
              "weekly",
              "monthly",
              "annual"
            ],
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "year": {
            "maximum": 9999,
            "minimum": 1900,
            "type": "integer"
          }
        },
        "required": [
          "period",
          "year",
          "booksGoal",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Reading goal record stored on the user's PDS at rkey 'current'. Written by the OAuth client (livtet-service).",
  "id": "com.livtet.readingGoal",
  "lexicon": 1
}
```
