feat: improve prompt management (#7853)

This commit is contained in:
darkskygit
2024-08-14 08:38:36 +00:00
parent cd3924b8fc
commit 339c39c1ec
13 changed files with 161 additions and 105 deletions

View File

@@ -367,6 +367,9 @@ model AiPrompt {
model String @db.VarChar
config Json? @db.Json
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3)
updatedAt DateTime @default(now()) @map("updated_at") @db.Timestamptz(3)
// whether the prompt is modified by the admin panel
modified Boolean @default(false)
messages AiPromptMessage[]
sessions AiSession[]