-- 20260305_001_profiles_updated_at.sql
ALTER TABLE profiles
    ADD COLUMN IF NOT EXISTS updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;

UPDATE profiles
SET updated_at = COALESCE(updated_at, created_at, NOW());


