-- Add originCountries field to InventoryItem table
-- This migration adds support for multiple origin countries as a JSON array

ALTER TABLE `InventoryItem` 
ADD COLUMN `originCountries` JSON NULL 
AFTER `origin`;

-- Create an index for the originCountries field for better query performance
CREATE INDEX `IDX_InventoryItem_originCountries` ON `InventoryItem` ((CAST(`originCountries` AS CHAR(255))));