Add total_spend to LiteLLM_TeamMembership in all schema.prisma copies

The migration already added the column to the DB, but all three
schema.prisma files were missing the field, causing Prisma to throw
InvalidPrismaInvocation on every team membership spend write.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
RoyVivat 2026-04-06 15:21:15 -07:00
parent 0d7ea3ef61
commit 9596d27e45
No known key found for this signature in database
GPG key ID: 59743472EC86530E
3 changed files with 12 additions and 9 deletions

View file

@ -608,9 +608,10 @@ 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)
user_id String
team_id String
spend Float @default(0.0)
total_spend Float @default(0.0)
budget_id String?
litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id])
@@id([user_id, team_id])

View file

@ -608,9 +608,10 @@ 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)
user_id String
team_id String
spend Float @default(0.0)
total_spend Float @default(0.0)
budget_id String?
litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id])
@@id([user_id, team_id])

View file

@ -608,9 +608,10 @@ 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)
user_id String
team_id String
spend Float @default(0.0)
total_spend Float @default(0.0)
budget_id String?
litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id])
@@id([user_id, team_id])