-- Add suggestionsJson column to AssignmentJob to store AI-generated suggestions

DO $$
BEGIN
    IF NOT EXISTS (
        SELECT 1 FROM information_schema.columns
        WHERE table_name = 'AssignmentJob' AND column_name = 'suggestionsJson'
    ) THEN
        ALTER TABLE "AssignmentJob" ADD COLUMN "suggestionsJson" JSONB;
    END IF;
END $$;
