From a44596a067482c707248350f878f00e9f27e9615 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 26 Aug 2024 21:04:39 -0700 Subject: [PATCH] fix created_at and updated_at not existing error --- litellm/proxy/_types.py | 2 -- litellm/proxy/schema.prisma | 2 -- schema.prisma | 2 -- 3 files changed, 6 deletions(-) diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index 554c9e4e4..f2bef739c 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -1300,8 +1300,6 @@ class LiteLLM_VerificationToken(LiteLLMBase): soft_budget_cooldown: bool = False litellm_budget_table: Optional[dict] = None org_id: Optional[str] = None # org id for a given key - created_at: Optional[datetime] = None - updated_at: Optional[datetime] = None model_config = ConfigDict(protected_namespaces=()) diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prisma index 1af0c0a34..cf61635a0 100644 --- a/litellm/proxy/schema.prisma +++ b/litellm/proxy/schema.prisma @@ -149,8 +149,6 @@ model LiteLLM_VerificationToken { model_max_budget Json @default("{}") budget_id String? litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id]) - created_at DateTime @default(now()) @map("created_at") - updated_at DateTime @default(now()) @updatedAt @map("updated_at") } model LiteLLM_EndUserTable { diff --git a/schema.prisma b/schema.prisma index 86ec201f7..8f4125104 100644 --- a/schema.prisma +++ b/schema.prisma @@ -149,8 +149,6 @@ model LiteLLM_VerificationToken { model_max_budget Json @default("{}") budget_id String? litellm_budget_table LiteLLM_BudgetTable? @relation(fields: [budget_id], references: [budget_id]) - created_at DateTime @default(now()) @map("created_at") - updated_at DateTime @default(now()) @updatedAt @map("updated_at") } model LiteLLM_EndUserTable {