=== Auto-Schedule Creation Test with Direct Database Insert === Cleaning up test data... Creating test user... Created user: ID 30 Test 1: Simulate auto-schedule creation ---------------------------------------- ✓ Study created: ID 27 ✓ Schedule created: ID 20 - Status: 1 (1=active, 0=inactive) - Schedule pattern: @daily - Upcoming: 2026-01-28 07:12:31 ✓ Schedule is ACTIVE ✓ Upcoming timestamp is set: 2026-01-28 07:12:31 Test 2: Simulate Cron schedule creation ---------------------------------------- ✓ Study created: ID 28 ✓ Cron-style schedule created: ID 21 - Status: 1 (1=active, 0=inactive) ✓ Cron-created schedule is ACTIVE (correct!) Cleaning up test data... === Test Complete ===