feat: history cleanup (#7007)

fix AFF-1069
This commit is contained in:
darkskygit
2024-05-24 08:00:05 +00:00
parent 02564a8d8c
commit 937b8bf166
6 changed files with 188 additions and 77 deletions

View File

@@ -0,0 +1,4 @@
-- AlterTable
ALTER TABLE "ai_sessions_metadata" ADD COLUMN "deleted_at" TIMESTAMPTZ(6),
ADD COLUMN "messageCost" INTEGER NOT NULL DEFAULT 0,
ADD COLUMN "tokenCost" INTEGER NOT NULL DEFAULT 0;

View File

@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "postgresql"
provider = "postgresql"