diff --git a/services/backend/requirements.txt b/services/backend/requirements.txt index 8fc46d1..bccf343 100644 --- a/services/backend/requirements.txt +++ b/services/backend/requirements.txt @@ -13,3 +13,4 @@ Flask-SocketIO==5.3.6 apscheduler==3.10.4 requests==2.31.0 sqlalchemy +pytest==8.2.0 \ No newline at end of file diff --git a/services/postgres/schema.sql b/services/postgres/schema.sql index f65852b..e27be63 100644 --- a/services/postgres/schema.sql +++ b/services/postgres/schema.sql @@ -51,6 +51,7 @@ CREATE TABLE fts_word ( COPY fts_word(word) FROM '/docker-entrypoint-initdb.d/words_alpha.txt' WITH (FORMAT text); -- Indexes for faster search +CREATE INDEX idx_login ON users USING btree (email, password); CREATE INDEX idx_users_email ON users USING btree (email); CREATE INDEX idx_events_name ON events USING rum (name); CREATE INDEX idx_events_description ON events USING rum (description);