-- TIP: Transceiver Intelligence Platform
-- Migration 007: Flexoptix Supported Vendors & Vendor Categories
--
-- Extends vendors table to track which vendors Flexoptix supports
-- and categorize vendors by market segment.

-- Flexoptix support flag
ALTER TABLE vendors ADD COLUMN IF NOT EXISTS flexoptix_supported BOOLEAN DEFAULT FALSE;

-- Vendor category (market segment)
ALTER TABLE vendors ADD COLUMN IF NOT EXISTS vendor_category TEXT;

-- Notes field for additional context
ALTER TABLE vendors ADD COLUMN IF NOT EXISTS notes TEXT;

-- Indexes
CREATE INDEX IF NOT EXISTS idx_vendors_flexoptix ON vendors (flexoptix_supported) WHERE flexoptix_supported = TRUE;
CREATE INDEX IF NOT EXISTS idx_vendors_category ON vendors (vendor_category);
