# xyz.flatshcards.cards

> Published by [flatshcards.xyz](https://lexicon.garden/identity/did:plc:5g5vtukf37g77dhfbvbrzrgy)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:5g5vtukf37g77dhfbvbrzrgy/xyz.flatshcards.cards)
- [Documentation](https://lexicon.garden/lexicon/did:plc:5g5vtukf37g77dhfbvbrzrgy/xyz.flatshcards.cards/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:5g5vtukf37g77dhfbvbrzrgy/xyz.flatshcards.cards/examples)

## Definitions

### `xyz.flatshcards.cards#card`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `stackId` | `string` (record-key) | Yes |  |
| `backLang` | `string` | Yes |  |
| `backText` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `frontLang` | `string` | Yes |  |
| `frontText` | `string` | Yes |  |

### `xyz.flatshcards.cards#stack`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `label` | `string` | Yes |  |
| `backLang` | `string` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `frontLang` | `string` | No |  |

## Raw Schema

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