# app.studynext.dailyCompletion

> A per-user daily task-completion marker. New records use the local calendar date YYYY-MM-DD as both rkey and date; each date is created once and later completion updates are conditional on the observed record CID. There is no per-date deletion in this sync path.

- 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.dailyCompletion)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.dailyCompletion/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.dailyCompletion/analytics)

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

Type: record · key any

### Properties

- `color` (integer, required): Index into the current client's completion-color list.
  - Constraints: minimum: 0, maximum: 9
- `completed` (integer, required)
  - Constraints: minimum: 0
- `date` (string, required): Local calendar date in YYYY-MM-DD format. The record rkey equals this value for records created by the current writer.
- `message` (integer, required): Index into the current client's completion-message list; values not recognized by a client should be preserved, not treated as an authorization or deletion signal.
  - Constraints: minimum: 0, maximum: 19
- `version` (integer, required)
  - Constraints: minimum: 1, maximum: 1

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A per-user daily task-completion marker. New records use the local calendar date YYYY-MM-DD as both rkey and date; each date is created once and later completion updates are conditional on the observed record CID. There is no per-date deletion in this sync path.",
      "key": "any",
      "record": {
        "properties": {
          "color": {
            "description": "Index into the current client's completion-color list.",
            "maximum": 9,
            "minimum": 0,
            "type": "integer"
          },
          "completed": {
            "minimum": 0,
            "type": "integer"
          },
          "date": {
            "description": "Local calendar date in YYYY-MM-DD format. The record rkey equals this value for records created by the current writer.",
            "type": "string"
          },
          "message": {
            "description": "Index into the current client's completion-message list; values not recognized by a client should be preserved, not treated as an authorization or deletion signal.",
            "maximum": 19,
            "minimum": 0,
            "type": "integer"
          },
          "version": {
            "maximum": 1,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "version",
          "date",
          "completed",
          "message",
          "color"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.dailyCompletion",
  "lexicon": 1
}
```
