sneed
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 99 KiB |
After Width: | Height: | Size: 290 KiB |
After Width: | Height: | Size: 278 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 7.7 KiB |
After Width: | Height: | Size: 36 KiB |
122
schema.sql
|
@ -472,10 +472,10 @@ CREATE TABLE public.comment_save_relationship (
|
|||
|
||||
|
||||
--
|
||||
-- Name: commentflags; Type: TABLE; Schema: public; Owner: -
|
||||
-- Name: commentreports; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE TABLE public.commentflags (
|
||||
CREATE TABLE public.commentreports (
|
||||
user_id integer NOT NULL,
|
||||
comment_id integer NOT NULL,
|
||||
reason character varying(350),
|
||||
|
@ -588,18 +588,6 @@ CREATE TABLE public.exiles (
|
|||
);
|
||||
|
||||
|
||||
--
|
||||
-- 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: -
|
||||
--
|
||||
|
@ -943,6 +931,18 @@ CREATE TABLE public.push_subscriptions (
|
|||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: reports; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE TABLE public.reports (
|
||||
user_id integer NOT NULL,
|
||||
post_id integer NOT NULL,
|
||||
reason character varying(350),
|
||||
created_utc integer NOT NULL
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: save_relationship; Type: TABLE; Schema: public; Owner: -
|
||||
--
|
||||
|
@ -1290,11 +1290,11 @@ ALTER TABLE ONLY public.comment_save_relationship
|
|||
|
||||
|
||||
--
|
||||
-- Name: commentflags commentflags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
-- Name: commentreports commentreports_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.commentflags
|
||||
ADD CONSTRAINT commentflags_pkey PRIMARY KEY (comment_id, user_id);
|
||||
ALTER TABLE ONLY public.commentreports
|
||||
ADD CONSTRAINT commentreports_pkey PRIMARY KEY (comment_id, user_id);
|
||||
|
||||
|
||||
--
|
||||
|
@ -1329,14 +1329,6 @@ 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: -
|
||||
--
|
||||
|
@ -1505,6 +1497,14 @@ ALTER TABLE ONLY public.push_subscriptions
|
|||
ADD CONSTRAINT push_subscriptions_pkey PRIMARY KEY (user_id, subscription_json);
|
||||
|
||||
|
||||
--
|
||||
-- Name: reports reports_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.reports
|
||||
ADD CONSTRAINT reports_pkey PRIMARY KEY (post_id, user_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: save_relationship save_relationship_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
@ -1705,13 +1705,6 @@ CREATE INDEX badges_badge_id_idx ON public.badges USING btree (badge_id);
|
|||
CREATE INDEX block_target_idx ON public.userblocks USING btree (target_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: cflag_user_idx; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX cflag_user_idx ON public.commentflags USING btree (user_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: comment_is_banned_idx; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
@ -1789,6 +1782,13 @@ CREATE INDEX commentvotes_comments_type_index ON public.commentvotes USING btree
|
|||
CREATE INDEX commentvotes_user_id_vote_type_idx ON public.commentvotes USING btree (user_id, vote_type) INCLUDE (comment_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: creport_user_idx; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX creport_user_idx ON public.commentreports USING btree (user_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: cvote_user_index; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
@ -1950,13 +1950,6 @@ CREATE INDEX fki_view_viewer_fkey ON public.viewers USING btree (viewer_id);
|
|||
CREATE INDEX fki_wall_user_id_fkey ON public.comments USING btree (wall_user_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: -
|
||||
--
|
||||
|
@ -2153,6 +2146,13 @@ CREATE INDEX post_new_sort_idx ON public.posts USING btree (is_banned, deleted_u
|
|||
CREATE INDEX post_over_18_idx ON public.posts USING btree (over_18);
|
||||
|
||||
|
||||
--
|
||||
-- Name: report_user_idx; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
CREATE INDEX report_user_idx ON public.reports USING btree (user_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: subimssion_binary_group_idx; Type: INDEX; Schema: public; Owner: -
|
||||
--
|
||||
|
@ -2509,19 +2509,19 @@ ALTER TABLE ONLY public.comments
|
|||
|
||||
|
||||
--
|
||||
-- Name: commentflags commentflags_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
-- Name: commentreports commentreports_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);
|
||||
ALTER TABLE ONLY public.commentreports
|
||||
ADD CONSTRAINT commentreports_comment_id_fkey FOREIGN KEY (comment_id) REFERENCES public.comments(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: commentflags commentflags_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
-- Name: commentreports commentreports_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);
|
||||
ALTER TABLE ONLY public.commentreports
|
||||
ADD CONSTRAINT commentreports_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
|
||||
|
||||
|
||||
--
|
||||
|
@ -2580,22 +2580,6 @@ ALTER TABLE ONLY public.lotteries
|
|||
ADD CONSTRAINT fk_winner FOREIGN KEY (winner_id) REFERENCES public.users(id);
|
||||
|
||||
|
||||
--
|
||||
-- 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.posts(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: -
|
||||
--
|
||||
|
@ -2780,6 +2764,22 @@ ALTER TABLE ONLY public.push_subscriptions
|
|||
ADD CONSTRAINT push_subscriptions_user_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) MATCH FULL;
|
||||
|
||||
|
||||
--
|
||||
-- Name: reports reports_post_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.reports
|
||||
ADD CONSTRAINT reports_post_id_fkey FOREIGN KEY (post_id) REFERENCES public.posts(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: reports reports_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.reports
|
||||
ADD CONSTRAINT reports_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: save_relationship save_relationship_post_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
|
|
@ -1757,6 +1757,7 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
|||
('cool','Classic',2,'sunglasses shades'),
|
||||
('coom','Misc',2,'jack off masturbate wank'),
|
||||
('coomer','Wojak',2,'coom degenerate'),
|
||||
('coomerface','Misc',2,'coomer coomers coom cooming porn pornography goon gooners goons gooning basicallyadoctor basically a doctor sex sexy sexual bald balding baldlet head'),
|
||||
('coomjak','Wojak',2,'coom cum brainless dumb drool cuck degen'),
|
||||
('coppunch','Misc',2,'police hit strike'),
|
||||
('copspray','Misc',2,'cop police pepper spray abuse pig anger rage seethe'),
|
||||
|
@ -2078,6 +2079,10 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
|||
('hammer','Classic',2,'smash kill'),
|
||||
('hammerfight','Classic',2,'hitting fighting'),
|
||||
('hammertime','Misc',2,'mchammer dance'),
|
||||
('hamtarojoy','Misc',2,'hamster jumping stars happy rodent'),
|
||||
('hamtaroramen','Misc',2,'hamster noodles soup eating joy happy'),
|
||||
('hamtaroseeds','Misc',2,'singing song almonds nuts hearts love fat food obese'),
|
||||
('hamtarotreadmill','Misc',2,'exercise food fat obese fitness cardio hamster running'),
|
||||
('handshake','Classic',2,'handshake animated emoticon deal agree'),
|
||||
('handsomechud','Wojak',2,'chud stud chad gigachad handsome volcel stoic'),
|
||||
('handzoff','Misc',2,'handzoff handsoff hands off anti masturbatory cream coom goon'),
|
||||
|
@ -3042,6 +3047,7 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
|||
('marseyelliotrodger','Marsey',2,'er rogers azn asian saint incel hapa shooter killer little king gun shooting'),
|
||||
('marseyelliotrodger2','Marsey',2,'saint er rodgers rogers shooter killer incel hapa little king azn asian supremegentleman supreme gentleman'),
|
||||
('marseyelliotrodger3','Marsey',2,'saint er rodgers rogers shooter killer incel hapa little king azn asian supremegentleman supreme gentleman'),
|
||||
('marseyelmo','Misc',2,'elmo sesame street puppet fluffy cute'),
|
||||
('marseyelonmusk','Marsey',2,'elon musk rocket spacex tesla'),
|
||||
('marseyelonpaypig','Marsey',2,'musk tesla twitter cope seethe dilate cry soy wojak south africa paypig blue check'),
|
||||
('marseyembarassingpurchase','Marsey',2,'unabomber coomer gift box toy marsey'),
|
||||
|
@ -4273,6 +4279,7 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
|||
('marseyrise','Marsey',2,'rise elmo fire'),
|
||||
('marseyrobber','Marsey',2,'mask balaclava gun shooter shooting thief criminal nigger jogger ahmaud arbery george floyd'),
|
||||
('marseyrobot','Marsey',2,'npc snappy sentient ai glow tech computer'),
|
||||
('marseyrock','Marsey',2,'rock stone boulder pareidolia igneous metamorphic sedimentary edible'),
|
||||
('marseyroguspanish','Marsey',2,'rogu spanish marsey american dad'),
|
||||
('marseyroman','Marsey',2,'roman manly roblox smug clueless smirk'),
|
||||
('marseyronpa','Marsey',2,'danganronpa despair weeb'),
|
||||
|
@ -4611,6 +4618,7 @@ INSERT INTO public.emojis (name, kind, author_id, tags) VALUES
|
|||
('marseystroke','Marsey',2,'derp retard reaction stupid drooling'),
|
||||
('marseystrong','Marsey',2,'flexing buff muscles'),
|
||||
('marseystuffed','Marsey',2,'fur meme statuesque indifferent figurine statue stuffed art'),
|
||||
('marseysubmarine','Marsey',2,'submarine submersible titan titanic oceangate drown billionaire missing'),
|
||||
('marseysuffragette','Marsey',2,'19a foid feminist 19th terrible feminism regret woman women mistake'),
|
||||
('marseysuicide','Marsey',2,'kys killyourself pistol contemplatesuicide depressed gun despair doom'),
|
||||
('marseysuicidesquidward','Marsey',2,'creepypasta squidward suicide halloween scary zombie horror'),
|
||||
|
|