mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
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:
parent
0d7ea3ef61
commit
9596d27e45
3 changed files with 12 additions and 9 deletions
|
|
@ -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])
|
||||||
|
|
|
||||||
|
|
@ -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])
|
||||||
|
|
|
||||||
|
|
@ -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])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue