CREATE INDEX "deals_state_created_idx" ON "deals" USING btree ("deal_state","created_at");--> statement-breakpoint
CREATE INDEX "deals_state_window_end_idx" ON "deals" USING btree ("deal_state","window_end");--> statement-breakpoint
CREATE INDEX "deals_category_state_created_idx" ON "deals" USING btree ("category_id","deal_state","created_at");--> statement-breakpoint
CREATE INDEX "purchases_status_created_idx" ON "purchases" USING btree ("payment_status","created_at");