-- Migration 113: Add last_2fa_at to users table

DO $$
BEGIN
    IF NOT EXISTS (
        SELECT 1 FROM information_schema.columns
        WHERE table_name = 'users' AND column_name = 'last_2fa_at'
    ) THEN
        ALTER TABLE users ADD COLUMN last_2fa_at TIMESTAMP;
    END IF;
END $$;
