# app.studynext.mockExam

> A mock exam review with overall score, target judgement, subjects, sections, and reflection actions. rkey is the client's localId (see the `localId` property below), written via putRecord — this makes a retried push idempotent (a network-timeout retry overwrites the same rkey instead of creating a duplicate) rather than requiring the client to track which pushes already succeeded.

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

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

Type: record · key any

### Properties

- `applicantRank` (integer)
  - Constraints: minimum: 0
- `attemptLabel` (string)
  - Constraints: maxLength: 300
- `attemptLabelRemoved` (boolean): Explicitly cleared attemptLabel; distinguishes user removal from older clients omitting the field.
- `createdAt` (string · datetime, required)
- `date` (string, required): Exam calendar date in YYYY-MM-DD format; not a timestamp.
- `examName` (string, required)
  - Constraints: maxLength: 600
- `firstChoiceGap` (integer)
- `firstChoiceJudgement` (string)
  - Constraints: knownValues: A | B | C | D | E | Z
- `firstChoiceTargetScore` (integer)
  - Constraints: minimum: 0
- `goal` (string)
  - Constraints: maxLength: 1500
- `localId` (string, required): Matches local MockExamReview.id and equals this record's own rkey (see the record-level description above).
  - Constraints: maxLength: 100
- `pdsRkey` (string · tid): Canonical migrated TID rkey. It points to a create-only copy while the legacy source record remains readable.
- `scaleVersion` (integer): Current writers emit 1 and store totalDeviation, subject deviation, and section averageScore as integers scaled by 10. Existing records without this marker use the same scale.
  - Constraints: minimum: 1
- `subjects` (array, required)
  - Constraints: maxLength: 30
  - `items` (ref)
    - Reference: `#subject`
- `totalApplicants` (integer)
  - Constraints: minimum: 0
- `totalDeviation` (integer)
- `totalFullScore` (integer, required)
  - Constraints: minimum: 1
- `totalScore` (integer, required)
  - Constraints: minimum: 0
- `updatedAt` (string · datetime, required)

## #section (`app.studynext.mockExam#section`)

Type: object

### Properties

- `averageScore` (integer)
- `fieldName` (string, required)
  - Constraints: maxLength: 600
- `fullScore` (integer, required)
  - Constraints: minimum: 1
- `id` (string, required)
  - Constraints: maxLength: 100
- `longAction` (string)
  - Constraints: maxLength: 1500
- `lossCause` (string)
  - Constraints: maxLength: 300
- `mentalState` (string)
  - Constraints: maxLength: 1500
- `nextTargetScore` (integer)
  - Constraints: minimum: 0
- `score` (integer, required)
  - Constraints: minimum: 0
- `shortAction` (string)
  - Constraints: maxLength: 1500
- `timePlanActual` (string)
  - Constraints: maxLength: 1500

## #subject (`app.studynext.mockExam#subject`)

Type: object

### Properties

- `color` (string)
  - Constraints: maxLength: 7
- `deviation` (integer)
- `id` (string, required)
  - Constraints: maxLength: 100
- `name` (string, required)
  - Constraints: maxLength: 300
- `sections` (array, required)
  - Constraints: maxLength: 80
  - `items` (ref)
    - Reference: `#section`
- `subjectId` (string)
  - Constraints: maxLength: 100
- `subjectName` (string)
  - Constraints: maxLength: 300

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A mock exam review with overall score, target judgement, subjects, sections, and reflection actions. rkey is the client's localId (see the `localId` property below), written via putRecord — this makes a retried push idempotent (a network-timeout retry overwrites the same rkey instead of creating a duplicate) rather than requiring the client to track which pushes already succeeded.",
      "key": "any",
      "record": {
        "properties": {
          "applicantRank": {
            "minimum": 0,
            "type": "integer"
          },
          "attemptLabel": {
            "maxLength": 300,
            "type": "string"
          },
          "attemptLabelRemoved": {
            "description": "Explicitly cleared attemptLabel; distinguishes user removal from older clients omitting the field.",
            "type": "boolean"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "date": {
            "description": "Exam calendar date in YYYY-MM-DD format; not a timestamp.",
            "type": "string"
          },
          "examName": {
            "maxLength": 600,
            "type": "string"
          },
          "firstChoiceGap": {
            "type": "integer"
          },
          "firstChoiceJudgement": {
            "knownValues": [
              "A",
              "B",
              "C",
              "D",
              "E",
              "Z"
            ],
            "type": "string"
          },
          "firstChoiceTargetScore": {
            "minimum": 0,
            "type": "integer"
          },
          "goal": {
            "maxLength": 1500,
            "type": "string"
          },
          "localId": {
            "description": "Matches local MockExamReview.id and equals this record's own rkey (see the record-level description above).",
            "maxLength": 100,
            "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"
          },
          "scaleVersion": {
            "description": "Current writers emit 1 and store totalDeviation, subject deviation, and section averageScore as integers scaled by 10. Existing records without this marker use the same scale.",
            "minimum": 1,
            "type": "integer"
          },
          "subjects": {
            "items": {
              "ref": "#subject",
              "type": "ref"
            },
            "maxLength": 30,
            "type": "array"
          },
          "totalApplicants": {
            "minimum": 0,
            "type": "integer"
          },
          "totalDeviation": {
            "type": "integer"
          },
          "totalFullScore": {
            "minimum": 1,
            "type": "integer"
          },
          "totalScore": {
            "minimum": 0,
            "type": "integer"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "localId",
          "examName",
          "date",
          "totalScore",
          "totalFullScore",
          "subjects",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "section": {
      "properties": {
        "averageScore": {
          "type": "integer"
        },
        "fieldName": {
          "maxLength": 600,
          "type": "string"
        },
        "fullScore": {
          "minimum": 1,
          "type": "integer"
        },
        "id": {
          "maxLength": 100,
          "type": "string"
        },
        "longAction": {
          "maxLength": 1500,
          "type": "string"
        },
        "lossCause": {
          "maxLength": 300,
          "type": "string"
        },
        "mentalState": {
          "maxLength": 1500,
          "type": "string"
        },
        "nextTargetScore": {
          "minimum": 0,
          "type": "integer"
        },
        "score": {
          "minimum": 0,
          "type": "integer"
        },
        "shortAction": {
          "maxLength": 1500,
          "type": "string"
        },
        "timePlanActual": {
          "maxLength": 1500,
          "type": "string"
        }
      },
      "required": [
        "id",
        "fieldName",
        "score",
        "fullScore"
      ],
      "type": "object"
    },
    "subject": {
      "properties": {
        "color": {
          "maxLength": 7,
          "type": "string"
        },
        "deviation": {
          "type": "integer"
        },
        "id": {
          "maxLength": 100,
          "type": "string"
        },
        "name": {
          "maxLength": 300,
          "type": "string"
        },
        "sections": {
          "items": {
            "ref": "#section",
            "type": "ref"
          },
          "maxLength": 80,
          "type": "array"
        },
        "subjectId": {
          "maxLength": 100,
          "type": "string"
        },
        "subjectName": {
          "maxLength": 300,
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "sections"
      ],
      "type": "object"
    }
  },
  "id": "app.studynext.mockExam",
  "lexicon": 1
}
```
