From b91a6f52b7e05539ec5b37402716617cd7d4581e Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Fri, 17 Apr 2026 14:47:12 -0700 Subject: [PATCH] fix(schema): add budget_limits Json? to LiteLLM_TeamTable and LiteLLM_VerificationToken --- litellm/proxy/schema.prisma | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prisma index 7ea375a5549..08aa5645251 100644 --- a/litellm/proxy/schema.prisma +++ b/litellm/proxy/schema.prisma @@ -142,6 +142,7 @@ model LiteLLM_TeamTable { access_group_ids String[] @default([]) policies String[] @default([]) default_team_member_models String[] @default([]) // default allowed_models for newly added team members; empty = no per-member restriction + budget_limits Json? // per-model budget limits for the team model_id Int? @unique // id for LiteLLM_ModelTable -> stores team-level model aliases allow_team_guardrail_config Boolean @default(false) // if true, team admin can configure guardrails for this team litellm_organization_table LiteLLM_OrganizationTable? @relation(fields: [organization_id], references: [organization_id]) @@ -403,6 +404,7 @@ model LiteLLM_VerificationToken { rotation_interval String? // How often to rotate (e.g., "30d", "90d") last_rotation_at DateTime? // When this key was last rotated key_rotation_at DateTime? // When this key should next be rotated + budget_limits Json? // per-model budget limits for the key litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id]) litellm_organization_table LiteLLM_OrganizationTable? @relation(fields: [organization_id], references: [organization_id]) litellm_project_table LiteLLM_ProjectTable? @relation(fields: [project_id], references: [project_id])