app.studynext.record

A single study session record. New records use localId as the rkey and are written via putRecord, making retries idempotent. During migration, a record may use a distinct PDS rkey while retaining its stable localId; the client tracks that rkey separately as pdsRkey. The AT Protocol record envelope's $type is app.studynext.record.

Repository @studynext.app did:plc:nstib2qjcu3tyun7cxz4dxcm namespace authority
Details · record, key any
Kindrecord
Record keyany
Authoritystudynext.app
Commit rev3n3kcoqogfc2t
Indexed
cid bafyreicuotdilcirmpaedqqkjwngufo22mi2kbx2kbgy7gsd6ky5ffgxym

Checks

Valid
  • unlimited-string defs.main.record.properties.dateNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.record.properties.localIdNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.record.properties.planIdNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A single study session record. New records use localId as the rkey and are written via putRecord, making retries idempotent. During migration, a record may use a distinct PDS rkey while retaining its stable localId; the client tracks that rkey separately as pdsRkey. The AT Protocol record envelope's $type is app.studynext.record.",
      "key": "any",
      "record": {
        "properties": {
          "comment": {
            "maxLength": 1500,
            "type": "string"
          },
          "concentration": {
            "maximum": 5,
            "minimum": 1,
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "date": {
            "description": "Study calendar date in YYYY-MM-DD format; not a timestamp.",
            "type": "string"
          },
          "difficulty": {
            "maximum": 6,
            "minimum": 1,
            "type": "integer"
          },
          "durationMin": {
            "minimum": 0,
            "type": "integer"
          },
          "fromUnit": {
            "minimum": 0,
            "type": "integer"
          },
          "isReview": {
            "type": "boolean"
          },
          "localId": {
            "description": "Stable local StudyRecord identifier (typically the local record id). New records use it as their rkey; migrated records may have a separate PDS rkey tracked by the client as pdsRkey.",
            "type": "string"
          },
          "pdsRkey": {
            "description": "Canonical migrated TID rkey. It points to a create-only copy while the legacy source record remains readable.",
            "format": "tid",
            "type": "string"
          },
          "planId": {
            "description": "Stable id of the source StudyPlan (the plan's localId), so cross-device pulls can match it exactly instead of guessing from planTitle. The plan's PDS rkey may differ after migration. Optional for compatibility with records written before this field existed.",
            "type": "string"
          },
          "planShort": {
            "maxLength": 30,
            "type": "string"
          },
          "planTitle": {
            "maxLength": 600,
            "type": "string"
          },
          "projectedTask": {
            "type": "boolean"
          },
          "reviewSuppressed": {
            "type": "boolean"
          },
          "roomTitle": {
            "maxLength": 600,
            "type": "string"
          },
          "round": {
            "minimum": 1,
            "type": "integer"
          },
          "subjectId": {
            "maxLength": 100,
            "type": "string"
          },
          "subjectName": {
            "maxLength": 300,
            "type": "string"
          },
          "taskId": {
            "maxLength": 100,
            "type": "string"
          },
          "taskTitle": {
            "maxLength": 600,
            "type": "string"
          },
          "toUnit": {
            "minimum": 0,
            "type": "integer"
          },
          "unit": {
            "maxLength": 60,
            "type": "string"
          },
          "unitsCompleted": {
            "minimum": 0,
            "type": "integer"
          },
          "updatedAt": {
            "description": "Timestamp of the last user edit, stamped by updateRecord. Absent on records that were never edited and on records written by older clients. Other devices use it to detect edits to records they already hold.",
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "date",
          "unit",
          "unitsCompleted",
          "durationMin",
          "concentration",
          "difficulty",
          "round"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.record",
  "lexicon": 1
}