mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Adds DB methods`GetAIGatewayKeyIDByHashedSecret` and `UpdateAIGatewayKeyLastUsedAt`. `GetAIGatewayKeyIDByHashedSecret` - returns AI Gateway key ID by hashed secret value. `UpdateAIGatewayKeyLastUsedAt` - updates last used timestamp for given AI Gateway key. Used by standalone AI Gateway for authentication and keeping track of currently used keys.
3 lines
118 B
SQL
3 lines
118 B
SQL
-- Enum additions to api_key_scope are intentionally not reverted because
|
|
-- Postgres cannot drop enum values safely.
|