mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-25 10:22:18 +00:00
v0 audit logs
This commit is contained in:
@@ -243,4 +243,16 @@ model LiteLLM_InvitationLink {
|
||||
liteLLM_user_table_user LiteLLM_UserTable @relation("UserId", fields: [user_id], references: [user_id])
|
||||
liteLLM_user_table_created LiteLLM_UserTable @relation("CreatedBy", fields: [created_by], references: [user_id])
|
||||
liteLLM_user_table_updated LiteLLM_UserTable @relation("UpdatedBy", fields: [updated_by], references: [user_id])
|
||||
}
|
||||
|
||||
|
||||
model AuditLog {
|
||||
id Int @id @default(autoincrement())
|
||||
updated_at DateTime @default(now())
|
||||
changed_by String // user or system that performed the action
|
||||
action String // create, update, delete
|
||||
object_type String // team, key, user, model
|
||||
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
|
||||
after_value Json? // value of the row after change
|
||||
}
|
||||
Reference in New Issue
Block a user