zen: tpm routing
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
CREATE TABLE `model_tpm_limit` (
|
||||
`id` varchar(255) NOT NULL,
|
||||
`interval` int NOT NULL,
|
||||
`count` int NOT NULL,
|
||||
CONSTRAINT PRIMARY KEY(`id`,`interval`)
|
||||
);
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE `model_tpm_limit` DROP PRIMARY KEY;--> statement-breakpoint
|
||||
ALTER TABLE `model_tpm_limit` ADD PRIMARY KEY (`id`);--> statement-breakpoint
|
||||
ALTER TABLE `model_tpm_limit` DROP COLUMN `interval`;
|
||||
+2710
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user