15 lines
362 B
SQL
15 lines
362 B
SQL
drop table if exists xiangsu.user;
|
|
create table xiangsu.user
|
|
(
|
|
|
|
`#reg_time` DateTime('UTC'),
|
|
`#account_id` String,
|
|
`svrindex` String,
|
|
|
|
`#zone_offset` Int8 default 8,
|
|
`#server_time` DateTime('UTC') default now()
|
|
|
|
) ENGINE = ReplacingMergeTree()
|
|
PARTITION BY `svrindex`
|
|
order by `#account_id`
|