CREATE TABLE t_equipment (
    id Int64,
    station_id Nullable(Int64),
    agreement_id Nullable(Int8),
    equipment_name Nullable(String),
    equipment_sn String,
    equipment_short_sn String,
    equipment_no Nullable(Int64),
    manufacturer_id Nullable(String),
    manufacturer_sn Nullable(String),
    manufacturer_name Nullable(String),
    equipment_model Nullable(String),
    production_date Nullable(DateTime),
    equipment_type Int8,
    equipment_type_msg Nullable(String),
    equipment_lng Nullable(Float64),
    equipment_lat Nullable(Float64),
    connector_count Nullable(Int8),
    power Float64,
    national_standard Nullable(Int8),
    national_standard_msg Nullable(String),
    status Nullable(Int8),
    equipment_business_type Nullable(Int8),
    equipment_business_type_msg Nullable(String),
    is_use_card Int8,
    is_use_card_msg Nullable(String),
    charge_host_esn Nullable(String),
    create_time Nullable(DateTime),
    update_time Nullable(DateTime),
    aux_power Nullable(Int8),
    INDEX equipment_sn (equipment_sn) TYPE minmax GRANULARITY 3,
    INDEX equipment_short_sn (equipment_short_sn) TYPE minmax GRANULARITY 3,
    INDEX id (id) TYPE minmax GRANULARITY 3,
    INDEX idx_station_id (station_id) TYPE minmax GRANULARITY 3
) ENGINE = ReplacingMergeTree()
ORDER BY (id)
SETTINGS index_granularity = 8192;