# app.studynext.tasks

> A snapshot of the user's tasks relevant to a single calendar date, for cross-device same-day sync. One record per user per date. rkey = the date (YYYY-MM-DD).

- Kind: record
- Record key: any
- Authority: studynext.app
- Lexicon: 1
- Published by [studynext.app](https://lexicon.garden/identity/did:plc:nstib2qjcu3tyun7cxz4dxcm), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.tasks)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.tasks/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.tasks/analytics)

## Record (`app.studynext.tasks`)

Type: record · key any

### Properties

- `date` (string, required): Snapshot calendar date in YYYY-MM-DD format; equals the rkey for records created by the current writer.
- `items` (array, required)
  - Constraints: maxLength: 500
  - `items` (ref)
    - Reference: `#snapshotItem`
- `tombstones` (array): Delete tombstones for plan tasks, carried separately from items so clients that predate this field never apply them. Same item shape as items; deletedAt is always present.
  - Constraints: maxLength: 500
  - `items` (ref)
    - Reference: `#taskTombstone`
- `updatedAt` (string · datetime, required)

## #snapshotItem (`app.studynext.tasks#snapshotItem`)

Type: object

### Properties

- `accent` (string)
  - Constraints: maxLength: 7
- `amount` (integer)
- `deadline` (string): Calendar date in YYYY-MM-DD format; not a timestamp.
- `deckId` (string)
  - Constraints: maxLength: 100
- `deletedAt` (string · datetime)
- `doneUnits` (integer)
- `estMin` (integer)
- `fromUnit` (integer)
- `id` (string)
  - Constraints: maxLength: 100
- `isReview` (boolean)
- `material` (string)
  - Constraints: maxLength: 600
- `planId` (string): Stable key for the associated plan; omitted for free-standing tasks.
  - Constraints: maxLength: 100
- `repeatDays` (array)
  - Constraints: maxLength: 7
  - `items` (integer)
    - Constraints: minimum: 0, maximum: 6
- `repeatIntervalDays` (integer)
- `round` (integer)
- `startDate` (string): Calendar date in YYYY-MM-DD format; not a timestamp.
- `status` (string, required)
  - Constraints: knownValues: pending | next | done | skipped
- `subjectId` (string)
  - Constraints: maxLength: 100
- `subjectName` (string)
  - Constraints: maxLength: 300
- `title` (string)
  - Constraints: maxLength: 600
- `toUnit` (integer)
- `unit` (string)
  - Constraints: maxLength: 60

## #taskTombstone (`app.studynext.tasks#taskTombstone`)

Type: object

### Properties

- `accent` (string)
  - Constraints: maxLength: 7
- `amount` (integer)
- `deadline` (string): Calendar date in YYYY-MM-DD format; not a timestamp.
- `deckId` (string)
  - Constraints: maxLength: 100
- `deletedAt` (string · datetime, required)
- `doneUnits` (integer)
- `estMin` (integer)
- `fromUnit` (integer)
- `id` (string)
  - Constraints: maxLength: 100
- `isReview` (boolean)
- `material` (string)
  - Constraints: maxLength: 600
- `planId` (string)
  - Constraints: maxLength: 100
- `repeatDays` (array)
  - Constraints: maxLength: 7
  - `items` (integer)
    - Constraints: minimum: 0, maximum: 6
- `repeatIntervalDays` (integer)
- `round` (integer)
- `startDate` (string): Calendar date in YYYY-MM-DD format; not a timestamp.
- `status` (string, required)
  - Constraints: knownValues: pending | next | done | skipped
- `subjectId` (string)
  - Constraints: maxLength: 100
- `subjectName` (string)
  - Constraints: maxLength: 300
- `title` (string)
  - Constraints: maxLength: 600
- `toUnit` (integer)
- `unit` (string)
  - Constraints: maxLength: 60

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A snapshot of the user's tasks relevant to a single calendar date, for cross-device same-day sync. One record per user per date. rkey = the date (YYYY-MM-DD).",
      "key": "any",
      "record": {
        "properties": {
          "date": {
            "description": "Snapshot calendar date in YYYY-MM-DD format; equals the rkey for records created by the current writer.",
            "type": "string"
          },
          "items": {
            "items": {
              "ref": "#snapshotItem",
              "type": "ref"
            },
            "maxLength": 500,
            "type": "array"
          },
          "tombstones": {
            "description": "Delete tombstones for plan tasks, carried separately from items so clients that predate this field never apply them. Same item shape as items; deletedAt is always present.",
            "items": {
              "ref": "#taskTombstone",
              "type": "ref"
            },
            "maxLength": 500,
            "type": "array"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "date",
          "items",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "snapshotItem": {
      "properties": {
        "accent": {
          "maxLength": 7,
          "type": "string"
        },
        "amount": {
          "type": "integer"
        },
        "deadline": {
          "description": "Calendar date in YYYY-MM-DD format; not a timestamp.",
          "type": "string"
        },
        "deckId": {
          "maxLength": 100,
          "type": "string"
        },
        "deletedAt": {
          "format": "datetime",
          "type": "string"
        },
        "doneUnits": {
          "type": "integer"
        },
        "estMin": {
          "type": "integer"
        },
        "fromUnit": {
          "type": "integer"
        },
        "id": {
          "maxLength": 100,
          "type": "string"
        },
        "isReview": {
          "type": "boolean"
        },
        "material": {
          "maxLength": 600,
          "type": "string"
        },
        "planId": {
          "description": "Stable key for the associated plan; omitted for free-standing tasks.",
          "maxLength": 100,
          "type": "string"
        },
        "repeatDays": {
          "items": {
            "maximum": 6,
            "minimum": 0,
            "type": "integer"
          },
          "maxLength": 7,
          "type": "array"
        },
        "repeatIntervalDays": {
          "type": "integer"
        },
        "round": {
          "type": "integer"
        },
        "startDate": {
          "description": "Calendar date in YYYY-MM-DD format; not a timestamp.",
          "type": "string"
        },
        "status": {
          "knownValues": [
            "pending",
            "next",
            "done",
            "skipped"
          ],
          "type": "string"
        },
        "subjectId": {
          "maxLength": 100,
          "type": "string"
        },
        "subjectName": {
          "maxLength": 300,
          "type": "string"
        },
        "title": {
          "maxLength": 600,
          "type": "string"
        },
        "toUnit": {
          "type": "integer"
        },
        "unit": {
          "maxLength": 60,
          "type": "string"
        }
      },
      "required": [
        "status"
      ],
      "type": "object"
    },
    "taskTombstone": {
      "properties": {
        "accent": {
          "maxLength": 7,
          "type": "string"
        },
        "amount": {
          "type": "integer"
        },
        "deadline": {
          "description": "Calendar date in YYYY-MM-DD format; not a timestamp.",
          "type": "string"
        },
        "deckId": {
          "maxLength": 100,
          "type": "string"
        },
        "deletedAt": {
          "format": "datetime",
          "type": "string"
        },
        "doneUnits": {
          "type": "integer"
        },
        "estMin": {
          "type": "integer"
        },
        "fromUnit": {
          "type": "integer"
        },
        "id": {
          "maxLength": 100,
          "type": "string"
        },
        "isReview": {
          "type": "boolean"
        },
        "material": {
          "maxLength": 600,
          "type": "string"
        },
        "planId": {
          "maxLength": 100,
          "type": "string"
        },
        "repeatDays": {
          "items": {
            "maximum": 6,
            "minimum": 0,
            "type": "integer"
          },
          "maxLength": 7,
          "type": "array"
        },
        "repeatIntervalDays": {
          "type": "integer"
        },
        "round": {
          "type": "integer"
        },
        "startDate": {
          "description": "Calendar date in YYYY-MM-DD format; not a timestamp.",
          "type": "string"
        },
        "status": {
          "knownValues": [
            "pending",
            "next",
            "done",
            "skipped"
          ],
          "type": "string"
        },
        "subjectId": {
          "maxLength": 100,
          "type": "string"
        },
        "subjectName": {
          "maxLength": 300,
          "type": "string"
        },
        "title": {
          "maxLength": 600,
          "type": "string"
        },
        "toUnit": {
          "type": "integer"
        },
        "unit": {
          "maxLength": 60,
          "type": "string"
        }
      },
      "required": [
        "status",
        "deletedAt"
      ],
      "type": "object"
    }
  },
  "id": "app.studynext.tasks",
  "lexicon": 1
}
```
