-- ============================================================================
-- Add backup_type_udf column to configuration_items table
-- Stores the Autotask UDF value indicating backup type (e.g., Server Image,
-- Workstation Image, Workstation File Based) for contract compliance analysis
-- ============================================================================

ALTER TABLE configuration_items
    ADD COLUMN IF NOT EXISTS backup_type_udf VARCHAR(255);

-- Index for efficient compliance queries
CREATE INDEX IF NOT EXISTS idx_configuration_items_backup_type_udf
    ON configuration_items(backup_type_udf);
