-- v0.951: Performance indexes for load test critical queries
-- Targets: ListProducts (status + created_at), auth sessions, tracks list

-- products: ListProducts default query (status=active ORDER BY created_at DESC)
CREATE INDEX IF NOT EXISTS idx_products_status_created_at ON public.products(status, created_at DESC);

-- products: Filter by seller (seller dashboard)
CREATE INDEX IF NOT EXISTS idx_products_seller_id_status ON public.products(seller_id, status);
