diff options
| author | Frank <[email protected]> | 2026-04-17 09:54:44 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2026-04-17 09:54:47 -0400 |
| commit | 3707e4a49cb97639408a9e0da7cf148ca5ce8834 (patch) | |
| tree | a0d91540f8a639ff09c32ba9f9032af5129d1a53 /packages/console/core/src/schema | |
| parent | cb425ac927cde685ef9b6e38a62ad71c408a47df (diff) | |
| download | opencode-3707e4a49cb97639408a9e0da7cf148ca5ce8834.tar.gz opencode-3707e4a49cb97639408a9e0da7cf148ca5ce8834.zip | |
zen: routing logic
Diffstat (limited to 'packages/console/core/src/schema')
| -rw-r--r-- | packages/console/core/src/schema/ip.sql.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/console/core/src/schema/ip.sql.ts b/packages/console/core/src/schema/ip.sql.ts index a840a78c1..830842e64 100644 --- a/packages/console/core/src/schema/ip.sql.ts +++ b/packages/console/core/src/schema/ip.sql.ts @@ -30,3 +30,13 @@ export const KeyRateLimitTable = mysqlTable( }, (table) => [primaryKey({ columns: [table.key, table.interval] })], ) + +export const ModelRateLimitTable = mysqlTable( + "model_rate_limit", + { + key: varchar("key", { length: 255 }).notNull(), + interval: varchar("interval", { length: 40 }).notNull(), + count: int("count").notNull(), + }, + (table) => [primaryKey({ columns: [table.key, table.interval] })], +) |
