mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 21:04:59 +00:00
feat(chat): add AgentSessionType enum and filter chatbot history sessions
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
-- CreateEnum
|
||||
CREATE TYPE "AgentSessionType" AS ENUM ('comment', 'chat');
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "agent_sessions" ADD COLUMN "type" "AgentSessionType" NOT NULL DEFAULT 'comment';
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "agent_sessions_type_idx" ON "agent_sessions"("type");
|
||||
Reference in New Issue
Block a user