diff options
| author | Frank <[email protected]> | 2025-09-12 11:57:12 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-09-12 11:57:14 -0400 |
| commit | c294a181559185dedf6a65e00e1db597721a815b (patch) | |
| tree | 3a9569986462b8d399d903092451dcb534f4dcb0 /cloud/core/src/schema/billing.sql.ts | |
| parent | c3dc6d6df647f8e21dfcd9aeaf4d69bc45580020 (diff) | |
| download | opencode-c294a181559185dedf6a65e00e1db597721a815b.tar.gz opencode-c294a181559185dedf6a65e00e1db597721a815b.zip | |
wip: zen
Diffstat (limited to 'cloud/core/src/schema/billing.sql.ts')
| -rw-r--r-- | cloud/core/src/schema/billing.sql.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cloud/core/src/schema/billing.sql.ts b/cloud/core/src/schema/billing.sql.ts index 0473df142..d94415ce9 100644 --- a/cloud/core/src/schema/billing.sql.ts +++ b/cloud/core/src/schema/billing.sql.ts @@ -1,4 +1,4 @@ -import { bigint, boolean, int, mysqlTable, varchar } from "drizzle-orm/mysql-core" +import { bigint, boolean, int, mysqlTable, varchar, json } from "drizzle-orm/mysql-core" import { timestamps, workspaceColumns } from "../drizzle/types" import { workspaceIndexes } from "./workspace.sql" @@ -34,12 +34,14 @@ export const UsageTable = mysqlTable( ...workspaceColumns, ...timestamps, model: varchar("model", { length: 255 }).notNull(), - provider: varchar("provider", { length: 255 }), + provider: varchar("provider", { length: 255 }).notNull(), inputTokens: int("input_tokens").notNull(), outputTokens: int("output_tokens").notNull(), reasoningTokens: int("reasoning_tokens"), cacheReadTokens: int("cache_read_tokens"), cacheWriteTokens: int("cache_write_tokens"), + cacheWrite5mTokens: int("cache_write_5m_tokens"), + cacheWrite1hTokens: int("cache_write_1h_tokens"), cost: bigint("cost", { mode: "number" }).notNull(), }, (table) => [...workspaceIndexes(table)], |
