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

17 lines
409 B
SQL

ATTACH TABLE _ UUID 'ef0c798e-b4c3-48e5-80f7-8f19b3090bcb'
(
`user_id` UInt64,
`nick_name` String,
`rich_level` UInt16,
`actor_level` UInt16,
`gender` UInt8,
`consume_total` UInt64,
`earn_total` UInt64,
`is_actor` UInt8,
`portrait` String,
`updated_at` DateTime DEFAULT now()
)
ENGINE = ReplacingMergeTree(updated_at)
ORDER BY user_id
SETTINGS index_granularity = 8192