{
"id": "rodeo.vibecode.tatakae.battle.record",
"defs": {
"main": {
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"opponent",
"playerType",
"opponentType",
"won",
"turns",
"finalPlayerHp",
"finalOpponentHp",
"createdAt"
],
"properties": {
"won": {
"type": "boolean",
"description": "True if the player won."
},
"turns": {
"type": "integer",
"minimum": 1,
"description": "Number of combat turns before the battle ended."
},
"opponent": {
"type": "string",
"format": "handle",
"description": "Handle of the opponent."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "ISO 8601 timestamp of when the battle took place."
},
"playerType": {
"type": "string",
"description": "Primary type of the player's fighter."
},
"opponentType": {
"type": "string",
"description": "Primary type of the opponent's fighter."
},
"finalPlayerHp": {
"type": "integer",
"minimum": 0,
"description": "Player HP remaining at end of battle."
},
"finalOpponentHp": {
"type": "integer",
"minimum": 0,
"description": "Opponent HP remaining at end of battle."
}
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"description": "A record of a single Tatakae battle between two AT Protocol accounts."
}