From fc928a7288c8a5a6b9937ba380bd1f4e70396634 Mon Sep 17 00:00:00 2001 From: SneedBot Date: Fri, 14 Jul 2023 10:21:40 +0000 Subject: [PATCH] sneed --- schema.sql | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/schema.sql b/schema.sql index 957f9ed95..1fe6c6eed 100644 --- a/schema.sql +++ b/schema.sql @@ -30,6 +30,20 @@ CREATE EXTENSION IF NOT EXISTS fuzzystrmatch WITH SCHEMA public; COMMENT ON EXTENSION fuzzystrmatch IS 'determine similarities and distance between strings'; +-- +-- Name: hypopg; Type: EXTENSION; Schema: -; Owner: - +-- + +CREATE EXTENSION IF NOT EXISTS hypopg WITH SCHEMA public; + + +-- +-- Name: EXTENSION hypopg; Type: COMMENT; Schema: -; Owner: - +-- + +COMMENT ON EXTENSION hypopg IS 'Hypothetical indexes for PostgreSQL'; + + -- -- Name: pg_stat_statements; Type: EXTENSION; Schema: -; Owner: - -- @@ -1717,6 +1731,27 @@ CREATE INDEX badges_badge_id_idx ON public.badges USING btree (badge_id); CREATE INDEX block_target_idx ON public.userblocks USING btree (target_id); +-- +-- Name: casino_games_active_user_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX casino_games_active_user_id_idx ON public.casino_games USING btree (active, user_id); + + +-- +-- Name: casino_games_created_utc_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX casino_games_created_utc_idx ON public.casino_games USING btree (created_utc); + + +-- +-- Name: casino_games_user_id_winnings_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX casino_games_user_id_winnings_idx ON public.casino_games USING btree (user_id, winnings); + + -- -- Name: comment_is_banned_idx; Type: INDEX; Schema: public; Owner: - -- @@ -1745,6 +1780,13 @@ CREATE INDEX comment_parent_index ON public.comments USING btree (parent_comment CREATE INDEX comment_post_id_index ON public.comments USING btree (parent_post); +-- +-- Name: comments_author_id_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX comments_author_id_id_idx ON public.comments USING btree (author_id, id); + + -- -- Name: comments_body_ts_idx; Type: INDEX; Schema: public; Owner: - --