2022-05-20 23:15:44 +00:00
--
-- PostgreSQL database dump
--
2022-07-06 02:00:02 +00:00
-- Dumped from database version 14.4
2022-09-07 06:00:06 +00:00
-- Dumped by pg_dump version 14.5 (Ubuntu 14.5-1.pgdg20.04+1)
2022-05-20 23:15:44 +00:00
SET statement_timeout = 0 ;
SET lock_timeout = 0 ;
SET idle_in_transaction_session_timeout = 0 ;
SET client_encoding = ' UTF8 ' ;
SET standard_conforming_strings = on ;
SELECT pg_catalog . set_config ( ' search_path ' , ' ' , false ) ;
SET check_function_bodies = false ;
SET xmloption = content ;
SET client_min_messages = warning ;
SET row_security = off ;
--
-- Name: fuzzystrmatch; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS fuzzystrmatch WITH SCHEMA public ;
--
-- Name: EXTENSION fuzzystrmatch; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION fuzzystrmatch IS ' determine similarities and distance between strings ' ;
--
-- Name: pg_stat_statements; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS pg_stat_statements WITH SCHEMA public ;
--
-- Name: EXTENSION pg_stat_statements; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION pg_stat_statements IS ' track planning and execution statistics of all SQL statements executed ' ;
--
-- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public ;
--
-- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION pg_trgm IS ' text similarity measurement and index searching based on trigrams ' ;
2022-09-04 22:00:04 +00:00
--
-- Name: casino_game_currency; Type: TYPE; Schema: public; Owner: -
--
CREATE TYPE public . casino_game_currency AS ENUM (
' coins ' ,
' procoins '
) ;
--
-- Name: casino_game_kind; Type: TYPE; Schema: public; Owner: -
--
CREATE TYPE public . casino_game_kind AS ENUM (
' blackjack ' ,
2022-09-13 01:22:57 +00:00
' slots ' ,
' roulette '
2022-09-04 22:00:04 +00:00
) ;
2022-05-20 23:15:44 +00:00
SET default_tablespace = ' ' ;
SET default_table_access_method = heap ;
--
-- Name: submissions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . submissions (
id integer NOT NULL ,
author_id integer NOT NULL ,
created_utc integer NOT NULL ,
is_banned boolean DEFAULT false NOT NULL ,
over_18 boolean DEFAULT false NOT NULL ,
distinguish_level integer DEFAULT 0 NOT NULL ,
deleted_utc integer DEFAULT 0 NOT NULL ,
is_approved integer ,
edited_utc integer DEFAULT 0 NOT NULL ,
is_pinned boolean DEFAULT false NOT NULL ,
upvotes integer DEFAULT 1 NOT NULL ,
downvotes integer DEFAULT 0 NOT NULL ,
app_id integer ,
thumburl character varying ( 200 ) ,
private boolean DEFAULT false NOT NULL ,
views integer DEFAULT 0 NOT NULL ,
is_bot boolean DEFAULT false NOT NULL ,
2022-07-12 20:00:03 +00:00
bannedfor character varying ( 40 ) ,
2022-05-20 23:15:44 +00:00
comment_count integer DEFAULT 0 NOT NULL ,
club boolean DEFAULT false NOT NULL ,
stickied character varying ( 40 ) ,
title character varying ( 500 ) NOT NULL ,
url character varying ( 2083 ) ,
body character varying ( 20000 ) ,
body_html character varying ( 40000 ) ,
embed_url character varying ( 1500 ) ,
ban_reason character varying ( 25 ) ,
title_html character varying ( 1500 ) NOT NULL ,
realupvotes integer ,
flair character varying ( 350 ) ,
stickied_utc integer ,
ghost boolean DEFAULT false NOT NULL ,
2022-08-11 13:50:07 +00:00
sub character varying ( 25 ) ,
2022-07-01 23:00:02 +00:00
new boolean ,
2022-08-07 07:00:02 +00:00
hole_pinned character varying ( 30 ) ,
2022-09-10 07:00:02 +00:00
category_id integer ,
2022-09-10 10:00:04 +00:00
notify boolean NOT NULL
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: bump_utc(public.submissions); Type: FUNCTION; Schema: public; Owner: -
--
CREATE FUNCTION public . bump_utc ( public . submissions ) RETURNS integer
LANGUAGE sql IMMUTABLE STRICT
AS $ _ $
SELECT CREATED_UTC
FROM comments
WHERE parent_submission = $ 1 . id
ORDER BY created_utc desc
LIMIT 1
$ _ $ ;
--
-- Name: alts; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . alts (
user1 integer NOT NULL ,
user2 integer NOT NULL ,
is_manual boolean DEFAULT false NOT NULL ,
2022-09-12 11:00:01 +00:00
created_utc integer ,
2022-05-20 23:15:44 +00:00
CONSTRAINT alts_cant_be_equal CHECK ( ( user1 < > user2 ) )
) ;
--
-- Name: award_relationships; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . award_relationships (
id integer NOT NULL ,
user_id integer NOT NULL ,
submission_id integer ,
comment_id integer ,
2022-06-25 21:00:01 +00:00
kind character varying ( 20 ) NOT NULL ,
2022-08-18 21:00:04 +00:00
awarded_utc integer ,
2022-09-12 11:00:01 +00:00
granted boolean ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: award_relationships_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . award_relationships_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: award_relationships_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public . award_relationships_id_seq OWNED BY public . award_relationships . id ;
--
-- Name: badge_defs; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . badge_defs (
id integer NOT NULL ,
name character varying ( 50 ) NOT NULL ,
2022-09-12 11:00:01 +00:00
description character varying ( 200 ) ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: badge_defs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . badge_defs_id_seq
AS integer
START WITH 106
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: badge_defs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public . badge_defs_id_seq OWNED BY public . badge_defs . id ;
--
-- Name: badges; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . badges (
badge_id integer NOT NULL ,
user_id integer NOT NULL ,
description character varying ( 256 ) ,
2022-06-11 02:00:01 +00:00
url character varying ( 256 ) ,
created_utc integer NOT NULL
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: banneddomains; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . banneddomains (
domain character varying ( 100 ) NOT NULL ,
2022-09-12 11:00:01 +00:00
reason character varying ( 100 ) NOT NULL ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
2022-09-04 22:00:04 +00:00
--
-- Name: casino_games; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . casino_games (
id integer NOT NULL ,
user_id integer NOT NULL ,
created_utc integer NOT NULL ,
active boolean DEFAULT true NOT NULL ,
currency public . casino_game_currency NOT NULL ,
wager integer NOT NULL ,
winnings integer NOT NULL ,
kind public . casino_game_kind NOT NULL ,
game_state jsonb NOT NULL
) ;
--
-- Name: casino_games_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . casino_games_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: casino_games_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public . casino_games_id_seq OWNED BY public . casino_games . id ;
2022-08-07 07:00:02 +00:00
--
-- Name: category; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . category (
id integer NOT NULL ,
name character varying ( 128 ) NOT NULL ,
2022-08-11 13:50:07 +00:00
sub character varying ( 25 ) ,
2022-08-07 07:00:02 +00:00
color_text character ( 6 ) ,
2022-09-12 11:00:01 +00:00
color_bg character ( 6 ) ,
created_utc integer
2022-08-07 07:00:02 +00:00
) ;
--
-- Name: category_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . category_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: category_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public . category_id_seq OWNED BY public . category . id ;
2022-05-20 23:15:44 +00:00
--
-- Name: client_auths; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . client_auths (
user_id integer NOT NULL ,
oauth_client integer NOT NULL ,
2022-09-12 11:00:01 +00:00
access_token character ( 128 ) NOT NULL ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
2022-07-02 07:00:02 +00:00
--
-- Name: comment_option_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . comment_option_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: comment_option_votes; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . comment_option_votes (
option_id integer NOT NULL ,
user_id integer NOT NULL ,
created_utc integer NOT NULL ,
comment_id integer
) ;
--
-- Name: comment_options; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . comment_options (
id integer DEFAULT nextval ( ' public.comment_option_id_seq ' : : regclass ) NOT NULL ,
comment_id integer NOT NULL ,
body_html character varying ( 500 ) NOT NULL ,
2022-09-12 11:00:01 +00:00
exclusive integer NOT NULL ,
created_utc integer
2022-07-02 07:00:02 +00:00
) ;
2022-05-20 23:15:44 +00:00
--
-- Name: comment_save_relationship; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . comment_save_relationship (
user_id integer NOT NULL ,
2022-09-12 11:00:01 +00:00
comment_id integer NOT NULL ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: commentflags; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . commentflags (
user_id integer NOT NULL ,
comment_id integer NOT NULL ,
reason character varying ( 350 ) ,
created_utc integer NOT NULL
) ;
--
-- Name: comments; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . comments (
id integer NOT NULL ,
author_id integer NOT NULL ,
created_utc integer NOT NULL ,
parent_submission integer ,
is_banned boolean DEFAULT false NOT NULL ,
distinguish_level integer DEFAULT 0 NOT NULL ,
edited_utc integer DEFAULT 0 NOT NULL ,
deleted_utc integer DEFAULT 0 NOT NULL ,
is_approved integer ,
level integer DEFAULT 0 NOT NULL ,
parent_comment_id integer ,
over_18 boolean DEFAULT false NOT NULL ,
upvotes integer DEFAULT 1 NOT NULL ,
downvotes integer DEFAULT 0 NOT NULL ,
is_bot boolean DEFAULT false NOT NULL ,
app_id integer ,
sentto integer ,
2022-07-12 20:00:03 +00:00
bannedfor character varying ( 40 ) ,
2022-05-26 23:08:23 +00:00
stickied character varying ( 40 ) ,
2022-05-20 23:15:44 +00:00
body character varying ( 10000 ) ,
body_html character varying ( 40000 ) ,
ban_reason character varying ( 25 ) ,
realupvotes integer DEFAULT 1 NOT NULL ,
top_comment_id integer ,
2022-05-26 23:08:23 +00:00
stickied_utc integer ,
2022-05-20 23:15:44 +00:00
ghost boolean DEFAULT false NOT NULL ,
2022-09-04 22:00:04 +00:00
slots_result character varying ( 36 ) ,
blackjack_result character varying ( 860 ) ,
2022-05-20 23:15:44 +00:00
treasure_amount character varying ( 10 ) ,
wordle_result character varying ( 115 )
) ;
--
-- Name: comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . comments_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public . comments_id_seq OWNED BY public . comments . id ;
--
-- Name: commentvotes; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . commentvotes (
comment_id integer NOT NULL ,
vote_type integer NOT NULL ,
user_id integer NOT NULL ,
app_id integer ,
" real " boolean DEFAULT true NOT NULL ,
created_utc integer NOT NULL
) ;
--
-- Name: exiles; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . exiles (
user_id integer NOT NULL ,
2022-08-11 13:50:07 +00:00
sub character varying ( 25 ) NOT NULL ,
2022-09-12 11:00:01 +00:00
exiler_id integer NOT NULL ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: flags; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . flags (
user_id integer NOT NULL ,
post_id integer NOT NULL ,
reason character varying ( 350 ) ,
created_utc integer NOT NULL
) ;
--
-- Name: follows; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . follows (
user_id integer NOT NULL ,
target_id integer NOT NULL ,
created_utc integer NOT NULL
) ;
2022-09-03 00:00:02 +00:00
--
-- Name: hat_defs; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . hat_defs (
id integer NOT NULL ,
name character varying ( 50 ) NOT NULL ,
description character varying ( 300 ) NOT NULL ,
author_id integer NOT NULL ,
2022-09-10 06:00:02 +00:00
price integer NOT NULL ,
2022-09-12 11:00:01 +00:00
submitter_id integer ,
created_utc integer
2022-09-03 00:00:02 +00:00
) ;
--
-- Name: hat_defs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . hat_defs_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: hat_defs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public . hat_defs_id_seq OWNED BY public . hat_defs . id ;
--
-- Name: hats; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . hats (
hat_id integer NOT NULL ,
2022-09-05 04:00:04 +00:00
user_id integer NOT NULL ,
2022-09-12 11:00:01 +00:00
equipped boolean ,
created_utc integer
2022-09-03 00:00:02 +00:00
) ;
2022-05-30 04:11:49 +00:00
--
-- Name: lotteries; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . lotteries (
id integer NOT NULL ,
is_active boolean DEFAULT false NOT NULL ,
ends_at integer DEFAULT 0 NOT NULL ,
prize integer DEFAULT 0 NOT NULL ,
tickets_sold integer DEFAULT 0 NOT NULL ,
2022-09-12 11:00:01 +00:00
winner_id integer ,
created_utc integer
2022-05-30 04:11:49 +00:00
) ;
--
-- Name: lotteries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . lotteries_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: lotteries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public . lotteries_id_seq OWNED BY public . lotteries . id ;
2022-05-20 23:15:44 +00:00
--
-- Name: marseys; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . marseys (
name character varying ( 30 ) NOT NULL ,
author_id integer NOT NULL ,
tags character varying ( 200 ) NOT NULL ,
2022-09-09 10:00:04 +00:00
count integer DEFAULT 0 NOT NULL ,
2022-09-12 11:00:01 +00:00
submitter_id integer ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: modactions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . modactions (
id integer NOT NULL ,
user_id integer ,
target_user_id integer ,
target_submission_id integer ,
target_comment_id integer ,
created_utc integer NOT NULL ,
kind character varying ( 32 ) DEFAULT NULL : : character varying ,
2022-05-26 18:09:44 +00:00
_note character varying ( 500 ) DEFAULT NULL : : character varying
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: modactions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . modactions_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: modactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public . modactions_id_seq OWNED BY public . modactions . id ;
--
-- Name: mods; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . mods (
user_id integer NOT NULL ,
2022-08-11 13:50:07 +00:00
sub character varying ( 25 ) NOT NULL ,
2022-05-20 23:15:44 +00:00
created_utc integer NOT NULL
) ;
--
-- Name: notifications; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . notifications (
user_id integer NOT NULL ,
comment_id integer NOT NULL ,
read boolean NOT NULL ,
created_utc integer NOT NULL
) ;
--
-- Name: oauth_apps; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . oauth_apps (
id integer NOT NULL ,
client_id character ( 64 ) ,
app_name character varying ( 50 ) NOT NULL ,
redirect_uri character varying ( 4096 ) NOT NULL ,
author_id integer NOT NULL ,
2022-09-12 11:00:01 +00:00
description character varying ( 256 ) NOT NULL ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: oauth_apps_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . oauth_apps_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: oauth_apps_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public . oauth_apps_id_seq OWNED BY public . oauth_apps . id ;
2022-06-26 06:00:02 +00:00
--
-- Name: pgbench_accounts; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . pgbench_accounts (
aid integer NOT NULL ,
bid integer ,
abalance integer ,
filler character ( 84 )
)
WITH ( fillfactor = ' 100 ' ) ;
--
-- Name: pgbench_branches; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . pgbench_branches (
bid integer NOT NULL ,
bbalance integer ,
filler character ( 88 )
)
WITH ( fillfactor = ' 100 ' ) ;
--
-- Name: pgbench_history; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . pgbench_history (
tid integer ,
bid integer ,
aid integer ,
delta integer ,
mtime timestamp without time zone ,
filler character ( 22 )
) ;
--
-- Name: pgbench_tellers; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . pgbench_tellers (
tid integer NOT NULL ,
bid integer ,
tbalance integer ,
filler character ( 84 )
)
WITH ( fillfactor = ' 100 ' ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: save_relationship; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . save_relationship (
submission_id integer NOT NULL ,
2022-09-12 11:00:01 +00:00
user_id integer NOT NULL ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: sub_blocks; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . sub_blocks (
user_id integer NOT NULL ,
2022-09-12 11:00:01 +00:00
sub character varying ( 25 ) NOT NULL ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
2022-08-19 22:00:03 +00:00
--
-- Name: sub_joins; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . sub_joins (
user_id integer NOT NULL ,
2022-09-12 11:00:01 +00:00
sub character varying ( 25 ) NOT NULL ,
created_utc integer
2022-08-19 22:00:03 +00:00
) ;
2022-06-09 20:27:34 +00:00
--
-- Name: sub_subscriptions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . sub_subscriptions (
user_id integer NOT NULL ,
2022-09-12 11:00:01 +00:00
sub character varying ( 25 ) NOT NULL ,
created_utc integer
2022-06-09 20:27:34 +00:00
) ;
2022-07-02 07:00:02 +00:00
--
-- Name: submission_option_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . submission_option_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: submission_option_votes; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . submission_option_votes (
option_id integer NOT NULL ,
user_id integer NOT NULL ,
created_utc integer NOT NULL ,
submission_id integer
) ;
--
-- Name: submission_options; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . submission_options (
id integer DEFAULT nextval ( ' public.submission_option_id_seq ' : : regclass ) NOT NULL ,
submission_id integer NOT NULL ,
body_html character varying ( 500 ) NOT NULL ,
2022-09-12 11:00:01 +00:00
exclusive integer NOT NULL ,
created_utc integer
2022-07-02 07:00:02 +00:00
) ;
2022-05-20 23:15:44 +00:00
--
-- Name: submissions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . submissions_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: submissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public . submissions_id_seq OWNED BY public . submissions . id ;
--
-- Name: subs; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . subs (
2022-08-11 13:34:56 +00:00
name character varying ( 25 ) NOT NULL ,
2022-07-17 17:26:16 +00:00
sidebar character varying ( 10000 ) ,
sidebar_html character varying ( 20000 ) ,
2022-05-20 23:15:44 +00:00
sidebarurl character varying ( 60 ) ,
bannerurl character varying ( 60 ) ,
2022-08-19 22:00:03 +00:00
css character varying ( 6000 ) ,
2022-08-24 23:00:03 +00:00
stealth boolean ,
2022-09-12 11:00:01 +00:00
marseyurl character varying ( 60 ) ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: subscriptions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . subscriptions (
user_id integer NOT NULL ,
2022-09-12 11:00:01 +00:00
submission_id integer NOT NULL ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
2022-09-14 09:00:02 +00:00
--
-- Name: transactions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . transactions (
id character varying ( 36 ) NOT NULL ,
created_utc integer NOT NULL ,
type character varying ( 12 ) NOT NULL ,
amount integer NOT NULL ,
email character varying ( 255 ) NOT NULL
) ;
2022-05-20 23:15:44 +00:00
--
-- Name: userblocks; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . userblocks (
user_id integer NOT NULL ,
2022-09-12 11:00:01 +00:00
target_id integer NOT NULL ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: users; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . users (
id integer NOT NULL ,
2022-06-29 07:00:01 +00:00
username character varying ( 30 ) NOT NULL ,
2022-05-20 23:15:44 +00:00
email character varying ( 255 ) ,
passhash character varying ( 255 ) NOT NULL ,
created_utc integer NOT NULL ,
admin_level integer DEFAULT 0 NOT NULL ,
over_18 boolean DEFAULT false NOT NULL ,
is_activated boolean DEFAULT false NOT NULL ,
bio character varying ( 1500 ) ,
bio_html character varying ( 10000 ) ,
referred_by integer ,
is_banned integer DEFAULT 0 NOT NULL ,
ban_reason character varying ( 256 ) ,
login_nonce integer DEFAULT 0 NOT NULL ,
reserved character varying ( 256 ) ,
mfa_secret character varying ( 32 ) ,
is_private boolean DEFAULT false NOT NULL ,
unban_utc integer DEFAULT 0 NOT NULL ,
is_nofollow boolean DEFAULT false NOT NULL ,
custom_filter_list character varying ( 1000 ) DEFAULT ' ' : : character varying ,
discord_id character varying ( 64 ) ,
stored_subscriber_count integer DEFAULT 0 NOT NULL ,
ban_evade integer DEFAULT 0 NOT NULL ,
2022-06-29 07:00:01 +00:00
original_username character varying ( 30 ) ,
2022-05-20 23:15:44 +00:00
customtitle character varying ( 1000 ) ,
defaultsorting character varying ( 15 ) DEFAULT ' hot ' : : character varying NOT NULL ,
defaulttime character varying ( 5 ) NOT NULL ,
namecolor character varying ( 6 ) NOT NULL ,
titlecolor character varying ( 6 ) NOT NULL ,
profileurl character varying ( 65 ) ,
bannerurl character varying ( 65 ) ,
hidevotedon boolean DEFAULT false NOT NULL ,
newtab boolean DEFAULT false NOT NULL ,
flairchanged integer ,
defaultsortingcomments character varying ( 15 ) DEFAULT ' top ' : : character varying NOT NULL ,
theme character varying ( 15 ) NOT NULL ,
song character varying ( 50 ) ,
slurreplacer boolean DEFAULT true NOT NULL ,
shadowbanned character varying ( 25 ) ,
newtabexternal boolean DEFAULT true NOT NULL ,
customtitleplain character varying ( 100 ) ,
themecolor character varying ( 6 ) NOT NULL ,
css character varying ( 4000 ) ,
profilecss character varying ( 4000 ) ,
coins integer DEFAULT 0 NOT NULL ,
agendaposter integer DEFAULT 0 NOT NULL ,
post_count integer DEFAULT 0 NOT NULL ,
comment_count integer DEFAULT 0 NOT NULL ,
highres character varying ( 60 ) ,
patron integer DEFAULT 0 NOT NULL ,
controversial boolean DEFAULT false NOT NULL ,
background character varying ( 20 ) ,
verified character varying ( 100 ) ,
cardview boolean NOT NULL ,
received_award_count integer DEFAULT 0 NOT NULL ,
highlightcomments boolean DEFAULT true NOT NULL ,
nitter boolean ,
true coins integer DEFAULT 0 NOT NULL ,
club_allowed boolean ,
frontsize integer DEFAULT 25 NOT NULL ,
coins_spent integer DEFAULT 0 NOT NULL ,
procoins integer DEFAULT 0 NOT NULL ,
mute boolean ,
unmutable boolean ,
verifiedcolor character varying ( 6 ) ,
marseyawarded integer ,
sig character varying ( 200 ) ,
sig_html character varying ( 1000 ) ,
friends character varying ( 500 ) ,
friends_html character varying ( 2000 ) ,
sigs_disabled boolean ,
enemies character varying ( 500 ) ,
enemies_html character varying ( 2000 ) ,
fp character varying ( 21 ) ,
eye boolean ,
alt boolean ,
longpost integer ,
unblockable boolean ,
bird integer ,
fish boolean ,
lootboxes_bought integer DEFAULT 0 NOT NULL ,
progressivestack integer ,
winnings integer DEFAULT 0 NOT NULL ,
patron_utc integer DEFAULT 0 NOT NULL ,
rehab integer ,
house character varying ( 16 ) ,
deflector integer ,
2022-05-29 08:00:01 +00:00
reddit character varying ( 15 ) NOT NULL ,
2022-05-30 04:11:49 +00:00
currently_held_lottery_tickets integer DEFAULT 0 NOT NULL ,
total_held_lottery_tickets integer DEFAULT 0 NOT NULL ,
2022-05-30 09:40:22 +00:00
total_lottery_winnings integer DEFAULT 0 NOT NULL ,
2022-06-20 20:25:03 +00:00
offsitementions boolean DEFAULT false NOT NULL ,
2022-06-27 03:00:03 +00:00
last_active integer DEFAULT 0 NOT NULL ,
2022-07-08 19:00:02 +00:00
poorcel boolean DEFAULT false NOT NULL ,
2022-07-11 17:00:02 +00:00
last_viewed_post_notifs integer NOT NULL ,
2022-08-05 22:00:03 +00:00
pronouns character varying ( 11 ) NOT NULL ,
2022-08-15 18:00:03 +00:00
last_viewed_log_notifs integer NOT NULL ,
2022-08-27 00:00:02 +00:00
imginn boolean ,
earlylife integer ,
2022-08-27 03:00:04 +00:00
bite integer ,
2022-08-27 04:00:05 +00:00
old_house character varying ( 16 ) ,
owoify integer ,
2022-09-01 22:00:04 +00:00
marsify integer ,
2022-09-03 00:00:02 +00:00
is_muted boolean DEFAULT false NOT NULL ,
2022-09-06 05:00:04 +00:00
coins_spent_on_hats integer DEFAULT 0 NOT NULL ,
rainbow integer
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public . users_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1 ;
--
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public . users_id_seq OWNED BY public . users . id ;
--
-- Name: viewers; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . viewers (
user_id integer NOT NULL ,
viewer_id integer NOT NULL ,
2022-09-12 11:00:01 +00:00
last_view_utc integer NOT NULL ,
created_utc integer
2022-05-20 23:15:44 +00:00
) ;
--
-- Name: votes; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public . votes (
user_id integer NOT NULL ,
submission_id integer NOT NULL ,
vote_type integer NOT NULL ,
app_id integer ,
" real " boolean DEFAULT true NOT NULL ,
created_utc integer NOT NULL
) ;
--
-- Name: award_relationships id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . award_relationships ALTER COLUMN id SET DEFAULT nextval ( ' public.award_relationships_id_seq ' : : regclass ) ;
--
-- Name: badge_defs id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . badge_defs ALTER COLUMN id SET DEFAULT nextval ( ' public.badge_defs_id_seq ' : : regclass ) ;
2022-09-04 22:00:04 +00:00
--
-- Name: casino_games id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . casino_games ALTER COLUMN id SET DEFAULT nextval ( ' public.casino_games_id_seq ' : : regclass ) ;
2022-08-07 07:00:02 +00:00
--
-- Name: category id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . category ALTER COLUMN id SET DEFAULT nextval ( ' public.category_id_seq ' : : regclass ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: comments id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comments ALTER COLUMN id SET DEFAULT nextval ( ' public.comments_id_seq ' : : regclass ) ;
2022-09-03 00:00:02 +00:00
--
-- Name: hat_defs id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . hat_defs ALTER COLUMN id SET DEFAULT nextval ( ' public.hat_defs_id_seq ' : : regclass ) ;
2022-05-30 04:11:49 +00:00
--
-- Name: lotteries id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . lotteries ALTER COLUMN id SET DEFAULT nextval ( ' public.lotteries_id_seq ' : : regclass ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: modactions id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . modactions ALTER COLUMN id SET DEFAULT nextval ( ' public.modactions_id_seq ' : : regclass ) ;
--
-- Name: oauth_apps id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . oauth_apps ALTER COLUMN id SET DEFAULT nextval ( ' public.oauth_apps_id_seq ' : : regclass ) ;
--
-- Name: submissions id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . submissions ALTER COLUMN id SET DEFAULT nextval ( ' public.submissions_id_seq ' : : regclass ) ;
--
-- Name: users id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . users ALTER COLUMN id SET DEFAULT nextval ( ' public.users_id_seq ' : : regclass ) ;
--
-- Name: alts alts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . alts
ADD CONSTRAINT alts_pkey PRIMARY KEY ( user1 , user2 ) ;
--
-- Name: award_relationships award_constraint; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . award_relationships
ADD CONSTRAINT award_constraint UNIQUE ( user_id , submission_id , comment_id ) ;
--
-- Name: award_relationships award_relationships_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . award_relationships
ADD CONSTRAINT award_relationships_pkey PRIMARY KEY ( id ) ;
--
-- Name: badge_defs badge_def_name_unique; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . badge_defs
ADD CONSTRAINT badge_def_name_unique UNIQUE ( name ) ;
--
-- Name: badge_defs badge_defs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . badge_defs
ADD CONSTRAINT badge_defs_pkey PRIMARY KEY ( id ) ;
--
-- Name: badges badges_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . badges
ADD CONSTRAINT badges_pkey PRIMARY KEY ( user_id , badge_id ) ;
2022-09-04 22:00:04 +00:00
--
-- Name: casino_games casino_games_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . casino_games
ADD CONSTRAINT casino_games_pkey PRIMARY KEY ( id ) ;
2022-08-07 07:00:02 +00:00
--
-- Name: category category_name_sub_key; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . category
ADD CONSTRAINT category_name_sub_key UNIQUE ( name , sub ) ;
--
-- Name: category category_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . category
ADD CONSTRAINT category_pkey PRIMARY KEY ( id ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: client_auths client_auths_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . client_auths
ADD CONSTRAINT client_auths_pkey PRIMARY KEY ( user_id , oauth_client ) ;
2022-07-02 07:00:02 +00:00
--
-- Name: comment_option_votes comment_option_votes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comment_option_votes
ADD CONSTRAINT comment_option_votes_pkey PRIMARY KEY ( option_id , user_id ) ;
--
-- Name: comment_options comment_options_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comment_options
ADD CONSTRAINT comment_options_pkey PRIMARY KEY ( id ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: comment_save_relationship comment_save_relationship_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comment_save_relationship
ADD CONSTRAINT comment_save_relationship_pkey PRIMARY KEY ( user_id , comment_id ) ;
--
-- Name: commentflags commentflags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . commentflags
ADD CONSTRAINT commentflags_pkey PRIMARY KEY ( comment_id , user_id ) ;
--
-- Name: comments comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comments
ADD CONSTRAINT comments_pkey PRIMARY KEY ( id ) ;
--
-- Name: commentvotes commentvotes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . commentvotes
ADD CONSTRAINT commentvotes_pkey PRIMARY KEY ( comment_id , user_id ) ;
--
-- Name: banneddomains domain_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . banneddomains
ADD CONSTRAINT domain_pkey PRIMARY KEY ( domain ) ;
--
-- Name: exiles exiles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . exiles
ADD CONSTRAINT exiles_pkey PRIMARY KEY ( user_id , sub ) ;
--
-- Name: flags flags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . flags
ADD CONSTRAINT flags_pkey PRIMARY KEY ( post_id , user_id ) ;
--
-- Name: follows follows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . follows
ADD CONSTRAINT follows_pkey PRIMARY KEY ( target_id , user_id ) ;
2022-09-03 00:00:02 +00:00
--
-- Name: hat_defs hat_defs_name_key; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . hat_defs
ADD CONSTRAINT hat_defs_name_key UNIQUE ( name ) ;
--
-- Name: hat_defs hat_defs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . hat_defs
ADD CONSTRAINT hat_defs_pkey PRIMARY KEY ( id ) ;
--
-- Name: hats hats_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . hats
ADD CONSTRAINT hats_pkey PRIMARY KEY ( user_id , hat_id ) ;
2022-05-30 04:11:49 +00:00
--
-- Name: lotteries lotteries_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . lotteries
ADD CONSTRAINT lotteries_pkey PRIMARY KEY ( id ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: marseys marseys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . marseys
ADD CONSTRAINT marseys_pkey PRIMARY KEY ( name ) ;
--
-- Name: modactions modactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . modactions
ADD CONSTRAINT modactions_pkey PRIMARY KEY ( id ) ;
--
-- Name: mods mods_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . mods
ADD CONSTRAINT mods_pkey PRIMARY KEY ( user_id , sub ) ;
--
-- Name: notifications notifications_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . notifications
ADD CONSTRAINT notifications_pkey PRIMARY KEY ( user_id , comment_id ) ;
--
-- Name: oauth_apps oauth_apps_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . oauth_apps
ADD CONSTRAINT oauth_apps_pkey PRIMARY KEY ( id ) ;
--
-- Name: users one_banner; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . users
ADD CONSTRAINT one_banner UNIQUE ( bannerurl ) ;
--
-- Name: users one_discord_account; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . users
ADD CONSTRAINT one_discord_account UNIQUE ( discord_id ) ;
2022-06-26 06:00:02 +00:00
--
-- Name: pgbench_accounts pgbench_accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . pgbench_accounts
ADD CONSTRAINT pgbench_accounts_pkey PRIMARY KEY ( aid ) ;
--
-- Name: pgbench_branches pgbench_branches_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . pgbench_branches
ADD CONSTRAINT pgbench_branches_pkey PRIMARY KEY ( bid ) ;
--
-- Name: pgbench_tellers pgbench_tellers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . pgbench_tellers
ADD CONSTRAINT pgbench_tellers_pkey PRIMARY KEY ( tid ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: save_relationship save_relationship_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . save_relationship
ADD CONSTRAINT save_relationship_pkey PRIMARY KEY ( user_id , submission_id ) ;
--
-- Name: sub_blocks sub_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . sub_blocks
ADD CONSTRAINT sub_blocks_pkey PRIMARY KEY ( user_id , sub ) ;
2022-08-19 22:00:03 +00:00
--
-- Name: sub_joins sub_joins_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . sub_joins
ADD CONSTRAINT sub_joins_pkey PRIMARY KEY ( user_id , sub ) ;
2022-06-09 20:27:34 +00:00
--
-- Name: sub_subscriptions sub_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . sub_subscriptions
ADD CONSTRAINT sub_subscriptions_pkey PRIMARY KEY ( user_id , sub ) ;
2022-07-02 07:00:02 +00:00
--
-- Name: submission_option_votes submission_option_votes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . submission_option_votes
ADD CONSTRAINT submission_option_votes_pkey PRIMARY KEY ( option_id , user_id ) ;
--
-- Name: submission_options submission_options_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . submission_options
ADD CONSTRAINT submission_options_pkey PRIMARY KEY ( id ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: submissions submissions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . submissions
ADD CONSTRAINT submissions_pkey PRIMARY KEY ( id ) ;
--
-- Name: subs subs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . subs
ADD CONSTRAINT subs_pkey PRIMARY KEY ( name ) ;
--
-- Name: subscriptions subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . subscriptions
ADD CONSTRAINT subscriptions_pkey PRIMARY KEY ( submission_id , user_id ) ;
2022-09-14 09:00:02 +00:00
--
-- Name: transactions transactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . transactions
ADD CONSTRAINT transactions_pkey PRIMARY KEY ( id ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: users uid_unique; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . users
ADD CONSTRAINT uid_unique UNIQUE ( id ) ;
--
-- Name: client_auths unique_access; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . client_auths
ADD CONSTRAINT unique_access UNIQUE ( access_token ) ;
--
-- Name: oauth_apps unique_id; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . oauth_apps
ADD CONSTRAINT unique_id UNIQUE ( client_id ) ;
--
-- Name: userblocks userblocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . userblocks
ADD CONSTRAINT userblocks_pkey PRIMARY KEY ( user_id , target_id ) ;
--
-- Name: users users_original_username_key; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . users
ADD CONSTRAINT users_original_username_key UNIQUE ( original_username ) ;
--
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . users
ADD CONSTRAINT users_pkey PRIMARY KEY ( username ) ;
--
-- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . users
ADD CONSTRAINT users_username_key UNIQUE ( username ) ;
--
-- Name: viewers viewers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . viewers
ADD CONSTRAINT viewers_pkey PRIMARY KEY ( user_id , viewer_id ) ;
--
-- Name: votes votes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . votes
ADD CONSTRAINT votes_pkey PRIMARY KEY ( submission_id , user_id ) ;
--
-- Name: alts_unique_combination; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX alts_unique_combination ON public . alts USING btree ( GREATEST ( user1 , user2 ) , LEAST ( user1 , user2 ) ) ;
--
-- Name: alts_user2_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX alts_user2_idx ON public . alts USING btree ( user2 ) ;
--
-- Name: award_comment_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX award_comment_idx ON public . award_relationships USING btree ( comment_id ) ;
--
-- Name: award_post_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX award_post_idx ON public . award_relationships USING btree ( submission_id ) ;
--
-- Name: award_user_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX award_user_idx ON public . award_relationships USING btree ( user_id ) ;
--
-- Name: badges_badge_id_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX badges_badge_id_idx ON public . badges USING btree ( badge_id ) ;
--
-- Name: block_target_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX block_target_idx ON public . userblocks USING btree ( target_id ) ;
--
-- Name: cflag_user_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX cflag_user_idx ON public . commentflags USING btree ( user_id ) ;
--
-- Name: comment_parent_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX comment_parent_index ON public . comments USING btree ( parent_comment_id ) ;
--
-- Name: comment_post_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX comment_post_id_index ON public . comments USING btree ( parent_submission ) ;
--
-- Name: comments_user_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX comments_user_index ON public . comments USING btree ( author_id ) ;
--
-- Name: commentvotes_comments_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX commentvotes_comments_type_index ON public . commentvotes USING btree ( vote_type ) ;
--
-- Name: cvote_user_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX cvote_user_index ON public . commentvotes USING btree ( user_id ) ;
--
-- Name: discord_id_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX discord_id_idx ON public . users USING btree ( discord_id ) ;
--
-- Name: domains_domain_trgm_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX domains_domain_trgm_idx ON public . banneddomains USING gin ( domain public . gin_trgm_ops ) ;
--
-- Name: fki_comment_approver_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_comment_approver_fkey ON public . comments USING btree ( is_approved ) ;
--
-- Name: fki_comment_save_relationship_comment_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_comment_save_relationship_comment_fkey ON public . comment_save_relationship USING btree ( comment_id ) ;
--
-- Name: fki_comment_sentto_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_comment_sentto_fkey ON public . comments USING btree ( sentto ) ;
--
-- Name: fki_exile_exiler_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_exile_exiler_fkey ON public . exiles USING btree ( exiler_id ) ;
--
-- Name: fki_exile_sub_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_exile_sub_fkey ON public . exiles USING btree ( sub ) ;
--
-- Name: fki_mod_sub_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_mod_sub_fkey ON public . mods USING btree ( sub ) ;
--
-- Name: fki_modactions_user_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_modactions_user_fkey ON public . modactions USING btree ( target_user_id ) ;
--
-- Name: fki_save_relationship_submission_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_save_relationship_submission_fkey ON public . save_relationship USING btree ( submission_id ) ;
--
-- Name: fki_sub_blocks_sub_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_sub_blocks_sub_fkey ON public . sub_blocks USING btree ( sub ) ;
2022-08-19 22:00:03 +00:00
--
-- Name: fki_sub_joins_sub_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_sub_joins_sub_fkey ON public . sub_joins USING btree ( sub ) ;
2022-06-09 20:27:34 +00:00
--
-- Name: fki_sub_subscriptions_sub_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_sub_subscriptions_sub_fkey ON public . sub_subscriptions USING btree ( sub ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: fki_submissions_approver_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_submissions_approver_fkey ON public . submissions USING btree ( is_approved ) ;
--
-- Name: fki_user_referrer_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_user_referrer_fkey ON public . users USING btree ( referred_by ) ;
--
-- Name: fki_view_viewer_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_view_viewer_fkey ON public . viewers USING btree ( viewer_id ) ;
--
-- Name: flag_user_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX flag_user_idx ON public . flags USING btree ( user_id ) ;
--
-- Name: follow_user_id_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX follow_user_id_index ON public . follows USING btree ( user_id ) ;
2022-09-10 06:00:02 +00:00
--
-- Name: hat_defs_submitter_id_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX hat_defs_submitter_id_idx ON public . hat_defs USING btree ( submitter_id ) ;
2022-07-16 19:00:04 +00:00
--
-- Name: lowercase_original_username; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX lowercase_original_username ON public . users USING btree ( lower ( ( original_username ) : : text ) ) ;
--
-- Name: lowercase_username; Type: INDEX; Schema: public; Owner: -
--
CREATE UNIQUE INDEX lowercase_username ON public . users USING btree ( lower ( ( username ) : : text ) ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: marseys_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX marseys_idx ON public . marseys USING btree ( name ) ;
--
-- Name: marseys_idx2; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX marseys_idx2 ON public . marseys USING btree ( author_id ) ;
--
-- Name: marseys_idx3; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX marseys_idx3 ON public . marseys USING btree ( count DESC ) ;
2022-09-09 10:00:04 +00:00
--
-- Name: marseys_idx4; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX marseys_idx4 ON public . marseys USING btree ( submitter_id ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: modaction_action_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX modaction_action_idx ON public . modactions USING btree ( kind ) ;
--
-- Name: modaction_cid_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX modaction_cid_idx ON public . modactions USING btree ( target_comment_id ) ;
--
-- Name: modaction_id_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX modaction_id_idx ON public . modactions USING btree ( id DESC ) ;
--
-- Name: modaction_pid_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX modaction_pid_idx ON public . modactions USING btree ( target_submission_id ) ;
--
-- Name: notification_read_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX notification_read_idx ON public . notifications USING btree ( read ) ;
--
-- Name: notifications_comment_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX notifications_comment_idx ON public . notifications USING btree ( comment_id ) ;
--
-- Name: notifs_user_read_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX notifs_user_read_idx ON public . notifications USING btree ( user_id , read ) ;
2022-07-02 07:00:02 +00:00
--
-- Name: option_comment; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX option_comment ON public . comment_options USING btree ( comment_id ) ;
--
-- Name: option_submission; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX option_submission ON public . submission_options USING btree ( submission_id ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: post_app_id_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX post_app_id_idx ON public . submissions USING btree ( app_id ) ;
--
-- Name: subimssion_binary_group_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX subimssion_binary_group_idx ON public . submissions USING btree ( is_banned , deleted_utc , over_18 ) ;
--
-- Name: submission_isbanned_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX submission_isbanned_idx ON public . submissions USING btree ( is_banned ) ;
--
-- Name: submission_isdeleted_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX submission_isdeleted_idx ON public . submissions USING btree ( deleted_utc ) ;
--
-- Name: submission_new_sort_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX submission_new_sort_idx ON public . submissions USING btree ( is_banned , deleted_utc , created_utc DESC , over_18 ) ;
--
-- Name: submission_pinned_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX submission_pinned_idx ON public . submissions USING btree ( is_pinned ) ;
--
-- Name: submissions_author_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX submissions_author_index ON public . submissions USING btree ( author_id ) ;
--
-- Name: submissions_created_utc_asc_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX submissions_created_utc_asc_idx ON public . submissions USING btree ( created_utc NULL S FIRST ) ;
--
-- Name: submissions_created_utc_desc_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX submissions_created_utc_desc_idx ON public . submissions USING btree ( created_utc DESC ) ;
--
-- Name: submissions_over18_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX submissions_over18_index ON public . submissions USING btree ( over_18 ) ;
--
-- Name: subs_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX subs_idx ON public . subs USING btree ( name ) ;
--
-- Name: subscription_user_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX subscription_user_index ON public . subscriptions USING btree ( user_id ) ;
2022-09-14 09:00:02 +00:00
--
-- Name: transactions_email_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX transactions_email_idx ON public . transactions USING btree ( email ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: user_banned_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX user_banned_idx ON public . users USING btree ( is_banned ) ;
--
-- Name: user_private_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX user_private_idx ON public . users USING btree ( is_private ) ;
--
-- Name: users_created_utc_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX users_created_utc_index ON public . users USING btree ( created_utc ) ;
--
-- Name: users_original_username_trgm_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX users_original_username_trgm_idx ON public . users USING gin ( original_username public . gin_trgm_ops ) ;
--
-- Name: users_subs_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX users_subs_idx ON public . users USING btree ( stored_subscriber_count ) ;
--
-- Name: users_unbanutc_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX users_unbanutc_idx ON public . users USING btree ( unban_utc DESC ) ;
--
-- Name: users_username_trgm_idx; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX users_username_trgm_idx ON public . users USING gin ( username public . gin_trgm_ops ) ;
--
-- Name: vote_user_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX vote_user_index ON public . votes USING btree ( user_id ) ;
--
-- Name: votes_type_index; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX votes_type_index ON public . votes USING btree ( vote_type ) ;
--
-- Name: alts alt_user1_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . alts
ADD CONSTRAINT alt_user1_fkey FOREIGN KEY ( user1 ) REFERENCES public . users ( id ) ;
--
-- Name: alts alt_user2_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . alts
ADD CONSTRAINT alt_user2_fkey FOREIGN KEY ( user2 ) REFERENCES public . users ( id ) ;
--
-- Name: oauth_apps app_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . oauth_apps
ADD CONSTRAINT app_author_id_fkey FOREIGN KEY ( author_id ) REFERENCES public . users ( id ) ;
--
-- Name: award_relationships award_comment_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . award_relationships
ADD CONSTRAINT award_comment_fkey FOREIGN KEY ( comment_id ) REFERENCES public . comments ( id ) ;
--
-- Name: award_relationships award_submission_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . award_relationships
ADD CONSTRAINT award_submission_fkey FOREIGN KEY ( submission_id ) REFERENCES public . submissions ( id ) ;
--
-- Name: award_relationships award_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . award_relationships
ADD CONSTRAINT award_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
--
-- Name: badges badges_badge_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . badges
ADD CONSTRAINT badges_badge_id_fkey FOREIGN KEY ( badge_id ) REFERENCES public . badge_defs ( id ) ;
--
-- Name: badges badges_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . badges
ADD CONSTRAINT badges_user_id_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
--
-- Name: userblocks block_target_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . userblocks
ADD CONSTRAINT block_target_fkey FOREIGN KEY ( target_id ) REFERENCES public . users ( id ) ;
--
-- Name: userblocks block_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . userblocks
ADD CONSTRAINT block_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
2022-09-04 22:00:04 +00:00
--
-- Name: casino_games casino_games_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . casino_games
ADD CONSTRAINT casino_games_user_id_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
2022-08-07 07:00:02 +00:00
--
-- Name: category category_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . category
ADD CONSTRAINT category_sub_fkey FOREIGN KEY ( sub ) REFERENCES public . subs ( name ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: client_auths client_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . client_auths
ADD CONSTRAINT client_user_id_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
--
-- Name: comments comment_approver_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comments
ADD CONSTRAINT comment_approver_fkey FOREIGN KEY ( is_approved ) REFERENCES public . users ( id ) ;
--
-- Name: comments comment_parent_comment_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comments
ADD CONSTRAINT comment_parent_comment_fkey FOREIGN KEY ( parent_comment_id ) REFERENCES public . comments ( id ) ;
--
-- Name: comments comment_parent_submission_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comments
ADD CONSTRAINT comment_parent_submission_fkey FOREIGN KEY ( parent_submission ) REFERENCES public . submissions ( id ) ;
--
-- Name: comment_save_relationship comment_save_relationship_comment_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comment_save_relationship
ADD CONSTRAINT comment_save_relationship_comment_fkey FOREIGN KEY ( comment_id ) REFERENCES public . comments ( id ) MATCH FULL ;
--
-- Name: comment_save_relationship comment_save_relationship_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comment_save_relationship
ADD CONSTRAINT comment_save_relationship_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) MATCH FULL ;
--
-- Name: comments comment_sentto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comments
ADD CONSTRAINT comment_sentto_fkey FOREIGN KEY ( sentto ) REFERENCES public . users ( id ) ;
--
-- Name: commentflags commentflags_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . commentflags
ADD CONSTRAINT commentflags_comment_id_fkey FOREIGN KEY ( comment_id ) REFERENCES public . comments ( id ) ;
--
-- Name: commentflags commentflags_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . commentflags
ADD CONSTRAINT commentflags_user_id_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
--
-- Name: comments comments_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comments
ADD CONSTRAINT comments_author_id_fkey FOREIGN KEY ( author_id ) REFERENCES public . users ( id ) ;
--
-- Name: commentvotes commentvote_comment_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . commentvotes
ADD CONSTRAINT commentvote_comment_fkey FOREIGN KEY ( comment_id ) REFERENCES public . comments ( id ) MATCH FULL ;
--
-- Name: commentvotes commentvote_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . commentvotes
ADD CONSTRAINT commentvote_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
--
-- Name: exiles exile_exiler_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . exiles
ADD CONSTRAINT exile_exiler_fkey FOREIGN KEY ( exiler_id ) REFERENCES public . users ( id ) ;
--
-- Name: exiles exile_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . exiles
ADD CONSTRAINT exile_sub_fkey FOREIGN KEY ( sub ) REFERENCES public . subs ( name ) ;
--
-- Name: exiles exile_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . exiles
ADD CONSTRAINT exile_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
2022-05-30 04:11:49 +00:00
--
-- Name: lotteries fk_winner; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . lotteries
ADD CONSTRAINT fk_winner FOREIGN KEY ( winner_id ) REFERENCES public . users ( id ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: flags flags_post_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . flags
ADD CONSTRAINT flags_post_id_fkey FOREIGN KEY ( post_id ) REFERENCES public . submissions ( id ) ;
--
-- Name: flags flags_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . flags
ADD CONSTRAINT flags_user_id_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
--
-- Name: follows follow_target_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . follows
ADD CONSTRAINT follow_target_fkey FOREIGN KEY ( target_id ) REFERENCES public . users ( id ) ;
--
-- Name: follows follow_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . follows
ADD CONSTRAINT follow_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
2022-09-10 06:00:02 +00:00
--
-- Name: hat_defs hat_def_submitter_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . hat_defs
ADD CONSTRAINT hat_def_submitter_fkey FOREIGN KEY ( submitter_id ) REFERENCES public . users ( id ) ;
2022-09-03 00:00:02 +00:00
--
-- Name: hat_defs hat_defs_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . hat_defs
ADD CONSTRAINT hat_defs_author_id_fkey FOREIGN KEY ( author_id ) REFERENCES public . users ( id ) ;
--
-- Name: hats hats_hat_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . hats
ADD CONSTRAINT hats_hat_id_fkey FOREIGN KEY ( hat_id ) REFERENCES public . hat_defs ( id ) ;
--
-- Name: hats hats_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . hats
ADD CONSTRAINT hats_user_id_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: marseys marsey_author_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . marseys
ADD CONSTRAINT marsey_author_fkey FOREIGN KEY ( author_id ) REFERENCES public . users ( id ) ;
2022-09-09 10:00:04 +00:00
--
-- Name: marseys marsey_submitter_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . marseys
ADD CONSTRAINT marsey_submitter_fkey FOREIGN KEY ( submitter_id ) REFERENCES public . users ( id ) ;
2022-05-20 23:15:44 +00:00
--
-- Name: mods mod_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . mods
ADD CONSTRAINT mod_sub_fkey FOREIGN KEY ( sub ) REFERENCES public . subs ( name ) ;
--
-- Name: modactions modactions_comment_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . modactions
ADD CONSTRAINT modactions_comment_fkey FOREIGN KEY ( target_comment_id ) REFERENCES public . comments ( id ) ;
--
-- Name: modactions modactions_submission_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . modactions
ADD CONSTRAINT modactions_submission_fkey FOREIGN KEY ( target_submission_id ) REFERENCES public . submissions ( id ) ;
--
-- Name: modactions modactions_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . modactions
ADD CONSTRAINT modactions_user_fkey FOREIGN KEY ( target_user_id ) REFERENCES public . users ( id ) ;
--
-- Name: notifications notifications_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . notifications
ADD CONSTRAINT notifications_comment_id_fkey FOREIGN KEY ( comment_id ) REFERENCES public . comments ( id ) ;
--
-- Name: notifications notifications_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . notifications
ADD CONSTRAINT notifications_user_id_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
--
-- Name: client_auths oauth_client_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . client_auths
ADD CONSTRAINT oauth_client_fkey FOREIGN KEY ( oauth_client ) REFERENCES public . oauth_apps ( id ) ;
2022-07-02 07:00:02 +00:00
--
-- Name: comment_options option_comment_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comment_options
ADD CONSTRAINT option_comment_fkey FOREIGN KEY ( comment_id ) REFERENCES public . comments ( id ) MATCH FULL ;
--
-- Name: submission_options option_submission_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . submission_options
ADD CONSTRAINT option_submission_fkey FOREIGN KEY ( submission_id ) REFERENCES public . submissions ( id ) MATCH FULL ;
2022-05-20 23:15:44 +00:00
--
-- Name: save_relationship save_relationship_submission_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . save_relationship
ADD CONSTRAINT save_relationship_submission_fkey FOREIGN KEY ( submission_id ) REFERENCES public . submissions ( id ) MATCH FULL ;
--
-- Name: save_relationship save_relationship_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . save_relationship
ADD CONSTRAINT save_relationship_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) MATCH FULL ;
--
-- Name: sub_blocks sub_blocks_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . sub_blocks
ADD CONSTRAINT sub_blocks_sub_fkey FOREIGN KEY ( sub ) REFERENCES public . subs ( name ) MATCH FULL ;
--
-- Name: sub_blocks sub_blocks_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . sub_blocks
ADD CONSTRAINT sub_blocks_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) MATCH FULL ;
--
-- Name: submissions sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . submissions
ADD CONSTRAINT sub_fkey FOREIGN KEY ( sub ) REFERENCES public . subs ( name ) ;
2022-08-19 22:00:03 +00:00
--
-- Name: sub_joins sub_joins_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . sub_joins
ADD CONSTRAINT sub_joins_sub_fkey FOREIGN KEY ( sub ) REFERENCES public . subs ( name ) MATCH FULL ;
--
-- Name: sub_joins sub_joins_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . sub_joins
ADD CONSTRAINT sub_joins_user_id_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) MATCH FULL ;
2022-06-09 20:27:34 +00:00
--
-- Name: sub_subscriptions sub_subscriptions_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . sub_subscriptions
ADD CONSTRAINT sub_subscriptions_sub_fkey FOREIGN KEY ( sub ) REFERENCES public . subs ( name ) MATCH FULL ;
--
-- Name: sub_subscriptions sub_subscriptions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . sub_subscriptions
ADD CONSTRAINT sub_subscriptions_user_id_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) MATCH FULL ;
2022-05-20 23:15:44 +00:00
--
-- Name: submissions submissions_approver_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . submissions
ADD CONSTRAINT submissions_approver_fkey FOREIGN KEY ( is_approved ) REFERENCES public . users ( id ) ;
--
-- Name: submissions submissions_author_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . submissions
ADD CONSTRAINT submissions_author_fkey FOREIGN KEY ( author_id ) REFERENCES public . users ( id ) ;
2022-08-07 07:00:02 +00:00
--
-- Name: submissions submissions_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . submissions
ADD CONSTRAINT submissions_category_id_fkey FOREIGN KEY ( category_id ) REFERENCES public . category ( id ) ON DELETE SET NULL ;
2022-05-20 23:15:44 +00:00
--
-- Name: subscriptions subscription_submission_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . subscriptions
ADD CONSTRAINT subscription_submission_fkey FOREIGN KEY ( submission_id ) REFERENCES public . submissions ( id ) ;
--
-- Name: subscriptions subscription_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . subscriptions
ADD CONSTRAINT subscription_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
--
-- Name: mods user_mod_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . mods
ADD CONSTRAINT user_mod_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
--
-- Name: users user_referrer_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . users
ADD CONSTRAINT user_referrer_fkey FOREIGN KEY ( referred_by ) REFERENCES public . users ( id ) ;
--
-- Name: viewers view_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . viewers
ADD CONSTRAINT view_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
--
-- Name: viewers view_viewer_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . viewers
ADD CONSTRAINT view_viewer_fkey FOREIGN KEY ( viewer_id ) REFERENCES public . users ( id ) ;
2022-07-02 07:00:02 +00:00
--
-- Name: comment_option_votes vote_comment_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comment_option_votes
ADD CONSTRAINT vote_comment_fkey FOREIGN KEY ( comment_id ) REFERENCES public . comments ( id ) MATCH FULL ;
--
-- Name: submission_option_votes vote_option_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . submission_option_votes
ADD CONSTRAINT vote_option_fkey FOREIGN KEY ( option_id ) REFERENCES public . submission_options ( id ) MATCH FULL ;
--
-- Name: comment_option_votes vote_option_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comment_option_votes
ADD CONSTRAINT vote_option_fkey FOREIGN KEY ( option_id ) REFERENCES public . comment_options ( id ) MATCH FULL ;
--
-- Name: submission_option_votes vote_submission_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . submission_option_votes
ADD CONSTRAINT vote_submission_fkey FOREIGN KEY ( submission_id ) REFERENCES public . submissions ( id ) MATCH FULL ;
2022-05-20 23:15:44 +00:00
--
-- Name: votes vote_submission_key; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . votes
ADD CONSTRAINT vote_submission_key FOREIGN KEY ( submission_id ) REFERENCES public . submissions ( id ) ;
--
-- Name: votes vote_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . votes
2022-05-30 04:11:49 +00:00
ADD CONSTRAINT vote_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) ;
2022-06-02 02:32:38 +00:00
2022-07-02 07:00:02 +00:00
--
-- Name: submission_option_votes vote_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . submission_option_votes
ADD CONSTRAINT vote_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) MATCH FULL ;
--
-- Name: comment_option_votes vote_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public . comment_option_votes
ADD CONSTRAINT vote_user_fkey FOREIGN KEY ( user_id ) REFERENCES public . users ( id ) MATCH FULL ;
2022-06-02 02:32:38 +00:00
--
-- PostgreSQL database dump complete
--
--
-- PostgreSQL database dump
--
2022-07-06 02:00:02 +00:00
-- Dumped from database version 14.4
2022-09-07 06:00:06 +00:00
-- Dumped by pg_dump version 14.5 (Ubuntu 14.5-1.pgdg20.04+1)
2022-06-02 02:32:38 +00:00
SET statement_timeout = 0 ;
SET lock_timeout = 0 ;
SET idle_in_transaction_session_timeout = 0 ;
SET client_encoding = ' UTF8 ' ;
SET standard_conforming_strings = on ;
SELECT pg_catalog . set_config ( ' search_path ' , ' ' , false ) ;
SET check_function_bodies = false ;
SET xmloption = content ;
SET client_min_messages = warning ;
SET row_security = off ;
--
-- Data for Name: badge_defs; Type: TABLE DATA; Schema: public; Owner: -
--
2022-09-13 20:17:28 +00:00
INSERT INTO public . badge_defs VALUES ( 136 , ' TRAIN 2022 ' , ' Beware: Found to be one of the most transmisic commenters on the site! ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 137 , ' Lottershe Winner ' , ' This user won the Lottershe grand prize. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 140 , ' Y '' all Seein '' Eye ' , ' Gets notified when other sites talk about us ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 141 , ' Marsey Typographer ' , ' For substantial and exceptional contributions to Marsey Alphabet. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 142 , ' Punching Down ' , ' This user mogs incels. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 143 , ' Marsey God ' , ' Contributed 100 (or more!!!!) Marsey emojis ✨😻 ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 144 , ' Energy Drink Enjoyer ' , ' Grip '' N Sip. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 147 , ' Freebase Fiend ' , ' From the crack grew a glass rose. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 148 , ' Blackpilled ' , ' Proud incel ally. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 149 , ' Thin ' , ' This user has verified that they are calorically disciplined. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 139 , ' Auspicious Incident ' , ' This user was fired from a volunteer position ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 150 , ' Verified ' , ' Bought a Blue Checkmark. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 151 , ' Responsible Citizen ' , ' This user upheld democracy by committing voter fraud. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 152 , ' Amateur Hathead ' , ' Collected 25 unique hats ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 155 , ' Ride Or Die Dramalo/Dramalette ' , ' When I die show no pity / Send my soul to the juggalo city / Dig my grave six feet deep / And put two matches by my feet / Put two hatchets on my chest / And tell my homies I did my best / WHOOP WHOOP ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 156 , ' Hole Neglecter ' , ' Brought a Hole into this world, only to let it die ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 21 , ' Paypig ' , ' Contributed at least $5 ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 22 , ' Renthog ' , ' Contributed at least $10 ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 23 , ' Landchad ' , ' Contributed at least $20 ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 24 , ' Terminally online turboautist ' , ' Contributed at least $50 ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 157 , ' A Minor Setback ' , ' Lost a 1,000 dramacoin bet. Keep going! ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 158 , ' Just One More Hand ' , ' Lost a 10,000 dramacoin bet. But it '' s fine, you '' re due for a big win! ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 160 , ' Lil Goombler ' , ' Won a 1,000 dramacoin bet. Nice job! ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 162 , ' King Goombler ' , ' Won a 100,000 dramacoin bet. Wipe your sweaty palms off and bet it all again, you '' re on a roll! ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 163 , ' Marsey Jacobs ' , ' Designed 10 hats! ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 166 , ' Giorgio Armarsey ' , ' Designed 250 hats 😲 ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 164 , ' Marsey de Givenchy ' , ' Designed 50 hats, holy cap. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 168 , ' BITTEN! ' , ' This user has been forcibly recruited to House Vampire ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 170 , ' Marsified ' , ' This user '' s comments get Marsified automatically ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 167 , ' OwOified ' , ' This user '' s comments get OwOified automatically ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 169 , ' Early Life Checked ' , ' The Early Life section of this user is on full display ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 172 , ' God Save The Kween ' , ' Commemorative badge awarded for outliving Her Maj ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 174 , ' George ' , ' @Marsey went to Spokane to fight @TrailerParkBride, but George the Mountain Lion was the real winner. ' , NULL ) ;
2022-09-13 22:00:03 +00:00
INSERT INTO public . badge_defs VALUES ( 175 , ' Pressuring Peer ' , ' You have applied pressure to poor souls undergoing rehabilitation [n] times. Shame on you! ' , 1663105259 ) ;
2022-09-13 20:17:28 +00:00
INSERT INTO public . badge_defs VALUES ( 4 , ' White Hat ' , ' Discreetly reported an exploit ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 1 , ' Alpha User ' , ' Joined during open alpha ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 2 , ' Verified Email ' , ' Verified Email ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 3 , ' Code Contributor ' , ' Contributed to the site '' s source code ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 6 , ' Beta User ' , ' Joined during open beta ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 7 , ' Bug Chaser ' , ' Found a bug ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 10 , ' Bronze Recruiter ' , ' Recruited 1 friend to join the site ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 11 , ' Silver Recruiter ' , ' Recruited 10 friends to join the site ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 12 , ' Gold Recruiter ' , ' Recruited 100 friends to join the site ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 15 , ' Idea Maker ' , ' Had a good idea for the site which was implemented by the developers ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 16 , ' Marsey Master ' , ' Contributed 10 (or more!!!!) Marsey emojis ✨ ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 17 , ' Marsey Artisan ' , ' Contributed a Marsey emoji ✨ ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 18 , ' Artisan ' , ' Contributed to site artwork ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 85 , ' Sigma User ' , ' ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 145 , ' Amphetamine Aficionado ' , ' Totally not addicted™ ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 146 , ' Coffee Consoomer ' , ' Don '' t talk to me until I '' ve had my soy latte. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 60 , ' Unironically Retarded ' , ' Demonstrated a wholesale inability to read the room ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 61 , ' Lab Rat ' , ' Helped test features in development ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 62 , ' Master Baiter ' , ' For outstanding achievement in the field of catching fish ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 63 , ' Balls ' , ' I wrote carp on my balls as a sign of submission ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 64 , ' The Other Kind Of Good Journalist ' , ' Contributed positive media attention to the site ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 65 , ' 2021 Spooooooky Marsey Artist ' , ' Contributed a VERY SCARY Marsey for Halloween 2021! ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 66 , ' Sk8r Boi ' , ' Certifies that this user is NOT a poser ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 67 , ' Unpausable ' , ' Spent 40,000 coins on an unpausable profile anthem ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 68 , ' Pause Button ' , ' Spent 20,000 coins on a profile anthem pause button ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 69 , ' Little Big Spender ' , ' Dropped 10,000 coins at the shop ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 70 , ' Big Spender ' , ' Dropped 100,000 coins at the shop ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 71 , ' Big Big Spender ' , ' Dropped 250,000 coins at the shop ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 72 , ' Big Big Big Spender ' , ' Dropped 500,000 coins at the shop ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 73 , ' Le Rich Gentlesir ' , ' Spent a fucking million coins at the shop ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 74 , ' Grass Toucher ' , ' Awarded for molesting plant life ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 75 , ' Halloween 21 ' , ' Awarded for surviving Homoween 2021 ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 76 , ' Low Roller ' , ' Bought 10 lootboxes ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 77 , ' Middle Roller ' , ' Bought 50 lootboxes ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 78 , ' High Roller ' , ' Bought 150 lootboxes ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 79 , ' Merchant ' , ' Contributed a new line of product to Marsey '' s Coin Emporium ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 80 , ' Artist Laureate ' , ' ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 81 , ' Patron of the Arts ' , ' Sponsored the creation of an approved Marsey ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 83 , ' All-Seeing Eye ' , ' Can view private profiles ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 84 , ' Alt-Seeing Eye ' , ' Can see alts ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 86 , ' Holly Jolly Marsey Artist ' , ' Contributed a VERY JOLLY Marsey for Christmas 2021! ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 87 , ' Unblockable ' , ' This user is unblockable ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 88 , ' Provider ' , ' This user provided a bountiful feast for Thanksgiving ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 89 , ' Dinner ' , ' Yes, it is edible ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 90 , ' Fish ' , ' This user cannot be unfollowed ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 91 , ' Grinch ' , ' This user is a joyless grinch who pays money to avoid having fun ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 92 , ' NFT Artist ' , ' Drew a marsey that was used as an NFT ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 93 , ' NFT Owner ' , ' Bought a marsey NFT ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 94 , ' Progressive Stack Award ' , ' Upvotes/downvotes on this user '' s posts and comments have double the ranking effect ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 95 , ' Bird Site Award ' , ' This user is limited to 140 characters ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 96 , ' Flairlock Award ' , ' This user '' s flair has been locked by someone else ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 97 , ' Pizzashill Award ' , ' This user has to make their posts and comments more than 280 characters ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 98 , ' Marsey Award ' , ' This user is limited to posting marseys ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 99 , ' Sidebar Artist ' , ' Contributed artwork featured on the sidebar ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 100 , ' True Believer ' , ' This user sees through communist lies ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 101 , ' Banner Artist ' , ' Contributed a banner image to the site ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 102 , ' Christmas 21 ' , ' Awarded for surviving Fistmas 2021 ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 103 , ' Benefactor ' , ' Gave the Benefactor award to someone ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 104 , ' BADASS OUTLAW ' , ' Bad boy who does not play by the rules ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 105 , ' SCAM ' , ' lmao get fucked retard ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 153 , ' Professional Hathead ' , ' Collected 100 unique hats ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 107 , ' Certified BIPOC ' , ' The mayocide starts now ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 108 , ' Nword Pass ' , ' With great power comes great responsibility ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 154 , ' Fiscally Irresponsible Hathead ' , ' Collected 250 unique hats ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 110 , ' Wolf Artisan ' , ' Contributed a Zombie Wolf emoji ✨ ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 111 , ' Wolf Master ' , ' Contributed 10 (or more!!!!) Zombie Wolf emojis ✨ ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 112 , ' Platy Artisan ' , ' Contributed a Platy emoji ✨ ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 113 , ' Platy Master ' , ' Contributed 10 (or more!!!!) Platy emojis ✨ ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 109 , ' Rehab Award ' , ' Prevented from gambling ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 114 , ' Capy Artisan ' , ' Contributed a Capy emoji ✨ ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 115 , ' Capy Master ' , ' Contributed 10 (or more!!!!) Capy emojis ✨ ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 116 , ' Outreach Award ' , ' Brought invaluable drama to the starving masses off-site ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 128 , ' Fart-Free ' , ' This user does NOT fart. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 117 , ' Stone Skeptic ' , ' This user rejects igneous lies ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 129 , ' Misinformation Superspreader ' , ' This poster was fact checked by real American patriots ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 130 , ' Columbine Enthusiast (TEMPORAL FLUX EDITION) ' , ' This user is an acclaimed Reb+VoDKa slash author ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 159 , ' It '' s Over ' , ' Lost a 100,000 dramacoin bet. It '' s fucking over. ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 161 , ' Pro Goombler ' , ' Won a 10,000 dramacoin bet. Some would say to quit while you '' re ahead, but they didn '' t just win 10k - keep at it! ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 165 , ' Marsey Chanel ' , ' Designed 100 hats!!! ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 28 , ' Chud ' , ' Marked as a chud ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 171 , ' Rainbowed ' , ' This user has super cute text ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 135 , ' 1st Birthgay Bash Survivor ' , ' Awarded for surviving rDrama '' s first annual Birthgay Bash ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 59 , ' Lolcow ' , ' Beautiful and valid milk provider ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 25 , ' Marsey '' s Sugar Daddy ' , ' Contributed at least $100 ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 26 , ' JIDF Bankroller ' , ' Donated at least $250 ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 27 , ' Rich Bich ' , ' Contributed at least $500 ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 118 , ' Hit! ' , ' Confirmed removal of a r/stupidpol post for hate speech or threatening violence ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 119 , ' BIG Hit! ' , ' Confirmed removal of a /r/stupidpol MODERATOR '' S post for hate speech or threatening violence ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 120 , ' Msar Bomba ' , ' Confirmed ban of a r/stupidpol user ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 121 , ' Order of Marsey, 2nd Class ' , ' Confirmed temp ban of a r/stupidpol moderator ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 122 , ' Order of Marsey, 1st Class ' , ' Confirmed permanent ban of a /r/stupidpol moderator ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 123 , ' Hero of the Marsey Union ' , ' Awarded to all soldiers who served during the Special Military Operation to de-nazify r/stupidpol ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 124 , ' COOL GUY ' , ' This user does NOT watch anime ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 125 , ' Certified LOSER ' , ' This user watches anime ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 126 , ' Survivor ' , ' This user braved the Oregon Trail and lived to tell the tale ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 127 , ' Wagonfire ' , ' This user braved the Oregon Trail and fucking died lmao ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 131 , ' 21st Century Hitlerite (TEMPORAL FLUX EDITION) ' , ' This user lost the love of their life in 1940s Berlin ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 132 , ' Duterte '' s Most Wanted (TEMPORAL FLUX EDITION) ' , ' dude weed lmao what year is it ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 133 , ' Rockstar ' , ' This user submitted an original piece to the song contest ' , NULL ) ;
INSERT INTO public . badge_defs VALUES ( 134 , ' 1 Year Old 🥰 ' , ' This user has wasted an ENTIRE YEAR of their life here! Happy birthday! ' , NULL ) ;
2022-06-02 02:32:38 +00:00
--
-- Name: badge_defs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
--
2022-09-13 22:00:03 +00:00
SELECT pg_catalog . setval ( ' public.badge_defs_id_seq ' , 175 , true ) ;
2022-06-02 02:32:38 +00:00
--
-- PostgreSQL database dump complete
--