From 3ed4f1078fd708847b3e36b73d2ac7615be478df Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 8 Oct 2025 22:33:20 -0400 Subject: wip: zen --- packages/console/core/src/schema/billing.sql.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/console/core/src/schema/billing.sql.ts') diff --git a/packages/console/core/src/schema/billing.sql.ts b/packages/console/core/src/schema/billing.sql.ts index 302e01133..215f0a472 100644 --- a/packages/console/core/src/schema/billing.sql.ts +++ b/packages/console/core/src/schema/billing.sql.ts @@ -1,5 +1,5 @@ import { bigint, boolean, int, mysqlTable, uniqueIndex, varchar } from "drizzle-orm/mysql-core" -import { timestamps, utc, workspaceColumns } from "../drizzle/types" +import { timestamps, ulid, utc, workspaceColumns } from "../drizzle/types" import { workspaceIndexes } from "./workspace.sql" export const BillingTable = mysqlTable( @@ -50,6 +50,7 @@ export const UsageTable = mysqlTable( cacheWrite5mTokens: int("cache_write_5m_tokens"), cacheWrite1hTokens: int("cache_write_1h_tokens"), cost: bigint("cost", { mode: "number" }).notNull(), + keyID: ulid("key_id"), }, (table) => [...workspaceIndexes(table)], ) -- cgit v1.2.3