master
Aevann1 2022-02-14 01:00:01 +00:00
parent 72f38947e0
commit d0ec7358a3
1 changed files with 48 additions and 0 deletions

View File

@ -598,6 +598,16 @@ CREATE SEQUENCE public.save_relationship_id_seq
ALTER SEQUENCE public.save_relationship_id_seq OWNED BY public.save_relationship.id;
--
-- Name: sub_blocks; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.sub_blocks (
user_id integer NOT NULL,
sub character varying(20) NOT NULL
);
--
-- Name: submissions; Type: TABLE; Schema: public; Owner: -
--
@ -1360,6 +1370,14 @@ ALTER TABLE ONLY public.save_relationship
ADD CONSTRAINT save_relationship_pkey PRIMARY KEY (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);
--
-- Name: submissions submissions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@ -1640,6 +1658,20 @@ CREATE INDEX fki_mod_sub_fkey ON public.mods USING btree (sub);
CREATE INDEX fki_modactions_user_fkey ON public.modactions USING btree (target_user_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);
--
-- Name: fki_sub_blocks_user_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_sub_blocks_user_fkey ON public.sub_blocks USING btree (user_id);
--
-- Name: fki_submissions_approver_fkey; Type: INDEX; Schema: public; Owner: -
--
@ -2196,6 +2228,22 @@ ALTER TABLE ONLY public.client_auths
ADD CONSTRAINT oauth_client_fkey FOREIGN KEY (oauth_client) REFERENCES public.oauth_apps(id);
--
-- 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: -
--