fix: show all teams user is a part of in user_info

This commit is contained in:
Krrish Dholakia 2024-02-21 13:29:42 -08:00
parent 5a0f962beb
commit 846757e343
5 changed files with 85 additions and 8 deletions

View file

@ -13,6 +13,7 @@ model LiteLLM_TeamTable {
team_alias String?
admins String[]
members String[]
members_with_roles Json @default("{}")
metadata Json @default("{}")
max_budget Float?
spend Float @default(0.0)
@ -32,6 +33,7 @@ model LiteLLM_TeamTable {
model LiteLLM_UserTable {
user_id String @unique
team_id String?
teams String[] @default([])
user_role String?
max_budget Float?
spend Float @default(0.0)
@ -104,4 +106,4 @@ model LiteLLM_UserNotifications {
models String[]
justification String
status String // approved, disapproved, pending
}
}