mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-06 23:32:12 +03:00
# Conflicts: # src/lib/db/apiKeys.ts # src/lib/db/migrationRunner.ts # src/server/authz/policies/management.ts # src/server/authz/routeGuard.ts # tests/unit/route-guard-private-lan.test.ts
9 lines
464 B
SQL
9 lines
464 B
SQL
-- 085: Per-API-key quota-pool allow-list (Phase A1 — Quota Share redesign).
|
|
--
|
|
-- Adds `allowed_quotas` as a JSON TEXT array of quota-pool IDs. Empty array
|
|
-- means no quota-pool restriction (all pools accessible). Non-empty array
|
|
-- limits the key to the listed pool IDs only (enforcement added in Phase A2).
|
|
-- Idempotent via ADD COLUMN; safe to run more than once on older schemas.
|
|
|
|
ALTER TABLE api_keys ADD COLUMN allowed_quotas TEXT NOT NULL DEFAULT '[]';
|