diff --git a/litellm-proxy-extras/litellm_proxy_extras/migrations/20260425010000_add_team_member_model_spend_table/migration.sql b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260425010000_add_team_member_model_spend_table/migration.sql new file mode 100644 index 00000000000..ad065206704 --- /dev/null +++ b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260425010000_add_team_member_model_spend_table/migration.sql @@ -0,0 +1,8 @@ +-- CreateTable: per-model spend rows with atomic increment support +CREATE TABLE IF NOT EXISTS "LiteLLM_TeamMemberModelSpend" ( + "user_id" TEXT NOT NULL, + "team_id" TEXT NOT NULL, + "model" TEXT NOT NULL, + "spend" DOUBLE PRECISION NOT NULL DEFAULT 0.0, + CONSTRAINT "LiteLLM_TeamMemberModelSpend_pkey" PRIMARY KEY ("user_id", "team_id", "model") +);