From ee405ac0501b5e103a6aa12a4a7d7b2faf64d47d Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Wed, 17 Jul 2024 19:34:19 -0400 Subject: [PATCH] API key index --- sql/postgres/migrations/001_initial.up.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/postgres/migrations/001_initial.up.sql b/sql/postgres/migrations/001_initial.up.sql index ef2ecc6..669ba5a 100644 --- a/sql/postgres/migrations/001_initial.up.sql +++ b/sql/postgres/migrations/001_initial.up.sql @@ -18,6 +18,8 @@ CREATE TABLE IF NOT EXISTS api_keys( api_key UUID UNIQUE NOT NULL ); +CREATE INDEX IF NOT EXISTS api_keys_api_key ON api_keys(api_key); + CREATE TABLE IF NOT EXISTS systems( id INTEGER PRIMARY KEY, name TEXT NOT NULL