main
黄海 6 months ago
parent 37c0658604
commit a43ae99313

@ -1,20 +1,20 @@
CREATE TABLE t_equipment_charge_order ( CREATE TABLE t_equipment_charge_order (
id UInt64, id Int64,
user_id UInt64, user_id Int64,
company_id UInt64, company_id Int64,
station_id UInt64, station_id Int64,
equipment_id UInt64, equipment_id Int64,
connector_id UInt64, connector_id Int64,
user_card_no Nullable(String), user_card_no Nullable(String),
state Nullable(UInt8), state Nullable(Int8),
operate_state UInt8 DEFAULT 0, operate_state Int8 DEFAULT 0,
order_no String, order_no String,
platform_order_no Nullable(String), platform_order_no Nullable(String),
platform_sale_type UInt8 DEFAULT 1, platform_sale_type Int8 DEFAULT 1,
platform_driver_id Nullable(String), platform_driver_id Nullable(String),
platform_phone Nullable(String), platform_phone Nullable(String),
charging_amt Decimal(20,2) DEFAULT 0.00, charging_amt Decimal(20,2) DEFAULT 0.00,
order_type Nullable(UInt8), order_type Nullable(Int8),
order_time DateTime, order_time DateTime,
charge_begin_time DateTime, charge_begin_time DateTime,
charge_end_time DateTime, charge_end_time DateTime,
@ -23,11 +23,11 @@ CREATE TABLE t_equipment_charge_order (
charge_degree Float64 DEFAULT 0.000, charge_degree Float64 DEFAULT 0.000,
charge_ah Float64 DEFAULT 0.00, charge_ah Float64 DEFAULT 0.00,
charge_times_degree Nullable(String), charge_times_degree Nullable(String),
charge_begin_soc UInt32 DEFAULT 0, charge_begin_soc Int32 DEFAULT 0,
charge_end_soc UInt32 DEFAULT 0, charge_end_soc Int32 DEFAULT 0,
charge_cur_soc UInt32 DEFAULT 0, charge_cur_soc Int32 DEFAULT 0,
charge_duration UInt32 DEFAULT 0, charge_duration Int32 DEFAULT 0,
charge_settle_type Nullable(UInt8), charge_settle_type Nullable(Int8),
charge_unit_price Decimal(10,7), charge_unit_price Decimal(10,7),
charge_unit_cost Decimal(10,7), charge_unit_cost Decimal(10,7),
charge_unit_service_fee Decimal(20,7), charge_unit_service_fee Decimal(20,7),
@ -40,76 +40,76 @@ CREATE TABLE t_equipment_charge_order (
actual_pay_amount Decimal(20,2) DEFAULT 0.00, actual_pay_amount Decimal(20,2) DEFAULT 0.00,
pay_order_no Nullable(String), pay_order_no Nullable(String),
pay_amount Decimal(20,2) DEFAULT 0.00, pay_amount Decimal(20,2) DEFAULT 0.00,
pay_method Nullable(UInt8), pay_method Nullable(Int8),
pay_status UInt8 DEFAULT 0, pay_status Int8 DEFAULT 0,
pay_time Nullable(DateTime), pay_time Nullable(DateTime),
user_coupon_id Nullable(Int64), user_coupon_id Nullable(Int64),
coupon_name Nullable(String), coupon_name Nullable(String),
coupon_type Nullable(UInt8), coupon_type Nullable(Int8),
coupon_amount Decimal(20,2) DEFAULT 0.00, coupon_amount Decimal(20,2) DEFAULT 0.00,
elecfee_coupon_amount Decimal(20,2) DEFAULT 0.00, elecfee_coupon_amount Decimal(20,2) DEFAULT 0.00,
servicefee_coupon_amount Decimal(20,2) DEFAULT 0.00, servicefee_coupon_amount Decimal(20,2) DEFAULT 0.00,
invoice_id Nullable(UInt64), invoice_id Nullable(Int64),
invoice_fee Decimal(20,2) DEFAULT 0.00, invoice_fee Decimal(20,2) DEFAULT 0.00,
ticket_status UInt8 DEFAULT 0, ticket_status Int8 DEFAULT 0,
activity_electric_fee Decimal(20,7) DEFAULT 0.0000000, activity_electric_fee Decimal(20,7) DEFAULT 0.0000000,
activity_service_fee Decimal(20,2) DEFAULT 0.00, activity_service_fee Decimal(20,2) DEFAULT 0.00,
charge_plate_no Nullable(String), charge_plate_no Nullable(String),
charge_vin Nullable(String), charge_vin Nullable(String),
charge_strategy Nullable(String), charge_strategy Nullable(String),
charge_strategy_param Nullable(String), charge_strategy_param Nullable(String),
operator_id Nullable(UInt8), operator_id Nullable(Int8),
operator_income Decimal(20,2) DEFAULT 0.00, operator_income Decimal(20,2) DEFAULT 0.00,
plat_service_fee Decimal(20,2) DEFAULT 0.00, plat_service_fee Decimal(20,2) DEFAULT 0.00,
charge_discount_type UInt8 DEFAULT 0, charge_discount_type Int8 DEFAULT 0,
settle_electric_fee Decimal(20,2) DEFAULT 0.00, settle_electric_fee Decimal(20,2) DEFAULT 0.00,
settle_service_fee Decimal(20,2) DEFAULT 0.00, settle_service_fee Decimal(20,2) DEFAULT 0.00,
settle_fee Decimal(20,2) DEFAULT 0.00, settle_fee Decimal(20,2) DEFAULT 0.00,
settle_method UInt8 DEFAULT 2, settle_method Int8 DEFAULT 2,
settle_coupon_amount Decimal(20,2) DEFAULT 0.00, settle_coupon_amount Decimal(20,2) DEFAULT 0.00,
settle_coupon_electric_fee Decimal(20,2) DEFAULT 0.00, settle_coupon_electric_fee Decimal(20,2) DEFAULT 0.00,
settle_coupon_service_fee Decimal(20,2) DEFAULT 0.00, settle_coupon_service_fee Decimal(20,2) DEFAULT 0.00,
settle_status UInt8 DEFAULT 0, settle_status Int8 DEFAULT 0,
cancel_type Nullable(UInt32), cancel_type Nullable(Int32),
cancel_code Nullable(UInt32), cancel_code Nullable(Int32),
cancel_msg Nullable(String), cancel_msg Nullable(String),
cancel_time Nullable(DateTime), cancel_time Nullable(DateTime),
finish_type Nullable(UInt32), finish_type Nullable(Int32),
finish_code Nullable(UInt32), finish_code Nullable(Int32),
finish_msg Nullable(String), finish_msg Nullable(String),
finish_time Nullable(DateTime), finish_time Nullable(DateTime),
boot_mode UInt8 DEFAULT 1, boot_mode Int8 DEFAULT 1,
settlement_type UInt8 DEFAULT 0, settlement_type Int8 DEFAULT 0,
is_parking_coupon UInt8 DEFAULT 0, is_parking_coupon Int8 DEFAULT 0,
control_source Nullable(String), control_source Nullable(String),
exception_flag UInt8 DEFAULT 0, exception_flag Int8 DEFAULT 0,
exception_msg Nullable(String), exception_msg Nullable(String),
report_time DateTime, report_time DateTime,
com_service_fee Decimal(10,2) DEFAULT 0.00, com_service_fee Decimal(10,2) DEFAULT 0.00,
com_electric_fee Decimal(10,2) DEFAULT 0.00, com_electric_fee Decimal(10,2) DEFAULT 0.00,
com_total_fee Decimal(10,2) DEFAULT 0.00, com_total_fee Decimal(10,2) DEFAULT 0.00,
com_charge_discount_type Nullable(UInt8), com_charge_discount_type Nullable(Int8),
com_charge_discount Float64 DEFAULT 0.00, com_charge_discount Float64 DEFAULT 0.00,
has_shallow_report UInt8 DEFAULT 0, has_shallow_report Int8 DEFAULT 0,
has_deep_report UInt8 DEFAULT 0, has_deep_report Int8 DEFAULT 0,
is_exception UInt8 DEFAULT 0, is_exception Int8 DEFAULT 0,
shallow_report_is_received UInt8 DEFAULT 0, shallow_report_is_received Int8 DEFAULT 0,
create_time DateTime, create_time DateTime,
update_time DateTime, update_time DateTime,
charge_market_id Nullable(UInt64), charge_market_id Nullable(Int64),
coupon_total_amount Decimal(20,2) DEFAULT 0.00, coupon_total_amount Decimal(20,2) DEFAULT 0.00,
coupon_service_total_amount Decimal(20,2) DEFAULT 0.00, coupon_service_total_amount Decimal(20,2) DEFAULT 0.00,
coupon_elecfee_total_amount Decimal(20,2) DEFAULT 0.00, coupon_elecfee_total_amount Decimal(20,2) DEFAULT 0.00,
activity_name String DEFAULT '', activity_name String DEFAULT '',
activity_total_fee Decimal(20,2) DEFAULT 0.00, activity_total_fee Decimal(20,2) DEFAULT 0.00,
company_activity_id Nullable(UInt64), company_activity_id Nullable(Int64),
company_activity_name Nullable(String), company_activity_name Nullable(String),
company_activity_total_fee Decimal(20,2) DEFAULT 0.00, company_activity_total_fee Decimal(20,2) DEFAULT 0.00,
company_activity_service_fee Decimal(20,2) DEFAULT 0.00, company_activity_service_fee Decimal(20,2) DEFAULT 0.00,
company_activity_electric_fee Decimal(32,7) DEFAULT 0.0000000, company_activity_electric_fee Decimal(32,7) DEFAULT 0.0000000,
subsidy_degree Decimal(20,3) DEFAULT 0.000, subsidy_degree Decimal(20,3) DEFAULT 0.000,
subsidy_fee Decimal(20,2) DEFAULT 0.00, subsidy_fee Decimal(20,2) DEFAULT 0.00,
special_channel_order_source Nullable(UInt8) special_channel_order_source Nullable(Int8)
) ENGINE = MergeTree() ) ENGINE = MergeTree()
ORDER BY (create_time, id) ORDER BY (create_time, id)
SETTINGS index_granularity = 8192 SETTINGS index_granularity = 8192
Loading…
Cancel
Save