-- 0032_add_platform_fee_utr.sql

ALTER TABLE orders ADD COLUMN IF NOT EXISTS platform_fee_utr VARCHAR;

CREATE UNIQUE INDEX IF NOT EXISTS idx_orders_platform_fee_utr_unique ON orders (platform_fee_utr)
WHERE platform_fee_utr IS NOT NULL AND platform_fee_utr <> '';
