AFFiNE/packages/backend/server/migrations/20240521100307_add_copilot_cost/migration.sql
darkskygit 937b8bf166
feat: history cleanup (#7007)
fix AFF-1069
2024-05-24 08:00:05 +00:00

5 lines
205 B
SQL

-- 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;