Data Ownership
Data ownership is the heart of CGSP. Knowing what each side stores explains why every endpoint exists. The dividing line: the financial truth lives on the platform; the game truth lives in the service.
Platform-owned
Section titled “Platform-owned”The platform owns these. A game service never reads them directly; it reaches them over HTTP.
| Table / concept | Contents |
|---|---|
partners | Master record of operators (the B2B customers) |
operators | Dealer/operator accounts under a partner |
partner_allowed_games | Which games are open to which operator |
partner_allowed_currencies | Which currencies are open to which operator |
services | Registered game services (including this one) |
games | Playable game records (one or more per runtime profile) |
service_runtime_profiles | An engine’s behavior config (RTP, max multiplier, …) |
transactions | The financial ledger — one record per bet, idempotent |
players | Player identities (passed in from the operator) |
admin_users | People with Back Office access |
currencies, currency_rate_history | Currencies and exchange rates |
translator_assignments | Localization coordination |
Service-owned
Section titled “Service-owned”The service owns these. The platform never reads them.
| Example table | Contents |
|---|---|
hilo_rounds | Each round’s start, card values, and end state |
hilo_bets | Each player bet’s in-game detail (choice, card, win) |
crash_skins | The service’s skin catalog — skinKey UUIDs, display names |
crash_skin_translation_template | Initial translation key set per skin |
schema_migrations | The service’s own migration tracking |
A service can add whatever else it needs — round/bet tables, session state, bot history, skin assets and translations. The structure is the developer’s to design. The platform proxies skin and translation APIs through to the service but never owns the underlying records.
The one hard rule
Section titled “The one hard rule”The financial record — who won or lost how much — is written to the platform’s
transactions ledger as the single source of truth. A service may keep its own
financial snapshot, but the platform ledger is always authoritative. See
Config + Ledger for how bets are opened and
settled there.