Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

litellm db fixes LiteLLM_UserTable (#7089)

Ishaan Jaff19f14252321c
diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prisma
index 183ac1b62a0..5b0340ef4b6 100644
--- a/litellm/proxy/schema.prisma
+++ b/litellm/proxy/schema.prisma
@@ -119,6 +119,8 @@ model LiteLLM_UserTable {
allowed_cache_controls String[] @default([])
model_spend Json @default("{}")
model_max_budget Json @default("{}")
+ created_at DateTime? @default(now()) @map("created_at")
+ updated_at DateTime? @default(now()) @updatedAt @map("updated_at")
// relations
litellm_organization_table LiteLLM_OrganizationTable? @relation(fields: [organization_id], references: [organization_id])
diff --git a/schema.prisma b/schema.prisma
index 183ac1b62a0..5b0340ef4b6 100644
--- a/schema.prisma
+++ b/schema.prisma
@@ -119,6 +119,8 @@ model LiteLLM_UserTable {
allowed_cache_controls String[] @default([])
model_spend Json @default("{}")
model_max_budget Json @default("{}")
+ created_at DateTime? @default(now()) @map("created_at")
+ updated_at DateTime? @default(now()) @updatedAt @map("updated_at")
// relations
litellm_organization_table LiteLLM_OrganizationTable? @relation(fields: [organization_id], references: [organization_id])