{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Legacy public-PDS backup pointer retained only to read existing records. New StudyNext clients store backups in authenticated private AppView storage; do not create new public backup records. Existing public blobs may remain. Legacy rkey is the local date (YYYY-MM-DD) on which the backup was taken.",
      "key": "any",
      "record": {
        "properties": {
          "archive": {
            "accept": [
              "application/json"
            ],
            "type": "blob"
          },
          "exportedAt": {
            "format": "datetime",
            "type": "string"
          },
          "localDate": {
            "description": "Local calendar date in YYYY-MM-DD format; the same value is used as the record rkey.",
            "type": "string"
          },
          "mimeType": {
            "maxLength": 100,
            "type": "string"
          },
          "version": {
            "description": "Backup archive format version.",
            "type": "integer"
          }
        },
        "required": [
          "localDate",
          "exportedAt",
          "version",
          "mimeType",
          "archive"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.backup",
  "lexicon": 1
}
