-- Migration 107: Add product_id to subscription line items

ALTER TABLE sag_subscription_items
ADD COLUMN IF NOT EXISTS product_id INTEGER REFERENCES products(id);

CREATE INDEX IF NOT EXISTS idx_sag_subscription_items_product
    ON sag_subscription_items(product_id);
