Initial commit - Route Commerce platform

This commit is contained in:
2026-06-01 19:40:55 +00:00
commit 53a9671461
617 changed files with 106132 additions and 0 deletions
@@ -0,0 +1,6 @@
-- 096: Tax Orders Index — partial index for efficient tax queries
-- Note: CREATE INDEX CONCURRENTLY cannot run inside a transaction block
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_orders_tax_brand_date
ON orders (brand_id, created_at)
WHERE tax_amount IS NOT NULL AND tax_amount > 0;