betting_combat.schemas.tables.catalog
catalog.py — the tables where ids are a thing: our id, the core facts, and every vendor’s id on one row. Every other table carries our ids only.
EventsTable events (event_id) one card: an ``Event``FightersTable fighters (fighter_id) one person: a ``Fighter``BoutsTable bouts (bout_id) one scheduled fight and its result: a ``Bout``MarketsTable markets (market_id) one venue's contract on a fight: a ``Market``A vendor’s id is unique where present (a partial unique index). Where a vendor has several for
one of ours (Kalshi minted two competitor ids for 8 fighters and listed 3 fights twice), the
column is an array, searched with = ANY.
Classes
BoutsTable
Bases: Stored
One scheduled fight, cancelled ones kept.
EventsTable
Bases: Stored
One card.
FightersTable
Bases: Stored
One fighter: the facts that do not change.
MarketsTable
Bases: Stored
One venue’s contract on one fight (never merged across venues: their rules differ).