From 3f362cdaffa4bf884b9fbd92d2afc7b652ed83ec Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Fri, 24 Apr 2026 19:21:02 -0700 Subject: [PATCH] refactor: remove dead model_spend field from LiteLLM_TeamMembership schema (superseded by LiteLLM_TeamMemberModelSpend table) --- litellm-proxy-extras/litellm_proxy_extras/schema.prisma | 1 - litellm/proxy/schema.prisma | 1 - schema.prisma | 1 - 3 files changed, 3 deletions(-) diff --git a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma index 2567d0d5c2e..beb71cb9e9b 100644 --- a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma +++ b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma @@ -618,7 +618,6 @@ model LiteLLM_TeamMembership { 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]) } diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prisma index 2567d0d5c2e..beb71cb9e9b 100644 --- a/litellm/proxy/schema.prisma +++ b/litellm/proxy/schema.prisma @@ -618,7 +618,6 @@ model LiteLLM_TeamMembership { 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]) } diff --git a/schema.prisma b/schema.prisma index 2567d0d5c2e..beb71cb9e9b 100644 --- a/schema.prisma +++ b/schema.prisma @@ -618,7 +618,6 @@ model LiteLLM_TeamMembership { 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]) }