From eeda0d20d736428eca3dc8034c16db7992420c9c Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Mon, 15 Jul 2024 15:54:36 +0530 Subject: [PATCH] feat: index User.email --- migrations/20240516200802_cqrs_init.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/migrations/20240516200802_cqrs_init.sql b/migrations/20240516200802_cqrs_init.sql index a9c50a2..ddae744 100644 --- a/migrations/20240516200802_cqrs_init.sql +++ b/migrations/20240516200802_cqrs_init.sql @@ -30,3 +30,6 @@ CREATE TABLE IF NOT EXISTS user_query PRIMARY KEY (user_id) ); + + +CREATE UNIQUE INDEX IF NOT EXISTS user_email_index ON user_query (email); -- 2.39.5