{
  "lexicon": 1,
  "id": "me.gdey.resolutionroulette.elimination",
  "defs": {
    "main": {
      "type": "record",
      "description": "Records the elimination of one resolution on a given day. One record per day per entry; rkey is a TID assigned at write time.",
      "key": "tid",
      "record": {
        "type": "object",
        "required": ["entryRef", "eliminatedId", "eliminatedText", "eliminatedAt", "eliminationDate"],
        "properties": {
          "entryRef": {
            "type": "ref",
            "ref": "com.atproto.repo.strongRef",
            "description": "Strong reference to the parent entry record."
          },
          "eliminatedId": {
            "type": "integer",
            "description": "The id of the eliminated resolution, as set in the entry's resolution list."
          },
          "eliminatedText": {
            "type": "string",
            "description": "Snapshot of the eliminated resolution's text at the time of elimination. Preserved here so the elimination record is self-contained if the entry is later modified.",
            "maxGraphemes": 1000,
            "maxLength": 10000
          },
          "eliminatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when this elimination was recorded by the worker."
          },
          "eliminationDate": {
            "type": "string",
            "format": "date",
            "description": "The calendar date (YYYY-MM-DD, UTC) for which this resolution was eliminated. Used by the reconciler to determine which days have already been processed."
          }
        }
      }
    }
  }
}
