{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Migrated card data from api.syui.ai",
      "key": "literal:self",
      "record": {
        "properties": {
          "card": {
            "items": {
              "properties": {
                "cid": {
                  "description": "Unique card instance ID",
                  "type": "string"
                },
                "cp": {
                  "description": "Card power",
                  "type": "integer"
                },
                "id": {
                  "description": "Card type ID",
                  "type": "integer"
                },
                "rare": {
                  "description": "Rarity level",
                  "type": "integer"
                },
                "unique": {
                  "description": "Unique card flag",
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "cp",
                "rare",
                "cid",
                "unique"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "checksum": {
            "type": "string"
          },
          "migratedAt": {
            "format": "datetime",
            "type": "string"
          },
          "user": {
            "properties": {
              "aiten": {
                "type": "integer"
              },
              "coin": {
                "type": "integer"
              },
              "createdAt": {
                "format": "datetime",
                "type": "string"
              },
              "did": {
                "type": "string"
              },
              "fav": {
                "type": "integer"
              },
              "planet": {
                "type": "integer"
              },
              "updatedAt": {
                "format": "datetime",
                "type": "string"
              },
              "username": {
                "type": "string"
              }
            },
            "required": [
              "username"
            ],
            "type": "object"
          }
        },
        "required": [
          "user",
          "card",
          "migratedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.syui.card.old",
  "lexicon": 1
}
