mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-28 11:34:41 +03:00
23 lines
688 B
Plaintext
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
|
|
}
|