-- Migration: Add photo_url column to users table
-- Version: V008
-- Description: Add support for user profile photos (base64 or URL)

-- Add photo_url column to users table
ALTER TABLE users
ADD COLUMN IF NOT EXISTS photo_url TEXT;

-- Note: No index on photo_url because base64 images exceed PostgreSQL's 8KB index limit
-- Queries by photo_url are rare, so full table scan is acceptable

-- Add comment
COMMENT ON COLUMN users.photo_url IS 'User profile photo - can be base64 data URL or external URL';
