{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A single card entry in a collector's collection.",
      "key": "tid",
      "record": {
        "properties": {
          "acquisitionDate": {
            "format": "date",
            "type": "string"
          },
          "authorAvatar": {
            "format": "uri",
            "type": "string"
          },
          "authorDid": {
            "format": "did",
            "type": "string"
          },
          "authorHandle": {
            "type": "string"
          },
          "authorName": {
            "type": "string"
          },
          "binderIndex": {
            "type": "integer"
          },
          "cardName": {
            "type": "string"
          },
          "cardNumber": {
            "description": "Card number within the set",
            "type": "string"
          },
          "cardUri": {
            "description": "TCGDex card id (canonical reference to the catalog record)",
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "condition": {
            "knownValues": [
              "mint",
              "near_mint",
              "excellent",
              "good",
              "damaged"
            ],
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "imageUrl": {
            "format": "uri",
            "type": "string"
          },
          "marketValue": {
            "type": "number"
          },
          "notes": {
            "maxLength": 500,
            "type": "string"
          },
          "purchasePrice": {
            "type": "number"
          },
          "rarity": {
            "type": "string"
          },
          "setCode": {
            "description": "Canonical TCGDex set id (e.g. sv04.5)",
            "type": "string"
          },
          "setName": {
            "type": "string"
          },
          "showcased": {
            "type": "boolean"
          },
          "variant": {
            "knownValues": [
              "normal",
              "holo",
              "reverse_holo"
            ],
            "type": "string"
          }
        },
        "required": [
          "cardUri",
          "cardName",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A Pokémon TCG card held in a collector's digital binder. Mirrored from the SwapPulse CollectionEntry entity so collection state is portable across PDSs.",
  "id": "org.swappulse.collectionEntry",
  "lexicon": 1,
  "revision": 1
}
