From a04ecf221b92fa0380c50bf639090577e839c999 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Fri, 24 Apr 2026 18:19:29 -0700 Subject: [PATCH] schema: add model_spend to LiteLLM_TeamMembership in proxy-extras schema --- .../litellm_proxy_extras/schema.prisma | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma index 34686148ce0..e83ef330c9b 100644 --- a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma +++ b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma @@ -613,11 +613,12 @@ model LiteLLM_UserNotifications { model LiteLLM_TeamMembership { // Use this table to track the Internal User's Spend within a Team + Set Budgets, rpm limits for the user within the team - user_id String - team_id String - spend Float @default(0.0) - total_spend Float @default(0.0) - budget_id String? + user_id String + team_id String + spend Float @default(0.0) + total_spend Float @default(0.0) + budget_id String? + model_spend Json @default("{}") litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id]) @@id([user_id, team_id]) }