SELECT flag_reason, 
       CASE 
           WHEN post_id IS NOT NULL AND comment_id IS NULL THEN 'Post'
           WHEN comment_id IS NOT NULL AND post_id IS NULL THEN 'Comment'
           ELSE 'Unknown'
       END as content_type, 
       status 
FROM moderation_flags 
WHERE flag_reason IN ('test_text', 'test_image', 'test_video', 'test_comment') 
ORDER BY created_at DESC;
