{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "card": {
      "key": "tid",
      "record": {
        "description": "a single flashcard",
        "properties": {
          "backLang": {
            "maxGraphemes": 2,
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "backText": {
            "maxLength": 4096,
            "minLength": 1,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "frontLang": {
            "maxGraphemes": 2,
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "frontText": {
            "maxLength": 4096,
            "minLength": 1,
            "type": "string"
          },
          "stackId": {
            "format": "record-key",
            "type": "string"
          }
        },
        "required": [
          "backLang",
          "backText",
          "createdAt",
          "frontLang",
          "frontText",
          "stackId"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "stack": {
      "key": "tid",
      "record": {
        "description": "a stack of flashcards",
        "properties": {
          "backLang": {
            "maxGraphemes": 2,
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "frontLang": {
            "default": "en",
            "maxGraphemes": 2,
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "label": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "label"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "xyz.flatshcards.cards",
  "lexicon": 1
}
