wip: black

This commit is contained in:
Frank
2026-01-06 23:34:10 -05:00
parent 22b058a33d
commit 23fc675ad5
25 changed files with 2705 additions and 50 deletions

View File

@@ -55,7 +55,7 @@ export const UsageTable = mysqlTable(
cacheWrite1hTokens: int("cache_write_1h_tokens"),
cost: bigint("cost", { mode: "number" }).notNull(),
keyID: ulid("key_id"),
enrichment: json("data").$type<{
enrichment: json("enrichment").$type<{
plan: "sub"
}>(),
},

View File

@@ -20,9 +20,9 @@ export const UserTable = mysqlTable(
timeMonthlyUsageUpdated: utc("time_monthly_usage_updated"),
// subscription
timeSubscribed: utc("time_subscribed"),
subRecentUsage: bigint("sub_recent_usage", { mode: "number" }),
subIntervalUsage: bigint("sub_interval_usage", { mode: "number" }),
subMonthlyUsage: bigint("sub_monthly_usage", { mode: "number" }),
timeSubRecentUsageUpdated: utc("sub_time_recent_usage_updated"),
timeSubIntervalUsageUpdated: utc("sub_time_interval_usage_updated"),
timeSubMonthlyUsageUpdated: utc("sub_time_monthly_usage_updated"),
},
(table) => [