feat(db): gemini_usage-tabell för token-telemetri

This commit is contained in:
Sven (AAMOS AI)
2026-08-12 20:51:50 +07:00
parent 3fb4374a99
commit 14a5243bb2
3 changed files with 26 additions and 0 deletions
@@ -0,0 +1,9 @@
CREATE TABLE "gemini_usage" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"task_type" text NOT NULL,
"prompt_tokens" integer NOT NULL,
"output_tokens" integer NOT NULL,
"total_tokens" integer NOT NULL,
"cost_microcents" bigint
);