{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A flashcard belonging to a deck.",
      "key": "tid",
      "record": {
        "properties": {
          "audio": {
            "accept": [
              "audio/*"
            ],
            "description": "Optional audio blob (pronunciation).",
            "maxSize": 5000000,
            "type": "blob"
          },
          "back": {
            "maxGraphemes": 2000,
            "maxLength": 20000,
            "type": "string"
          },
          "backReading": {
            "description": "Reading of the back, e.g. IPA, pinyin or rōmaji.",
            "maxGraphemes": 500,
            "maxLength": 5000,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "deck": {
            "description": "Record key (rkey) of the owning deck in the same repo.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "examples": {
            "items": {
              "maxGraphemes": 1000,
              "maxLength": 10000,
              "type": "string"
            },
            "maxLength": 20,
            "type": "array"
          },
          "front": {
            "maxGraphemes": 2000,
            "maxLength": 20000,
            "type": "string"
          },
          "frontReading": {
            "description": "Reading of the front, e.g. IPA, pinyin or rōmaji.",
            "maxGraphemes": 500,
            "maxLength": 5000,
            "type": "string"
          },
          "hint": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "image": {
            "accept": [
              "image/*"
            ],
            "description": "Optional image blob shown on the card.",
            "maxSize": 5000000,
            "type": "blob"
          },
          "imageAlt": {
            "description": "Alt text for the image (accessibility).",
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "order": {
            "type": "integer"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "deck",
          "front",
          "back",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "space.opendeck.card",
  "lexicon": 1
}
