mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 08:09:51 +00:00
zen: tpm routing
This commit is contained in:
parent
53b0084ce2
commit
6278ce51ce
3 changed files with 2674 additions and 1 deletions
|
|
@ -0,0 +1,3 @@
|
|||
DROP TABLE `model_tpm_limit`;--> statement-breakpoint
|
||||
ALTER TABLE `model_tpm_rate_limit` DROP PRIMARY KEY;--> statement-breakpoint
|
||||
ALTER TABLE `model_tpm_rate_limit` ADD PRIMARY KEY (`id`,`interval`);
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -38,5 +38,5 @@ export const ModelTpmRateLimitTable = mysqlTable(
|
|||
interval: bigint("interval", { mode: "number" }).notNull(),
|
||||
count: int("count").notNull(),
|
||||
},
|
||||
(table) => [primaryKey({ columns: [table.id] })],
|
||||
(table) => [primaryKey({ columns: [table.id, table.interval] })],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue