# space.opendeck.card

> Published by [opendeck.space](https://lexicon.garden/identity/did:plc:5xoilbawtptc3wha4zplgkwd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:5xoilbawtptc3wha4zplgkwd/space.opendeck.card)
- [Documentation](https://lexicon.garden/lexicon/did:plc:5xoilbawtptc3wha4zplgkwd/space.opendeck.card/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:5xoilbawtptc3wha4zplgkwd/space.opendeck.card/examples)

## Definitions

### `space.opendeck.card`

**Type**: `record`

A flashcard belonging to a deck.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `audio` | `blob` | No | Optional audio blob (pronunciation). |
| `back` | `string` | Yes |  |
| `backReading` | `string` | No | Reading of the back, e.g. IPA, pinyin or rōmaji. |
| `createdAt` | `string` (datetime) | Yes |  |
| `deck` | `string` | Yes | Record key (rkey) of the owning deck in the same repo. |
| `examples` | `array` | No |  |
| `front` | `string` | Yes |  |
| `frontReading` | `string` | No | Reading of the front, e.g. IPA, pinyin or rōmaji. |
| `hint` | `string` | No |  |
| `image` | `blob` | No | Optional image blob shown on the card. |
| `imageAlt` | `string` | No | Alt text for the image (accessibility). |
| `order` | `integer` | No |  |
| `updatedAt` | `string` (datetime) | No |  |

## Raw Schema

```json
{
  "$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
}
```
