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

@ -611,6 +611,7 @@ model LiteLLM_TeamMembership {
user_id String user_id String
team_id String team_id String
spend Float @default(0.0) spend Float @default(0.0)
total_spend Float @default(0.0)
budget_id String? budget_id String?
litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id]) litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id])
@@id([user_id, team_id]) @@id([user_id, team_id])

View file

@ -611,6 +611,7 @@ model LiteLLM_TeamMembership {
user_id String user_id String
team_id String team_id String
spend Float @default(0.0) spend Float @default(0.0)
total_spend Float @default(0.0)
budget_id String? budget_id String?
litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id]) litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id])
@@id([user_id, team_id]) @@id([user_id, team_id])

View file

@ -611,6 +611,7 @@ model LiteLLM_TeamMembership {
user_id String user_id String
team_id String team_id String
spend Float @default(0.0) spend Float @default(0.0)
total_spend Float @default(0.0)
budget_id String? budget_id String?
litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id]) litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id])
@@id([user_id, team_id]) @@id([user_id, team_id])