summaryrefslogtreecommitdiffhomepage
path: root/packages/console/core/src/schema
diff options
context:
space:
mode:
authorFrank <[email protected]>2026-04-20 15:02:50 -0400
committerFrank <[email protected]>2026-04-20 15:02:54 -0400
commitad65af28e7668c89f392c3779bf81634c0170894 (patch)
treea87139a65c37cf4515e93fbf6eec9afe73e49662 /packages/console/core/src/schema
parentbd1bdc4f0421e4f676bb92ea40e4296627fb00d4 (diff)
downloadopencode-ad65af28e7668c89f392c3779bf81634c0170894.tar.gz
opencode-ad65af28e7668c89f392c3779bf81634c0170894.zip
zen: tpm routing
Diffstat (limited to 'packages/console/core/src/schema')
-rw-r--r--packages/console/core/src/schema/ip.sql.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/console/core/src/schema/ip.sql.ts b/packages/console/core/src/schema/ip.sql.ts
index 830842e64..2a63eb944 100644
--- a/packages/console/core/src/schema/ip.sql.ts
+++ b/packages/console/core/src/schema/ip.sql.ts
@@ -31,6 +31,15 @@ export const KeyRateLimitTable = mysqlTable(
(table) => [primaryKey({ columns: [table.key, table.interval] })],
)
+export const ModelTpmLimitTable = mysqlTable(
+ "model_tpm_limit",
+ {
+ id: varchar("id", { length: 255 }).notNull(),
+ count: int("count").notNull(),
+ },
+ (table) => [primaryKey({ columns: [table.id] })],
+)
+
export const ModelRateLimitTable = mysqlTable(
"model_rate_limit",
{