-- Migration: Add work_mode column to jobs table
-- Description: Categorizes jobs as onsite, hybrid, or remote

ALTER TABLE jobs ADD COLUMN IF NOT EXISTS work_mode VARCHAR(20) 
    CHECK (work_mode IN ('onsite', 'hybrid', 'remote')) 
    DEFAULT 'onsite';

-- Index for filtering by work mode
CREATE INDEX IF NOT EXISTS idx_jobs_work_mode ON jobs(work_mode);

COMMENT ON COLUMN jobs.work_mode IS 'Work mode: onsite (presencial), hybrid (híbrido), remote (remoto)';
