generated from nhcarrigan/template
feat: use db for rag
This commit is contained in:
@@ -2,18 +2,28 @@
|
||||
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "mongodb"
|
||||
url = env("MONGO_URI")
|
||||
provider = "mongodb"
|
||||
url = env("MONGO_URI")
|
||||
}
|
||||
|
||||
model Announcements {
|
||||
id String @id @default(auto()) @map("_id") @db.ObjectId
|
||||
title String
|
||||
content String
|
||||
type String
|
||||
createdAt DateTime @default(now()) @unique
|
||||
}
|
||||
id String @id @default(auto()) @map("_id") @db.ObjectId
|
||||
title String
|
||||
content String
|
||||
type String
|
||||
createdAt DateTime @unique @default(now())
|
||||
}
|
||||
|
||||
model Documentation {
|
||||
id String @id @default(auto()) @map("_id") @db.ObjectId
|
||||
title String
|
||||
pageTitle String
|
||||
url String
|
||||
content String
|
||||
pageId String @unique
|
||||
file String
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user