mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
build: add new prisma migration
This commit is contained in:
parent
1d878b7ea0
commit
e134ba80be
2 changed files with 29 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
||||||
|
-- CreateTable
|
||||||
|
CREATE TABLE "LiteLLM_ManagedFileTable" (
|
||||||
|
"id" TEXT NOT NULL,
|
||||||
|
"unified_file_id" TEXT NOT NULL,
|
||||||
|
"file_object" JSONB NOT NULL,
|
||||||
|
"model_mappings" JSONB NOT NULL,
|
||||||
|
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"updated_at" TIMESTAMP(3) NOT NULL,
|
||||||
|
|
||||||
|
CONSTRAINT "LiteLLM_ManagedFileTable_pkey" PRIMARY KEY ("id")
|
||||||
|
);
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE UNIQUE INDEX "LiteLLM_ManagedFileTable_unified_file_id_key" ON "LiteLLM_ManagedFileTable"("unified_file_id");
|
||||||
|
|
||||||
|
-- CreateIndex
|
||||||
|
CREATE INDEX "LiteLLM_ManagedFileTable_unified_file_id_idx" ON "LiteLLM_ManagedFileTable"("unified_file_id");
|
||||||
|
|
|
@ -354,3 +354,14 @@ enum JobStatus {
|
||||||
INACTIVE
|
INACTIVE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
model LiteLLM_ManagedFileTable {
|
||||||
|
id String @id @default(uuid())
|
||||||
|
unified_file_id String @unique // The base64 encoded unified file ID
|
||||||
|
file_object Json // Stores the OpenAIFileObject
|
||||||
|
model_mappings Json // Stores the mapping of model_id -> provider_file_id
|
||||||
|
created_at DateTime @default(now())
|
||||||
|
updated_at DateTime @updatedAt
|
||||||
|
|
||||||
|
@@index([unified_file_id])
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue