The server's Docker/BuildKit couldn't do a git-context build of a public github.com repo (fails with "could not read Username ... terminal prompts disabled" — an auth-shaped error for what should be an anonymous clone). Rather than debug that, vendor litellm-pgvector's small source tree directly (vendor/litellm-pgvector/, see VENDORED.md for provenance/update steps) and build from the local path. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
40 lines
989 B
Plaintext
40 lines
989 B
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
generator client {
|
|
provider = "prisma-client-py"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model VectorStore {
|
|
id String @id @default(cuid())
|
|
name String
|
|
file_counts Json?
|
|
status String @default("completed")
|
|
usage_bytes Int? @default(0)
|
|
created_at DateTime @default(now())
|
|
expires_after Json?
|
|
expires_at DateTime?
|
|
last_active_at DateTime?
|
|
metadata Json?
|
|
embeddings Embedding[]
|
|
|
|
@@map("vector_stores")
|
|
}
|
|
|
|
model Embedding {
|
|
id String @id @default(cuid())
|
|
vector_store_id String
|
|
content String
|
|
embedding Unsupported("vector(1536)")
|
|
metadata Json?
|
|
created_at DateTime @default(now())
|
|
|
|
vector_store VectorStore @relation(fields: [vector_store_id], references: [id], onDelete: Cascade)
|
|
|
|
@@map("embeddings")
|
|
} |