+CREATE INDEX index_issues_on_reported_user_id ON public.issues USING btree (reported_user_id);
+
+
+--
+-- Name: index_issues_on_status; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_issues_on_status ON public.issues USING btree (status);
+
+
+--
+-- Name: index_issues_on_updated_by; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_issues_on_updated_by ON public.issues USING btree (updated_by);
+
+
+--
+-- Name: index_note_comments_on_author_id_and_created_at; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_note_comments_on_author_id_and_created_at ON public.note_comments USING btree (author_id, created_at);
+
+
+--
+-- Name: index_note_comments_on_body; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_note_comments_on_body ON public.note_comments USING gin (to_tsvector('english'::regconfig, body));
+
+
+--
+-- Name: index_note_comments_on_created_at; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_note_comments_on_created_at ON public.note_comments USING btree (created_at);
+
+
+--
+-- Name: index_note_subscriptions_on_note_id; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_note_subscriptions_on_note_id ON public.note_subscriptions USING btree (note_id);
+
+
+--
+-- Name: index_oauth_access_grants_on_application_id; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_oauth_access_grants_on_application_id ON public.oauth_access_grants USING btree (application_id);
+
+
+--
+-- Name: index_oauth_access_grants_on_resource_owner_id; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_oauth_access_grants_on_resource_owner_id ON public.oauth_access_grants USING btree (resource_owner_id);
+
+
+--
+-- Name: index_oauth_access_grants_on_token; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE UNIQUE INDEX index_oauth_access_grants_on_token ON public.oauth_access_grants USING btree (token);
+
+
+--
+-- Name: index_oauth_access_tokens_on_application_id; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_oauth_access_tokens_on_application_id ON public.oauth_access_tokens USING btree (application_id);
+
+
+--
+-- Name: index_oauth_access_tokens_on_refresh_token; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE UNIQUE INDEX index_oauth_access_tokens_on_refresh_token ON public.oauth_access_tokens USING btree (refresh_token);
+
+
+--
+-- Name: index_oauth_access_tokens_on_resource_owner_id; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_oauth_access_tokens_on_resource_owner_id ON public.oauth_access_tokens USING btree (resource_owner_id);
+
+
+--
+-- Name: index_oauth_access_tokens_on_token; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE UNIQUE INDEX index_oauth_access_tokens_on_token ON public.oauth_access_tokens USING btree (token);
+
+
+--
+-- Name: index_oauth_applications_on_owner_type_and_owner_id; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_oauth_applications_on_owner_type_and_owner_id ON public.oauth_applications USING btree (owner_type, owner_id);
+
+
+--
+-- Name: index_oauth_applications_on_uid; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE UNIQUE INDEX index_oauth_applications_on_uid ON public.oauth_applications USING btree (uid);
+
+
+--
+-- Name: index_oauth_openid_requests_on_access_grant_id; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_oauth_openid_requests_on_access_grant_id ON public.oauth_openid_requests USING btree (access_grant_id);
+
+
+--
+-- Name: index_reports_on_issue_id; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_reports_on_issue_id ON public.reports USING btree (issue_id);
+
+
+--
+-- Name: index_reports_on_user_id; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_reports_on_user_id ON public.reports USING btree (user_id);
+
+
+--
+-- Name: index_user_blocks_on_creator_id_and_id; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_user_blocks_on_creator_id_and_id ON public.user_blocks USING btree (creator_id, id);
+
+
+--
+-- Name: index_user_blocks_on_user_id; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_user_blocks_on_user_id ON public.user_blocks USING btree (user_id);
+
+
+--
+-- Name: index_user_mutes_on_owner_id_and_subject_id; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE UNIQUE INDEX index_user_mutes_on_owner_id_and_subject_id ON public.user_mutes USING btree (owner_id, subject_id);
+
+
+--
+-- Name: index_users_on_creation_address; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX index_users_on_creation_address ON public.users USING gist (creation_address inet_ops);
+
+
+--
+-- Name: messages_from_user_id_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX messages_from_user_id_idx ON public.messages USING btree (from_user_id);
+
+
+--
+-- Name: messages_to_user_id_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX messages_to_user_id_idx ON public.messages USING btree (to_user_id);
+
+
+--
+-- Name: nodes_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX nodes_changeset_id_idx ON public.nodes USING btree (changeset_id);
+
+
+--
+-- Name: nodes_tile_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX nodes_tile_idx ON public.nodes USING btree (tile);
+
+
+--
+-- Name: nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX nodes_timestamp_idx ON public.nodes USING btree ("timestamp");
+
+
+--
+-- Name: note_comments_note_id_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX note_comments_note_id_idx ON public.note_comments USING btree (note_id);
+
+
+--
+-- Name: notes_created_at_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX notes_created_at_idx ON public.notes USING btree (created_at);
+
+
+--
+-- Name: notes_tile_status_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX notes_tile_status_idx ON public.notes USING btree (tile, status);
+
+
+--
+-- Name: notes_updated_at_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX notes_updated_at_idx ON public.notes USING btree (updated_at);
+
+
+--
+-- Name: points_gpxid_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX points_gpxid_idx ON public.gps_points USING btree (gpx_id);
+
+
+--
+-- Name: points_tile_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX points_tile_idx ON public.gps_points USING btree (tile);
+
+
+--
+-- Name: relation_members_member_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX relation_members_member_idx ON public.relation_members USING btree (member_type, member_id);
+
+
+--
+-- Name: relations_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX relations_changeset_id_idx ON public.relations USING btree (changeset_id);
+
+
+--
+-- Name: relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX relations_timestamp_idx ON public.relations USING btree ("timestamp");
+
+
+--
+-- Name: user_id_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX user_id_idx ON public.friends USING btree (friend_user_id);
+
+
+--
+-- Name: user_roles_id_role_unique; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE UNIQUE INDEX user_roles_id_role_unique ON public.user_roles USING btree (user_id, role);
+
+
+--
+-- Name: users_auth_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE UNIQUE INDEX users_auth_idx ON public.users USING btree (auth_provider, auth_uid);
+
+
+--
+-- Name: users_display_name_canonical_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX users_display_name_canonical_idx ON public.users USING btree (lower(NORMALIZE(display_name, NFKC)));
+
+
+--
+-- Name: users_display_name_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE UNIQUE INDEX users_display_name_idx ON public.users USING btree (display_name);
+
+
+--
+-- Name: users_email_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE UNIQUE INDEX users_email_idx ON public.users USING btree (email);
+
+
+--
+-- Name: users_email_lower_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX users_email_lower_idx ON public.users USING btree (lower((email)::text));
+
+
+--
+-- Name: users_home_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX users_home_idx ON public.users USING btree (home_tile);
+
+
+--
+-- Name: way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX way_nodes_node_idx ON public.way_nodes USING btree (node_id);
+
+
+--
+-- Name: ways_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
+--
+
+CREATE INDEX ways_changeset_id_idx ON public.ways USING btree (changeset_id);