feat(ops): logga gemini_usage per scan (best-effort)

This commit is contained in:
Sven (AAMOS AI)
2026-08-12 21:08:03 +07:00
parent f11cbce114
commit 602405d56d
3 changed files with 19 additions and 3 deletions
+3 -3
View File
@@ -9,8 +9,8 @@ export const geminiUsage = pgTable("gemini_usage", {
id: uuid("id").primaryKey().defaultRandom(),
createdAt: createdAt(),
taskType: text("task_type").notNull(),
promptTokens: integer("prompt_tokens").notNull(),
outputTokens: integer("output_tokens").notNull(),
totalTokens: integer("total_tokens").notNull(),
promptTokens: integer("prompt_tokens"),
outputTokens: integer("output_tokens"),
totalTokens: integer("total_tokens"),
costMicrocents: bigint("cost_microcents", { mode: "number" }),
});