wasp/waspc/examples/pg-vector-example/schema.prisma
2024-07-03 13:51:29 +02:00

23 lines
688 B
Plaintext

datasource db {
provider = "postgresql"
// Wasp requires that the url is set to the DATABASE_URL environment variable.
url = env("DATABASE_URL")
extensions = [pgvector(map: "vector")]
}
// Wasp requires the `prisma-client-js` generator to be present.
generator client {
provider = "prisma-client-js"
previewFeatures = ["postgresqlExtensions"]
}
model Document {
id String @id @default(uuid())
title String
url String @unique
content String
embedding Unsupported("vector(1536)")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}