# app.studynext.event

> A study calendar event (exam/test/lesson goal date). 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.event)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.event/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:nstib2qjcu3tyun7cxz4dxcm/app.studynext.event/analytics)

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

Type: record · key any

### Properties

- `accent` (string, required): Accent color (hex code).
  - Constraints: maxLength: 7
- `createdAt` (string · datetime, required)
- `date` (string, required): Event calendar date in YYYY-MM-DD format; not a timestamp.
- `endDate` (string): End date for multi-day events in YYYY-MM-DD format; absent means a single-day event.
- `localId` (string, required): Matches local StudyEvent.id and equals this record's own rkey (see the record-level description above).
  - Constraints: maxLength: 100
- `note` (string)
  - Constraints: maxLength: 1500
- `notifyDayBefore` (boolean)
- `notifyOnDay` (boolean)
- `pdsRkey` (string · tid): Canonical migrated TID rkey. It points to a create-only copy while the legacy source record remains readable.
- `title` (string, required)
  - Constraints: maxLength: 600
- `type` (string, required)
  - Constraints: knownValues: exam | test | lesson | other
- `updatedAt` (string · datetime, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A study calendar event (exam/test/lesson goal date). 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": {
          "accent": {
            "description": "Accent color (hex code).",
            "maxLength": 7,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "date": {
            "description": "Event calendar date in YYYY-MM-DD format; not a timestamp.",
            "type": "string"
          },
          "endDate": {
            "description": "End date for multi-day events in YYYY-MM-DD format; absent means a single-day event.",
            "type": "string"
          },
          "localId": {
            "description": "Matches local StudyEvent.id and equals this record's own rkey (see the record-level description above).",
            "maxLength": 100,
            "type": "string"
          },
          "note": {
            "maxLength": 1500,
            "type": "string"
          },
          "notifyDayBefore": {
            "type": "boolean"
          },
          "notifyOnDay": {
            "type": "boolean"
          },
          "pdsRkey": {
            "description": "Canonical migrated TID rkey. It points to a create-only copy while the legacy source record remains readable.",
            "format": "tid",
            "type": "string"
          },
          "title": {
            "maxLength": 600,
            "type": "string"
          },
          "type": {
            "knownValues": [
              "exam",
              "test",
              "lesson",
              "other"
            ],
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "localId",
          "title",
          "date",
          "type",
          "accent",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.event",
  "lexicon": 1
}
```
