vdkch/back/prisma/schema.prisma

21 lines
623 B
Plaintext
Raw Permalink Normal View History

2024-08-20 20:11:21 +10:00
generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "debian-openssl-3.0.x"]
previewFeatures = ["postgresqlExtensions"]
2024-08-14 21:08:10 +10:00
}
2024-08-20 20:11:21 +10:00
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
extensions = [pgvector(map: "vector")]
2024-08-14 21:08:10 +10:00
}
model Post {
2024-08-20 20:11:21 +10:00
id Int @id @default(autoincrement())
text String?
media String? // URL или путь к файлу
mediaType String? // "image", "video", "drawing", "code"
code String? // Код, который нужно запустить
embedding Float[] //Unsupported("vector")?
2024-08-14 21:08:10 +10:00
}