feat: use db for rag

This commit is contained in:
2025-08-07 14:14:46 -07:00
parent 4971695d2a
commit 24d37dcd16
11 changed files with 145 additions and 50 deletions
+29
View File
@@ -0,0 +1,29 @@
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
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 @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
}