-- Migration: Add dark_mode column to user_preferences
-- NULL = use system preference, TRUE = dark mode, FALSE = light mode

ALTER TABLE user_preferences
  ADD COLUMN IF NOT EXISTS dark_mode BOOLEAN DEFAULT NULL;

-- Add comment for documentation
COMMENT ON COLUMN user_preferences.dark_mode IS 'User dark mode preference. NULL means use system preference.';
