-- 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;

-- Create index for faster photo lookups
CREATE INDEX IF NOT EXISTS idx_users_photo_url ON users(photo_url) WHERE photo_url IS NOT NULL;

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