-- 驾驶员综合查询相关索引优化

-- hot_driver 表索引
CREATE INDEX idx_hot_driver_company_id ON hot_driver (company_id);
CREATE INDEX idx_hot_driver_vehicle_id ON hot_driver (vehicle_id);
CREATE INDEX idx_hot_driver_name ON hot_driver (name);
CREATE INDEX idx_hot_driver_phone ON hot_driver (phone);
CREATE INDEX idx_hot_driver_id_card ON hot_driver (id_card_no);
CREATE INDEX idx_hot_driver_plate_number ON hot_driver (plate_number);

-- hot_driver_license 表索引
CREATE INDEX idx_hot_driver_license_driver_id ON hot_driver_license (driver_id);

-- hot_driver_prof_cert 表索引
CREATE INDEX idx_hot_driver_prof_cert_driver_id ON hot_driver_prof_cert (driver_id);

-- hot_vehicle 表索引
CREATE INDEX idx_hot_vehicle_plate_number ON hot_vehicle (plate_number);

-- sys_company 表索引 (通常已有，补充 company_name)
CREATE INDEX idx_sys_company_name ON sys_company (company_name);
