### 7. Time Attack Challenges
**What it does:** Auto-generated weekly/monthly time attack events.
**Database Table:** `wp_raycin_time_attack_challenges`
**Structure:**
– `track_id`: Track for the challenge
– `challenge_type`: “weekly” or “monthly”
– `start_date` / `end_date`: Challenge period
– `target_time`: Optional target time
– `reward_points`: Points for completion
**Methods:**
“`php
// Create challenge (admin only)
$wpdb->insert($table, array(
‘track_id’ => 123,
‘challenge_type’ => ‘weekly’,
‘start_date’ => ‘2025-11-15’,
‘end_date’ => ‘2025-11-22’,
‘target_time’ => 60.5,
‘reward_points’ => 100
));
“`
—
