-- Fix resource_type and travel_availability_pct columns to accept string values
-- Autotask API returns these as strings, not integers/decimals

ALTER TABLE resources 
ALTER COLUMN resource_type TYPE VARCHAR(50);

ALTER TABLE resources
ALTER COLUMN travel_availability_pct TYPE VARCHAR(50);

COMMENT ON COLUMN resources.resource_type IS 'Resource type from Autotask (e.g., Employee, Contractor)';
COMMENT ON COLUMN resources.travel_availability_pct IS 'Travel availability from Autotask (e.g., "up to 25%")';
