zen: update sticky session logic

This commit is contained in:
Frank
2026-05-13 12:45:08 -04:00
parent 8ad3a4b217
commit fa077b92b1
5 changed files with 2871 additions and 7 deletions

View File

@@ -51,3 +51,13 @@ export const ModelTpsRateLimitTable = mysqlTable(
},
(table) => [primaryKey({ columns: [table.id, table.interval] })],
)
export const ModelStickyProviderTable = mysqlTable(
"model_sticky_provider",
{
id: varchar("id", { length: 255 }).notNull(),
...timestamps,
providerId: varchar("provider_id", { length: 255 }).notNull(),
},
(table) => [primaryKey({ columns: [table.id] })],
)