表结构
CREATE TABLE t_bike_info
(
id
bigint(19) NOT NULL /*T![auto_rand] AUTO_RANDOM(5) */ COMMENT ‘主键’,
sku_id
bigint(19) NOT NULL DEFAULT ‘0’ ,
vin
varchar(64) COLLATE utf8_general_ci NOT NULL DEFAULT ‘’ ,
vin_pwd
varchar(64) COLLATE utf8_general_ci DEFAULT ‘’ ,
sap_vin
varchar(64) COLLATE utf8_general_ci DEFAULT ‘-1’ ,
bind_code
varchar(64) COLLATE utf8_general_ci DEFAULT NULL ,
frame_manu
varchar(32) COLLATE utf8_general_ci DEFAULT NULL ,
sc_date
timestamp(3) NULL DEFAULT NULL COMMENT ‘生产日期’,
fh_date
timestamp(3) NULL DEFAULT NULL COMMENT ‘发货日期’,
dealer_no
varchar(32) COLLATE utf8_general_ci DEFAULT NULL ,
djh
varchar(200) COLLATE utf8_general_ci DEFAULT NULL ,
qc
varchar(60) COLLATE utf8_general_ci DEFAULT NULL ,
iot_id
bigint(19) DEFAULT NULL ,
ble_id
bigint(19) DEFAULT NULL ,
batt_type
tinyint(2) DEFAULT ‘-1’ ,
user_id
bigint(19) DEFAULT NULL ,
comm_module_type
tinyint(2) DEFAULT ‘0’ ,
meter_id
bigint(19) DEFAULT NULL ,
material_number
varchar(64) COLLATE utf8_general_ci DEFAULT NULL ,
zone_code
varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL ,
zone_name
varchar(60) COLLATE utf8_general_ci DEFAULT NULL COMMENT ‘基地名称’,
country_code
varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL ,
country_name
varchar(100) COLLATE utf8_general_ci DEFAULT NULL ,
source
tinyint(2) DEFAULT NULL ,
smart_type
tinyint(2) DEFAULT ‘-1’ ,
bt_unique_key
varchar(64) COLLATE utf8_general_ci NOT NULL ,
experimental
tinyint(2) NOT NULL DEFAULT ‘1’ ,
del_flag
tinyint(2) DEFAULT ‘0’ ,
create_time
timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ,
update_time
timestamp(3) DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3) ,
PRIMARY KEY (id
) /*T![clustered_index] CLUSTERED */,
KEY i_bike_info_vin_create_time
(vin
,create_time
),
KEY i_bike_info_create_time
(create_time
),
KEY i_bike_info_user
(user_id
),
KEY i_bike_info_iot_id
(iot_id
),
KEY i_bike_info_meter_id
(meter_id
),
KEY i_bike_info_ble_id
(ble_id
),
KEY idx_vbimdc
(vin
,ble_id
,iot_id
,meter_id
,del_flag
,create_time
),
KEY idx_t_bike_info_sap_vin_normal
(sap_vin
),
KEY i_bike_info_experimental
(experimental
),
KEY idx_t_bike_info_bind_code_normal
(bind_code
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci /*T![auto_rand_base] AUTO_RANDOM_BASE=4712456 */ ;