-- Add engagement metrics to mentions table
-- Migration to add like_count, reply_count, repost_count, quote_count

ALTER TABLE mentions
ADD COLUMN IF NOT EXISTS like_count INTEGER DEFAULT 0,
ADD COLUMN IF NOT EXISTS reply_count INTEGER DEFAULT 0,
ADD COLUMN IF NOT EXISTS repost_count INTEGER DEFAULT 0,
ADD COLUMN IF NOT EXISTS quote_count INTEGER DEFAULT 0;

CREATE INDEX IF NOT EXISTS idx_mentions_like_count ON mentions (like_count DESC);
