{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A challenge entry contribution.",
      "key": "tid",
      "record": {
        "properties": {
          "category": {
            "type": "string"
          },
          "challengeId": {
            "type": "string"
          },
          "challengeRef": {
            "format": "at-uri",
            "type": "string"
          },
          "collectionTotalValue": {
            "type": "number"
          },
          "contributionCount": {
            "type": "integer"
          },
          "contributionUris": {
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 1000,
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "deckList": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "entryType": {
            "knownValues": [
              "set_progress",
              "deck_list",
              "card_pull",
              "collection_value"
            ],
            "type": "string"
          },
          "moderatorLabels": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "notes": {
            "maxLength": 500,
            "type": "string"
          },
          "overrideProfileVisibility": {
            "type": "object"
          },
          "participantDid": {
            "format": "did",
            "type": "string"
          },
          "participantName": {
            "type": "string"
          },
          "pullPostUri": {
            "format": "at-uri",
            "type": "string"
          },
          "rejectionReason": {
            "maxLength": 200,
            "type": "string"
          },
          "setCompletionPercent": {
            "type": "number"
          },
          "status": {
            "knownValues": [
              "pending",
              "approved",
              "rejected",
              "expired"
            ],
            "type": "string"
          },
          "submittedAt": {
            "format": "datetime",
            "type": "string"
          },
          "verificationHash": {
            "type": "string"
          }
        },
        "required": [
          "challengeId",
          "entryType",
          "submittedAt",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A user's contribution to a challenge, mirrored to AT Protocol as a real org.swappulse.challengeEntry record. References the challenge via strongRef so entries are portable and verifiable across instances.",
  "id": "org.swappulse.challengeEntry",
  "lexicon": 1,
  "revision": 1
}
