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);