forked from MarseyWorld/MarseyWorld
sneed
parent
7e1de2bd59
commit
e2d9561ae8
238
schema.sql
238
schema.sql
|
@ -514,7 +514,7 @@ CREATE TABLE public.emojis (
|
||||||
|
|
||||||
CREATE TABLE public.exiles (
|
CREATE TABLE public.exiles (
|
||||||
user_id integer NOT NULL,
|
user_id integer NOT NULL,
|
||||||
sub character varying(25) NOT NULL,
|
hole character varying(25) NOT NULL,
|
||||||
exiler_id integer NOT NULL,
|
exiler_id integer NOT NULL,
|
||||||
created_utc integer
|
created_utc integer
|
||||||
);
|
);
|
||||||
|
@ -601,6 +601,62 @@ CREATE TABLE public.hats (
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: hole_actions; Type: TABLE; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE public.hole_actions (
|
||||||
|
id integer NOT NULL,
|
||||||
|
hole character varying(25) NOT NULL,
|
||||||
|
user_id integer,
|
||||||
|
target_user_id integer,
|
||||||
|
target_post_id integer,
|
||||||
|
target_comment_id integer,
|
||||||
|
created_utc integer NOT NULL,
|
||||||
|
kind character varying(32) DEFAULT NULL::character varying,
|
||||||
|
_note character varying(2019) DEFAULT NULL::character varying
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: hole_blocks; Type: TABLE; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE public.hole_blocks (
|
||||||
|
user_id integer NOT NULL,
|
||||||
|
hole character varying(25) NOT NULL,
|
||||||
|
created_utc integer
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: hole_follows; Type: TABLE; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE public.hole_follows (
|
||||||
|
user_id integer NOT NULL,
|
||||||
|
hole character varying(25) NOT NULL,
|
||||||
|
created_utc integer
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: holes; Type: TABLE; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
CREATE TABLE public.holes (
|
||||||
|
name character varying(25) NOT NULL,
|
||||||
|
sidebar character varying(10000),
|
||||||
|
sidebar_html character varying(20000),
|
||||||
|
sidebarurl character varying(60),
|
||||||
|
bannerurls character varying(60)[] DEFAULT '{}'::character varying[] NOT NULL,
|
||||||
|
css character varying(6000),
|
||||||
|
stealth boolean,
|
||||||
|
marseyurl character varying(60),
|
||||||
|
created_utc integer
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: lotteries; Type: TABLE; Schema: public; Owner: -
|
-- Name: lotteries; Type: TABLE; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -691,7 +747,7 @@ ALTER SEQUENCE public.modactions_id_seq OWNED BY public.modactions.id;
|
||||||
|
|
||||||
CREATE TABLE public.mods (
|
CREATE TABLE public.mods (
|
||||||
user_id integer NOT NULL,
|
user_id integer NOT NULL,
|
||||||
sub character varying(25) NOT NULL,
|
hole character varying(25) NOT NULL,
|
||||||
created_utc integer NOT NULL
|
created_utc integer NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -792,7 +848,7 @@ CREATE TABLE public.posts (
|
||||||
flair character varying(350),
|
flair character varying(350),
|
||||||
stickied_utc integer,
|
stickied_utc integer,
|
||||||
ghost boolean DEFAULT false NOT NULL,
|
ghost boolean DEFAULT false NOT NULL,
|
||||||
sub character varying(25),
|
hole character varying(25),
|
||||||
new boolean,
|
new boolean,
|
||||||
hole_pinned character varying(30),
|
hole_pinned character varying(30),
|
||||||
notify boolean NOT NULL,
|
notify boolean NOT NULL,
|
||||||
|
@ -900,55 +956,16 @@ CREATE TABLE public.save_relationship (
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: sub_blocks; Type: TABLE; Schema: public; Owner: -
|
-- Name: stealth_hole_unblocks; Type: TABLE; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE public.sub_blocks (
|
CREATE TABLE public.stealth_hole_unblocks (
|
||||||
user_id integer NOT NULL,
|
user_id integer NOT NULL,
|
||||||
sub character varying(25) NOT NULL,
|
hole character varying(25) NOT NULL,
|
||||||
created_utc integer
|
created_utc integer
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: sub_joins; Type: TABLE; Schema: public; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE public.sub_joins (
|
|
||||||
user_id integer NOT NULL,
|
|
||||||
sub character varying(25) NOT NULL,
|
|
||||||
created_utc integer
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: sub_subscriptions; Type: TABLE; Schema: public; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE public.sub_subscriptions (
|
|
||||||
user_id integer NOT NULL,
|
|
||||||
sub character varying(25) NOT NULL,
|
|
||||||
created_utc integer
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: subactions; Type: TABLE; Schema: public; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE public.subactions (
|
|
||||||
id integer NOT NULL,
|
|
||||||
sub character varying(25) NOT NULL,
|
|
||||||
user_id integer,
|
|
||||||
target_user_id integer,
|
|
||||||
target_post_id integer,
|
|
||||||
target_comment_id integer,
|
|
||||||
created_utc integer NOT NULL,
|
|
||||||
kind character varying(32) DEFAULT NULL::character varying,
|
|
||||||
_note character varying(2019) DEFAULT NULL::character varying
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: subactions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
-- Name: subactions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -966,24 +983,7 @@ CREATE SEQUENCE public.subactions_id_seq
|
||||||
-- Name: subactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
-- Name: subactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER SEQUENCE public.subactions_id_seq OWNED BY public.subactions.id;
|
ALTER SEQUENCE public.subactions_id_seq OWNED BY public.hole_actions.id;
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: subs; Type: TABLE; Schema: public; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE public.subs (
|
|
||||||
name character varying(25) NOT NULL,
|
|
||||||
sidebar character varying(10000),
|
|
||||||
sidebar_html character varying(20000),
|
|
||||||
sidebarurl character varying(60),
|
|
||||||
bannerurls character varying(60)[] DEFAULT '{}'::character varying[] NOT NULL,
|
|
||||||
css character varying(6000),
|
|
||||||
stealth boolean,
|
|
||||||
marseyurl character varying(60),
|
|
||||||
created_utc integer
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -1114,6 +1114,13 @@ ALTER TABLE ONLY public.comments ALTER COLUMN id SET DEFAULT nextval('public.com
|
||||||
ALTER TABLE ONLY public.hat_defs ALTER COLUMN id SET DEFAULT nextval('public.hat_defs_id_seq'::regclass);
|
ALTER TABLE ONLY public.hat_defs ALTER COLUMN id SET DEFAULT nextval('public.hat_defs_id_seq'::regclass);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: hole_actions id; Type: DEFAULT; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
ALTER TABLE ONLY public.hole_actions ALTER COLUMN id SET DEFAULT nextval('public.subactions_id_seq'::regclass);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: lotteries id; Type: DEFAULT; Schema: public; Owner: -
|
-- Name: lotteries id; Type: DEFAULT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -1142,13 +1149,6 @@ ALTER TABLE ONLY public.oauth_apps ALTER COLUMN id SET DEFAULT nextval('public.o
|
||||||
ALTER TABLE ONLY public.posts ALTER COLUMN id SET DEFAULT nextval('public.post_id_seq'::regclass);
|
ALTER TABLE ONLY public.posts ALTER COLUMN id SET DEFAULT nextval('public.post_id_seq'::regclass);
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: subactions id; Type: DEFAULT; Schema: public; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
ALTER TABLE ONLY public.subactions ALTER COLUMN id SET DEFAULT nextval('public.subactions_id_seq'::regclass);
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: users id; Type: DEFAULT; Schema: public; Owner: -
|
-- Name: users id; Type: DEFAULT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -1289,7 +1289,7 @@ ALTER TABLE ONLY public.emojis
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.exiles
|
ALTER TABLE ONLY public.exiles
|
||||||
ADD CONSTRAINT exiles_pkey PRIMARY KEY (user_id, sub);
|
ADD CONSTRAINT exiles_pkey PRIMARY KEY (user_id, hole);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -1369,7 +1369,7 @@ ALTER TABLE ONLY public.modactions
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.mods
|
ALTER TABLE ONLY public.mods
|
||||||
ADD CONSTRAINT mods_pkey PRIMARY KEY (user_id, sub);
|
ADD CONSTRAINT mods_pkey PRIMARY KEY (user_id, hole);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -1453,42 +1453,42 @@ ALTER TABLE ONLY public.save_relationship
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: sub_blocks sub_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
-- Name: hole_blocks sub_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.sub_blocks
|
ALTER TABLE ONLY public.hole_blocks
|
||||||
ADD CONSTRAINT sub_blocks_pkey PRIMARY KEY (user_id, sub);
|
ADD CONSTRAINT sub_blocks_pkey PRIMARY KEY (user_id, hole);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: sub_joins sub_joins_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
-- Name: stealth_hole_unblocks sub_joins_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.sub_joins
|
ALTER TABLE ONLY public.stealth_hole_unblocks
|
||||||
ADD CONSTRAINT sub_joins_pkey PRIMARY KEY (user_id, sub);
|
ADD CONSTRAINT sub_joins_pkey PRIMARY KEY (user_id, hole);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: sub_subscriptions sub_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
-- Name: hole_follows sub_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.sub_subscriptions
|
ALTER TABLE ONLY public.hole_follows
|
||||||
ADD CONSTRAINT sub_subscriptions_pkey PRIMARY KEY (user_id, sub);
|
ADD CONSTRAINT sub_subscriptions_pkey PRIMARY KEY (user_id, hole);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: subactions subactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
-- Name: hole_actions subactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.subactions
|
ALTER TABLE ONLY public.hole_actions
|
||||||
ADD CONSTRAINT subactions_pkey PRIMARY KEY (id);
|
ADD CONSTRAINT subactions_pkey PRIMARY KEY (id);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: subs subs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
-- Name: holes subs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.subs
|
ALTER TABLE ONLY public.holes
|
||||||
ADD CONSTRAINT subs_pkey PRIMARY KEY (name);
|
ADD CONSTRAINT subs_pkey PRIMARY KEY (name);
|
||||||
|
|
||||||
|
|
||||||
|
@ -1831,14 +1831,14 @@ CREATE INDEX fki_exile_exiler_fkey ON public.exiles USING btree (exiler_id);
|
||||||
-- Name: fki_exile_sub_fkey; Type: INDEX; Schema: public; Owner: -
|
-- Name: fki_exile_sub_fkey; Type: INDEX; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE INDEX fki_exile_sub_fkey ON public.exiles USING btree (sub);
|
CREATE INDEX fki_exile_sub_fkey ON public.exiles USING btree (hole);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: fki_mod_sub_fkey; Type: INDEX; Schema: public; Owner: -
|
-- Name: fki_mod_sub_fkey; Type: INDEX; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE INDEX fki_mod_sub_fkey ON public.mods USING btree (sub);
|
CREATE INDEX fki_mod_sub_fkey ON public.mods USING btree (hole);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -1859,7 +1859,7 @@ CREATE INDEX fki_post_approver_fkey ON public.posts USING btree (is_approved);
|
||||||
-- Name: fki_post_sub_fkey; Type: INDEX; Schema: public; Owner: -
|
-- Name: fki_post_sub_fkey; Type: INDEX; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE INDEX fki_post_sub_fkey ON public.posts USING btree (sub);
|
CREATE INDEX fki_post_sub_fkey ON public.posts USING btree (hole);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -1873,28 +1873,28 @@ CREATE INDEX fki_save_relationship_post_fkey ON public.save_relationship USING b
|
||||||
-- Name: fki_sub_blocks_sub_fkey; Type: INDEX; Schema: public; Owner: -
|
-- 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);
|
CREATE INDEX fki_sub_blocks_sub_fkey ON public.hole_blocks USING btree (hole);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: fki_sub_joins_sub_fkey; Type: INDEX; Schema: public; Owner: -
|
-- 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);
|
CREATE INDEX fki_sub_joins_sub_fkey ON public.stealth_hole_unblocks USING btree (hole);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: fki_sub_subscriptions_sub_fkey; Type: INDEX; Schema: public; Owner: -
|
-- 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);
|
CREATE INDEX fki_sub_subscriptions_sub_fkey ON public.hole_follows USING btree (hole);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: fki_subactions_user_fkey; Type: INDEX; Schema: public; Owner: -
|
-- Name: fki_subactions_user_fkey; Type: INDEX; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
CREATE INDEX fki_subactions_user_fkey ON public.subactions USING btree (target_user_id);
|
CREATE INDEX fki_subactions_user_fkey ON public.hole_actions USING btree (target_user_id);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -2559,7 +2559,7 @@ ALTER TABLE ONLY public.exiles
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.exiles
|
ALTER TABLE ONLY public.exiles
|
||||||
ADD CONSTRAINT exile_sub_fkey FOREIGN KEY (sub) REFERENCES public.subs(name);
|
ADD CONSTRAINT exile_sub_fkey FOREIGN KEY (hole) REFERENCES public.holes(name);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -2655,7 +2655,7 @@ ALTER TABLE ONLY public.media
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.mods
|
ALTER TABLE ONLY public.mods
|
||||||
ADD CONSTRAINT mod_sub_fkey FOREIGN KEY (sub) REFERENCES public.subs(name);
|
ADD CONSTRAINT mod_sub_fkey FOREIGN KEY (hole) REFERENCES public.holes(name);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -2803,18 +2803,18 @@ ALTER TABLE ONLY public.comments
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: sub_blocks sub_blocks_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
-- Name: hole_blocks sub_blocks_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.sub_blocks
|
ALTER TABLE ONLY public.hole_blocks
|
||||||
ADD CONSTRAINT sub_blocks_sub_fkey FOREIGN KEY (sub) REFERENCES public.subs(name) MATCH FULL;
|
ADD CONSTRAINT sub_blocks_sub_fkey FOREIGN KEY (hole) REFERENCES public.holes(name) MATCH FULL;
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: sub_blocks sub_blocks_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
-- Name: hole_blocks sub_blocks_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.sub_blocks
|
ALTER TABLE ONLY public.hole_blocks
|
||||||
ADD CONSTRAINT sub_blocks_user_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) MATCH FULL;
|
ADD CONSTRAINT sub_blocks_user_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) MATCH FULL;
|
||||||
|
|
||||||
|
|
||||||
|
@ -2823,70 +2823,70 @@ ALTER TABLE ONLY public.sub_blocks
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.posts
|
ALTER TABLE ONLY public.posts
|
||||||
ADD CONSTRAINT sub_fkey FOREIGN KEY (sub) REFERENCES public.subs(name);
|
ADD CONSTRAINT sub_fkey FOREIGN KEY (hole) REFERENCES public.holes(name);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: sub_joins sub_joins_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
-- Name: stealth_hole_unblocks sub_joins_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.sub_joins
|
ALTER TABLE ONLY public.stealth_hole_unblocks
|
||||||
ADD CONSTRAINT sub_joins_sub_fkey FOREIGN KEY (sub) REFERENCES public.subs(name) MATCH FULL;
|
ADD CONSTRAINT sub_joins_sub_fkey FOREIGN KEY (hole) REFERENCES public.holes(name) MATCH FULL;
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: sub_joins sub_joins_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
-- Name: stealth_hole_unblocks sub_joins_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.sub_joins
|
ALTER TABLE ONLY public.stealth_hole_unblocks
|
||||||
ADD CONSTRAINT sub_joins_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) MATCH FULL;
|
ADD CONSTRAINT sub_joins_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) MATCH FULL;
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: sub_subscriptions sub_subscriptions_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
-- Name: hole_follows sub_subscriptions_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.sub_subscriptions
|
ALTER TABLE ONLY public.hole_follows
|
||||||
ADD CONSTRAINT sub_subscriptions_sub_fkey FOREIGN KEY (sub) REFERENCES public.subs(name) MATCH FULL;
|
ADD CONSTRAINT sub_subscriptions_sub_fkey FOREIGN KEY (hole) REFERENCES public.holes(name) MATCH FULL;
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: sub_subscriptions sub_subscriptions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
-- Name: hole_follows sub_subscriptions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.sub_subscriptions
|
ALTER TABLE ONLY public.hole_follows
|
||||||
ADD CONSTRAINT sub_subscriptions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) MATCH FULL;
|
ADD CONSTRAINT sub_subscriptions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) MATCH FULL;
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: subactions subactions_comment_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
-- Name: hole_actions subactions_comment_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.subactions
|
ALTER TABLE ONLY public.hole_actions
|
||||||
ADD CONSTRAINT subactions_comment_fkey FOREIGN KEY (target_comment_id) REFERENCES public.comments(id);
|
ADD CONSTRAINT subactions_comment_fkey FOREIGN KEY (target_comment_id) REFERENCES public.comments(id);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: subactions subactions_post_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
-- Name: hole_actions subactions_post_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.subactions
|
ALTER TABLE ONLY public.hole_actions
|
||||||
ADD CONSTRAINT subactions_post_fkey FOREIGN KEY (target_post_id) REFERENCES public.posts(id);
|
ADD CONSTRAINT subactions_post_fkey FOREIGN KEY (target_post_id) REFERENCES public.posts(id);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: subactions subactions_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
-- Name: hole_actions subactions_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.subactions
|
ALTER TABLE ONLY public.hole_actions
|
||||||
ADD CONSTRAINT subactions_sub_fkey FOREIGN KEY (sub) REFERENCES public.subs(name);
|
ADD CONSTRAINT subactions_sub_fkey FOREIGN KEY (hole) REFERENCES public.holes(name);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: subactions subactions_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
-- Name: hole_actions subactions_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|
||||||
ALTER TABLE ONLY public.subactions
|
ALTER TABLE ONLY public.hole_actions
|
||||||
ADD CONSTRAINT subactions_user_fkey FOREIGN KEY (target_user_id) REFERENCES public.users(id);
|
ADD CONSTRAINT subactions_user_fkey FOREIGN KEY (target_user_id) REFERENCES public.users(id);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ INSERT INTO public.badge_defs VALUES (76, 'Low Roller', 'Bought 10 lootboxes', N
|
||||||
INSERT INTO public.badge_defs VALUES (11, 'Silver Recruiter', 'Recruited 10 friends 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 (303, 'LGBTQIA+ Drip', 'This user has sworn lifelong allegiance to the most marginalized community 🥰', 1696534759);
|
INSERT INTO public.badge_defs VALUES (303, 'LGBTQIA+ Drip', 'This user has sworn lifelong allegiance to the most marginalized community 🥰', 1696534759);
|
||||||
INSERT INTO public.badge_defs VALUES (194, 'Master Baiter 2021', 'The cunning mastermind behind the ruse which was voted best rDrama bait of 2021.', 1670627103);
|
INSERT INTO public.badge_defs VALUES (194, 'Master Baiter 2021', 'The cunning mastermind behind the ruse which was voted best rDrama bait of 2021.', 1670627103);
|
||||||
INSERT INTO public.badge_defs VALUES (197, 'Best Marsey 2021', 'The creator of the best Marsey emote of 2021, as voted by rDrama users.', 1670627291);
|
INSERT INTO public.badge_defs VALUES (197, 'Best Marsey 2021', 'The creator of the best Marsey emoji of 2021, as voted by rDrama users.', 1670627291);
|
||||||
INSERT INTO public.badge_defs VALUES (199, 'Dramatard of the Year 2021', 'Voted as the best rDrama user of 2021. Congratulations!', 1670627437);
|
INSERT INTO public.badge_defs VALUES (199, 'Dramatard of the Year 2021', 'Voted as the best rDrama user of 2021. Congratulations!', 1670627437);
|
||||||
INSERT INTO public.badge_defs VALUES (77, 'Middle Roller', 'Bought 50 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 (78, 'High Roller', 'Bought 150 lootboxes', NULL);
|
||||||
|
@ -117,6 +117,7 @@ INSERT INTO public.badge_defs VALUES (93, 'NFT Owner', 'Bought a marsey NFT', NU
|
||||||
INSERT INTO public.badge_defs VALUES (298, 'Gray Alien', 'This user probed /r/UFOs and left the next morning.', 1694717005);
|
INSERT INTO public.badge_defs VALUES (298, 'Gray Alien', 'This user probed /r/UFOs and left the next morning.', 1694717005);
|
||||||
INSERT INTO public.badge_defs VALUES (95, 'Bird Site Award', 'This user is limited to 140 characters', 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 (97, 'Pizzashill Award', 'This user has to make their posts and comments more than 280 characters', 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 (213, 'Best Marsey 2022', 'The creator of the best Marsey emoji of 2022, as voted by rDrama users.', 1670719193);
|
||||||
INSERT INTO public.badge_defs VALUES (99, 'Sidebar Artist', 'Contributed artwork featured on the sidebar', 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 (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 (101, 'Banner Artist', 'Contributed a banner image to the site', NULL);
|
||||||
|
@ -175,7 +176,6 @@ INSERT INTO public.badge_defs VALUES (230, 'Itty Bitty Clitty', 'This user submi
|
||||||
INSERT INTO public.badge_defs VALUES (96, 'Flairlock', 'This user''s flair has been locked by someone else', NULL);
|
INSERT INTO public.badge_defs VALUES (96, 'Flairlock', 'This user''s flair has been locked by someone else', NULL);
|
||||||
INSERT INTO public.badge_defs VALUES (159, 'It''s Over', 'Lost a 100,000 bet. It''s fucking over.', NULL);
|
INSERT INTO public.badge_defs VALUES (159, 'It''s Over', 'Lost a 100,000 bet. It''s fucking over.', NULL);
|
||||||
INSERT INTO public.badge_defs VALUES (212, 'Dramatard of the Year 2022', 'Voted as the best rDrama user of 2022. Congratulations!', 1670719153);
|
INSERT INTO public.badge_defs VALUES (212, 'Dramatard of the Year 2022', 'Voted as the best rDrama user of 2022. Congratulations!', 1670719153);
|
||||||
INSERT INTO public.badge_defs VALUES (213, 'Best Marsey 2022', 'The creator of the best Marsey emote of 2022, as voted by rDrama users.', 1670719193);
|
|
||||||
INSERT INTO public.badge_defs VALUES (90, 'Fish', 'This user used to be impossible to unfollow', NULL);
|
INSERT INTO public.badge_defs VALUES (90, 'Fish', 'This user used to be impossible to unfollow', NULL);
|
||||||
INSERT INTO public.badge_defs VALUES (98, 'Hieroglyphs Award', 'This user is limited to posting emojis', NULL);
|
INSERT INTO public.badge_defs VALUES (98, 'Hieroglyphs Award', 'This user is limited to posting emojis', NULL);
|
||||||
INSERT INTO public.badge_defs VALUES (216, 'Human Rights Abuse Profiteer', 'I hope those 6500 deaths were worth the coin.', 1671150403);
|
INSERT INTO public.badge_defs VALUES (216, 'Human Rights Abuse Profiteer', 'I hope those 6500 deaths were worth the coin.', 1671150403);
|
||||||
|
|
|
@ -226,6 +226,7 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
||||||
('capypearlclutch','Capy',2,'triggered scared hold ball admin janny rodent egypt shocked shook'),
|
('capypearlclutch','Capy',2,'triggered scared hold ball admin janny rodent egypt shocked shook'),
|
||||||
('capypharaoh','Capy',2,'aevann egypt alien king'),
|
('capypharaoh','Capy',2,'aevann egypt alien king'),
|
||||||
('capypunished','Capy',2,'capybara rodent aevann cute metal gear solid venom snake video game kojima mgs'),
|
('capypunished','Capy',2,'capybara rodent aevann cute metal gear solid venom snake video game kojima mgs'),
|
||||||
|
('capyreaper','Capy',2,'grim death die halloween scythe scary costume hood evil'),
|
||||||
('capyshy','Capy',2,'capy aevann blush flushed uwu anxious shy'),
|
('capyshy','Capy',2,'capy aevann blush flushed uwu anxious shy'),
|
||||||
('capysneedboat','Capy',2,'capy aevann'),
|
('capysneedboat','Capy',2,'capy aevann'),
|
||||||
('capysneedboat2','Capy',2,'marsey capy schizo schizocel rare tripping sneed boat love excited seethe schizomarsey'),
|
('capysneedboat2','Capy',2,'marsey capy schizo schizocel rare tripping sneed boat love excited seethe schizomarsey'),
|
||||||
|
@ -553,6 +554,8 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
||||||
('chudturbospergout1','Wojak',2,'tantrum'),
|
('chudturbospergout1','Wojak',2,'tantrum'),
|
||||||
('chudturbospergout2','Wojak',2,'tantrum'),
|
('chudturbospergout2','Wojak',2,'tantrum'),
|
||||||
('chunkykong','Donkey Kong',2,'donkeykong dk64'),
|
('chunkykong','Donkey Kong',2,'donkeykong dk64'),
|
||||||
|
('chutbat','Wojak',2,'chud bat flap halloween'),
|
||||||
|
('chutbatfast','Wojak',2,'chud bat flap halloween'),
|
||||||
('ciaglow','Misc',2,'glowie glownigger'),
|
('ciaglow','Misc',2,'glowie glownigger'),
|
||||||
('cirnopost','Misc',2,'touhou anime 3dtext'),
|
('cirnopost','Misc',2,'touhou anime 3dtext'),
|
||||||
('clap','Classic',2,'clap emoticon animated happy excited cheering'),
|
('clap','Classic',2,'clap emoticon animated happy excited cheering'),
|
||||||
|
@ -1109,6 +1112,7 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
||||||
('likeaboss','Rage',2,'cool boss'),
|
('likeaboss','Rage',2,'cool boss'),
|
||||||
('link','Classic',2,'link animated legend of zelda vidya nintendo'),
|
('link','Classic',2,'link animated legend of zelda vidya nintendo'),
|
||||||
('littlestchuddy','Wojak',2,'chud baby nazi swastika chudjak'),
|
('littlestchuddy','Wojak',2,'chud baby nazi swastika chudjak'),
|
||||||
|
('littlestchuddyjew','Wojak',2,'israeli jewish'),
|
||||||
('lizfongjones','Misc',2,'thwomp mario nintendo quadratic troon tranny transgender kiwi farms glasses asian blind'),
|
('lizfongjones','Misc',2,'thwomp mario nintendo quadratic troon tranny transgender kiwi farms glasses asian blind'),
|
||||||
('lmao','Misc',2,'lmao lmfao laughing my ass off dude bussy dudebussylmao drama rdrama shiny'),
|
('lmao','Misc',2,'lmao lmfao laughing my ass off dude bussy dudebussylmao drama rdrama shiny'),
|
||||||
('lol','Classic',2,'lol animated emoticon laugh funny'),
|
('lol','Classic',2,'lol animated emoticon laugh funny'),
|
||||||
|
@ -1500,6 +1504,7 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
||||||
('marseybowing','Marsey',2,'bowing karate respect kneel sensei senpai teacher student learn humble wise'),
|
('marseybowing','Marsey',2,'bowing karate respect kneel sensei senpai teacher student learn humble wise'),
|
||||||
('marseybowl','Marsey',2,'marijuana weed dude weed lmao ganja drugs reaction pot pipe'),
|
('marseybowl','Marsey',2,'marijuana weed dude weed lmao ganja drugs reaction pot pipe'),
|
||||||
('marseybowler','Marsey',2,'british bong english umbrella tea gentleman'),
|
('marseybowler','Marsey',2,'british bong english umbrella tea gentleman'),
|
||||||
|
('marseybox','Marsey',2,'atbox lowpoly 3d stroke broken'),
|
||||||
('marseybrainlet','Marsey',2,'idiot imbecile smoothbrain crushed head retard caved in head sped dumb stupid drooling moron'),
|
('marseybrainlet','Marsey',2,'idiot imbecile smoothbrain crushed head retard caved in head sped dumb stupid drooling moron'),
|
||||||
('marseybrainletclapping','Marsey',2,'idiot dumb stupid applause cheering moron animated retard'),
|
('marseybrainletclapping','Marsey',2,'idiot dumb stupid applause cheering moron animated retard'),
|
||||||
('marseybrap','Marsey',2,'brap sniff smell huff gas fart animated'),
|
('marseybrap','Marsey',2,'brap sniff smell huff gas fart animated'),
|
||||||
|
@ -1689,6 +1694,7 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
||||||
('marseychuddance','Marsey',2,'stomp celebrate excited transphobe homophobe trump maga racist white mayo animated dancing'),
|
('marseychuddance','Marsey',2,'stomp celebrate excited transphobe homophobe trump maga racist white mayo animated dancing'),
|
||||||
('marseychudegg','Marsey',2,'transgender hatching repressed'),
|
('marseychudegg','Marsey',2,'transgender hatching repressed'),
|
||||||
('marseychudgravedance','Marsey',2,'sneed happy excited rip f respect stomp tomb smug ni deadname'),
|
('marseychudgravedance','Marsey',2,'sneed happy excited rip f respect stomp tomb smug ni deadname'),
|
||||||
|
('marseychudheart','Marsey',2,'blood glasses love attack cardiac muscle'),
|
||||||
('marseychudhermione','Marsey',2,'wizard penny rowling potter magic hogwarts'),
|
('marseychudhermione','Marsey',2,'wizard penny rowling potter magic hogwarts'),
|
||||||
('marseychudindian','Marsey',2,'chud hindu india indian pajeet'),
|
('marseychudindian','Marsey',2,'chud hindu india indian pajeet'),
|
||||||
('marseychudjamming','Marsey',2,'music tunes headphones ipod'),
|
('marseychudjamming','Marsey',2,'music tunes headphones ipod'),
|
||||||
|
@ -3054,6 +3060,7 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
||||||
('marseyneckbeard','Marsey',2,'mlady bodypillow dakimakura anime otaku fedora weebshit body pillow mra weeb'),
|
('marseyneckbeard','Marsey',2,'mlady bodypillow dakimakura anime otaku fedora weebshit body pillow mra weeb'),
|
||||||
('marseynecklace','Marsey',2,'tire fire africa'),
|
('marseynecklace','Marsey',2,'tire fire africa'),
|
||||||
('marseynecromancer','Marsey',2,'halloween horror scary undead necromancy ghost zombie skeletons magician warlock'),
|
('marseynecromancer','Marsey',2,'halloween horror scary undead necromancy ghost zombie skeletons magician warlock'),
|
||||||
|
('marseynecromorph','Marsey',2,'dead undead space zombie scifi videogame homoween'),
|
||||||
('marseyneet','Marsey',2,'cozy comfy wagie'),
|
('marseyneet','Marsey',2,'cozy comfy wagie'),
|
||||||
('marseynegative','Marsey',2,'negative blue black wave'),
|
('marseynegative','Marsey',2,'negative blue black wave'),
|
||||||
('marseyneko','Marsey',2,'autism autistic cute neko nekobit fedi fediverse hat programmer codecel'),
|
('marseyneko','Marsey',2,'autism autistic cute neko nekobit fedi fediverse hat programmer codecel'),
|
||||||
|
@ -3691,6 +3698,7 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
||||||
('marseyslurpfast','Marsey',2,'lick tongue saliva yum creep'),
|
('marseyslurpfast','Marsey',2,'lick tongue saliva yum creep'),
|
||||||
('marseyslutshaming','Marsey',2,'whore bully'),
|
('marseyslutshaming','Marsey',2,'whore bully'),
|
||||||
('marseysmirk','Marsey',2,'reaction snicker trolling lol'),
|
('marseysmirk','Marsey',2,'reaction snicker trolling lol'),
|
||||||
|
('marseysmirk2','Marsey',2,'smug ohyou surejan troublemaker rapscallion'),
|
||||||
('marseysmokealarmbeep','Marsey',2,'smoke fire alarm detector beep chirp ceiling battery black bipoc'),
|
('marseysmokealarmbeep','Marsey',2,'smoke fire alarm detector beep chirp ceiling battery black bipoc'),
|
||||||
('marseysmoking','Marsey',2,'cigar ciggie'),
|
('marseysmoking','Marsey',2,'cigar ciggie'),
|
||||||
('marseysmooch','Misc',2,'kiss love zombie wolf wet sloppy illicit'),
|
('marseysmooch','Misc',2,'kiss love zombie wolf wet sloppy illicit'),
|
||||||
|
@ -4186,6 +4194,7 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
||||||
('marseywords','Marsey',2,'longpost too long tldr reaction wordswordswords yawn'),
|
('marseywords','Marsey',2,'longpost too long tldr reaction wordswordswords yawn'),
|
||||||
('marseywords2','Marsey',2,'longpost tldr essaypost wordswordswords pizzashill'),
|
('marseywords2','Marsey',2,'longpost tldr essaypost wordswordswords pizzashill'),
|
||||||
('marseyworldcup','Marsey',2,'world cup soccer football winner sports champion'),
|
('marseyworldcup','Marsey',2,'world cup soccer football winner sports champion'),
|
||||||
|
('marseyworldisavampire','Marsey',2,'smashing pumpkins bullet butterfly wings world vampire earth'),
|
||||||
('marseyworldssmallestviolin','Marsey',2,'violin instrument strings care idc apathy apathetic krabs spongebob sad'),
|
('marseyworldssmallestviolin','Marsey',2,'violin instrument strings care idc apathy apathetic krabs spongebob sad'),
|
||||||
('marseyworried','Marsey',2,'monkaw anxiety sweat panic scared sweaty sweating anxious nervous stressed'),
|
('marseyworried','Marsey',2,'monkaw anxiety sweat panic scared sweaty sweating anxious nervous stressed'),
|
||||||
('marseywould','Marsey',2,'marsey would willing want cat microphone table animated'),
|
('marseywould','Marsey',2,'marsey would willing want cat microphone table animated'),
|
||||||
|
|
Loading…
Reference in New Issue