mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 15:14:10 +00:00
feat: configure embedding servers and transcript agents
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- A unique constraint covering the columns `[transcription_task_id]` on the table `asset_comments` will be added. If there are existing duplicate values, this will fail.
|
||||
|
||||
*/
|
||||
-- AlterEnum
|
||||
ALTER TYPE "AgentType" ADD VALUE 'transcription';
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "asset_comments" ADD COLUMN "transcription_task_id" TEXT;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "asset_comments_transcription_task_id_key" ON "asset_comments"("transcription_task_id");
|
||||
|
||||
-- AddForeignKey
|
||||
ALTER TABLE "asset_comments" ADD CONSTRAINT "asset_comments_transcription_task_id_fkey" FOREIGN KEY ("transcription_task_id") REFERENCES "workflow_tasks"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
||||
@@ -701,6 +701,8 @@ model AssetComment {
|
||||
second Float?
|
||||
sessionId String? @map("session_id")
|
||||
session AgentSession? @relation(fields: [sessionId], references: [id], onDelete: SetNull)
|
||||
transcriptionTaskId String? @unique @map("transcription_task_id")
|
||||
transcriptionTask WorkflowTask? @relation(fields: [transcriptionTaskId], references: [id], onDelete: SetNull)
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
|
||||
@@ -929,6 +931,7 @@ model WorkflowTask {
|
||||
sessionId String? @map("session_id")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
transcriptionFailureComment AssetComment?
|
||||
|
||||
@@map("workflow_tasks")
|
||||
@@index([status, heartbeat])
|
||||
@@ -942,6 +945,7 @@ enum AgentType {
|
||||
chat
|
||||
autofill
|
||||
embedding
|
||||
transcription
|
||||
}
|
||||
|
||||
enum AgentSessionType {
|
||||
|
||||
Reference in New Issue
Block a user