coder_ai_daily_spends
Authoritative daily estimated AI spend grouped by user, organization, provider, and model; Coder's group dimension is aggregated away.
-
id
Primary key - Unique row identifier.
-
connection_id
Foreign key - DX Coder AI connection that imported the row.
-
day
date - UTC day requested from the Coder spend export.
-
user_id
Foreign key - Reference to coder_ai_users.
-
organization_id
Foreign key - Stable Coder organization UUID used for the spend export.
-
provider
string - Runtime provider family.
-
provider_name
string - Configured Coder provider name.
-
model
string - Model identifier.
-
input_tokens
number - Uncached input tokens.
-
output_tokens
number - Output tokens.
-
cache_read_tokens
number - Cache-read input tokens.
-
cache_write_tokens
number - Cache-write input tokens.
-
spend_micros
number - Coder-estimated cost in micro-USD.
-
spend_cents
number - Rounded Coder-estimated cost in cents.