-- AI Gateway: audit complet pe fiecare cerere catre model (blueprint 9, 14.2).
-- cost_usd_minor_units (integer) se inlocuieste cu cost_usd numeric(12,6): costurile
-- reale sunt fractiuni de cent, rotunjirea la cent stergea semnalul.
ALTER TABLE "ai_requests" ADD COLUMN IF NOT EXISTS "action_class" text NOT NULL DEFAULT 'read_only';--> statement-breakpoint
ALTER TABLE "ai_requests" ADD COLUMN IF NOT EXISTS "context_manifest" jsonb NOT NULL DEFAULT '{}'::jsonb;--> statement-breakpoint
ALTER TABLE "ai_requests" ADD COLUMN IF NOT EXISTS "cost_usd" numeric(12,6);--> statement-breakpoint
ALTER TABLE "ai_requests" DROP COLUMN IF EXISTS "cost_usd_minor_units";
