remotes/1693045480750635534/spooky-22
Aevann1 2022-02-16 03:00:01 +00:00
parent b46978d537
commit 33be852935
1 changed files with 48 additions and 8 deletions

View File

@ -265,6 +265,16 @@ CREATE TABLE public.commentvotes (
);
--
-- Name: exiles; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.exiles (
user_id integer NOT NULL,
sub character varying(20) NOT NULL
);
--
-- Name: flags; Type: TABLE; Schema: public; Owner: -
--
@ -802,6 +812,14 @@ 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: -
--
@ -874,14 +892,6 @@ ALTER TABLE ONLY public.users
ADD CONSTRAINT one_discord_account UNIQUE (discord_id);
--
-- Name: mods one_mod; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.mods
ADD CONSTRAINT one_mod UNIQUE (user_id, sub);
--
-- Name: users one_profile_url; Type: CONSTRAINT; Schema: public; Owner: -
--
@ -1170,6 +1180,20 @@ CREATE INDEX fki_comment_save_relationship_user_fkey ON public.comment_save_rela
CREATE INDEX fki_comment_sentto_fkey ON public.comments USING btree (sentto);
--
-- Name: fki_exile_sub_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_exile_sub_fkey ON public.exiles USING btree (sub);
--
-- Name: fki_exile_user_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_exile_user_fkey ON public.exiles USING btree (user_id);
--
-- Name: fki_mod_sub_fkey; Type: INDEX; Schema: public; Owner: -
--
@ -1688,6 +1712,22 @@ ALTER TABLE ONLY public.commentvotes
ADD CONSTRAINT commentvote_user_fkey FOREIGN KEY (user_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);
--
-- Name: flags flags_post_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--