-- Drop campaign_rules table and its indexes first (due to foreign key constraint)
DROP INDEX IF EXISTS idx_campaign_rules_reward_ref_id;
DROP INDEX IF EXISTS idx_campaign_rules_reward_type;
DROP INDEX IF EXISTS idx_campaign_rules_rule_type;
DROP INDEX IF EXISTS idx_campaign_rules_campaign_id;
DROP TABLE IF EXISTS campaign_rules;

-- Drop campaigns table and its indexes
DROP INDEX IF EXISTS idx_campaigns_position;
DROP INDEX IF EXISTS idx_campaigns_show_on_app;
DROP INDEX IF EXISTS idx_campaigns_is_active;
DROP INDEX IF EXISTS idx_campaigns_end_date;
DROP INDEX IF EXISTS idx_campaigns_start_date;
DROP INDEX IF EXISTS idx_campaigns_type;
DROP TABLE IF EXISTS campaigns;
