table('customer_visit_log')->addIndex(['customer_id', 'state'])->update(); } }