-- reference / read-only --
How the schema actually works, then every table in it
The diagram below shows the real mechanism — how a bet, a deposit, or a withdrawal moves through the database. The reference underneath lists all 104 tables individually, grouped by function, each with its original obfuscated name for traceability.
Money & data flow
Three user-initiated flows (deposit, bet, withdraw) all read and write the same wallet balance. Game settlement runs on its own clock, independent of any single user request, and feeds results back into the bet a player already placed.
user_wallets.balance. Game settlement (teal path) is decoupled from the request that placed the bet — it runs on a cron schedule and writes back into the same bet row once a round resolves. The same shape repeats for WinGo, 5D, K3, and TRX games at 1/3/5/10-minute durations — 16 near-identical copies of the bet/round/result trio.