-- Migration: Add timezone column to users table
-- Date: 2026-02-09

-- Add timezone column with default UTC
ALTER TABLE users ADD COLUMN IF NOT EXISTS timezone VARCHAR(50) DEFAULT 'UTC' NOT NULL;

-- Set existing users to UTC timezone
UPDATE users SET timezone = 'UTC' WHERE timezone IS NULL;

-- Add comment
COMMENT ON COLUMN users.timezone IS 'User timezone preference (IANA format, e.g., Europe/Bucharest)';
