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
+19 -9
View File
@@ -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
}