zen: tpm routing
This commit is contained in:
@@ -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(),
|
interval: bigint("interval", { mode: "number" }).notNull(),
|
||||||
count: int("count").notNull(),
|
count: int("count").notNull(),
|
||||||
},
|
},
|
||||||
(table) => [primaryKey({ columns: [table.id] })],
|
(table) => [primaryKey({ columns: [table.id, table.interval] })],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user