From ae8889f4fa299975d0b9e29d50143cb9a56a6b45 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 8 Jun 2024 17:39:04 -0700 Subject: [PATCH] fix schema.prisma --- litellm/proxy/schema.prisma | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prisma index 884376132..2444a407f 100644 --- a/litellm/proxy/schema.prisma +++ b/litellm/proxy/schema.prisma @@ -247,12 +247,13 @@ model LiteLLM_InvitationLink { model LiteLLM_AuditLog { - id String @id @default(uuid()) - updated_at DateTime @default(now()) - changed_by String // user or system that performed the action - action String // create, update, delete - table_name String // on of LitellmTableNames.TEAM_TABLE_NAME, LitellmTableNames.USER_TABLE_NAME, LitellmTableNames.PROXY_MODEL_TABLE_NAME, - object_id String // id of the object being audited. This can be the key id, team id, user id, model id - before_value Json? // value of the row - updated_values Json? // value of the row after change + id String @id @default(uuid()) + updated_at DateTime @default(now()) + changed_by String @default("") // user or system that performed the action + changed_by_api_key String @default("") // api key hash that performed the action + action String // create, update, delete + table_name String // on of LitellmTableNames.TEAM_TABLE_NAME, LitellmTableNames.USER_TABLE_NAME, LitellmTableNames.PROXY_MODEL_TABLE_NAME, + object_id String // id of the object being audited. This can be the key id, team id, user id, model id + before_value Json? // value of the row + updated_values Json? // value of the row after change } \ No newline at end of file