feat(db): gemini_usage-tabell för token-telemetri
This commit is contained in:
@@ -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
|
||||
);
|
||||
Reference in New Issue
Block a user