17 lines
409 B
SQL
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
|