Filter orders before pagination and expose recorded decisions and result links

This commit is contained in:
2026-11-18 09:07:28 +01:00
parent 973e131c86
commit c0754f1d0d
6 changed files with 122 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
CREATE INDEX audit_events_order_decision ON audit_events
(tenant_id, (data->>'operation_id'), created_at, event_id)
WHERE event_type IN ('plan_authorization', 'plan_revoked');
CREATE INDEX jobs_order_lookup ON jobs (tenant_id, operation_id);