-- Add avatar_url and last_telegram_file_id columns to db_users_a
-- avatar_url: Stores the public URL with ?v=timestamp parameter for cache busting
-- last_telegram_file_id: Stores the Telegram file_id to avoid re-downloading unchanged avatars
ALTER TABLE `db_users_a`
  ADD COLUMN `avatar_url` VARCHAR(500) DEFAULT NULL AFTER `banned`,
  ADD COLUMN `last_telegram_file_id` VARCHAR(255) DEFAULT NULL AFTER `avatar_url`;

-- Add index on avatar_url for faster lookups (optional, but helps if we query by avatar_url)
-- Note: We don't index last_telegram_file_id as it's only used during avatar update



