Files
3pmonitor/clickhouse/data/store/99d/99d8dbd8-b795-4e61-a238-8d938cf8e998/bets.sql
2026-02-22 15:04:51 +00:00

13 lines
316 B
SQL

ATTACH TABLE _ UUID 'dedff8ef-33fa-4b7f-ae66-ab20b40fea65'
(
`game_no` UInt64,
`user_id` UInt64,
`chair` UInt8,
`bet_amount` UInt64,
`total_bet` UInt64,
`created_at` DateTime64(3) DEFAULT now64(3)
)
ENGINE = MergeTree
ORDER BY (game_no, user_id, created_at)
SETTINGS index_granularity = 8192