Aller au contenu

Table: ai_provider_call

Ce contenu n’est pas encore disponible dans votre langue.

This table references:

  • jobs(id) via column job_id
ColumnTypeNullableNotes
iduuidnoDefault gen_random_uuid()
providertextno
modeltextno
concerntextno
prompt_templatetextyes
prompt_versiontextyes
asset_iduuidyes
job_iduuidyesReferences jobs(id)
input_hashtextyes
input_tokensintegeryes
output_tokensintegeryes
duration_msintegerno
estimated_cost_usd_microsbigintyes
statustextnoDefault 'success'::text
error_messagetextyes
actor_user_refbigintyes
triggered_attimestampnoDefault now()
  • CONSTRAINT ai_provider_call_concern_check CHECK ((concern = ANY (ARRAY['complete'::text, 'embed'::text, 'transcribe'::text, 'tag'::text, 'caption'::text])))
  • CONSTRAINT ai_provider_call_status_check CHECK ((status = ANY (ARRAY['success'::text, 'rate_limited'::text, 'transient_error'::text, 'permanent_error'::text, 'budget_blocked'::text, 'privacy_blocked'::text])))
CREATE TABLE public.ai_provider_call (
id uuid DEFAULT gen_random_uuid() NOT NULL,
provider text NOT NULL,
model text NOT NULL,
concern text NOT NULL,
prompt_template text,
prompt_version text,
asset_id uuid,
job_id uuid,
input_hash text,
input_tokens integer,
output_tokens integer,
duration_ms integer NOT NULL,
estimated_cost_usd_micros bigint,
status text DEFAULT 'success'::text NOT NULL,
error_message text,
actor_user_ref bigint,
triggered_at timestamp with time zone DEFAULT now() NOT NULL,
CONSTRAINT ai_provider_call_concern_check CHECK ((concern = ANY (ARRAY['complete'::text, 'embed'::text, 'transcribe'::text, 'tag'::text, 'caption'::text]))),
CONSTRAINT ai_provider_call_status_check CHECK ((status = ANY (ARRAY['success'::text, 'rate_limited'::text, 'transient_error'::text, 'permanent_error'::text, 'budget_blocked'::text, 'privacy_blocked'::text])))
);

Please see the schema overview for context. This document was last regenerated on 2026-07-26T08:25:29.520Z.