Files
iotlcm/admin-svr/server/resource/migrations/20260922_traffic_cutoff_scan_indexes.sql
T

7 lines
468 B
SQL

-- Support the 15-minute traffic-cutoff threshold scan and cross-month reapply scan.
ALTER TABLE `t_sim_card_info`
ADD INDEX `idx_card_traffic_cutoff_threshold_scan`
(`traffic_cutoff_status`, `data_service_status`, `package_status`, `boss_card_status`, `is_flow_pool`, `id`),
ADD INDEX `idx_card_traffic_cutoff_hold_scan`
(`traffic_cutoff_status`, `traffic_cutoff_cross_month_hold`, `traffic_cutoff_triggered_at`, `data_service_status`, `id`);