master
Aevann1 2022-06-09 20:27:34 +00:00
parent f9ea80c124
commit 874082c16d
1 changed files with 41 additions and 0 deletions

View File

@ -515,6 +515,16 @@ CREATE TABLE public.sub_blocks (
);
--
-- Name: sub_subscriptions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.sub_subscriptions (
user_id integer NOT NULL,
sub character varying(20) NOT NULL
);
--
-- Name: submissions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
@ -973,6 +983,14 @@ ALTER TABLE ONLY public.sub_blocks
ADD CONSTRAINT sub_blocks_pkey PRIMARY KEY (user_id, sub);
--
-- 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);
--
-- Name: submissions submissions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@ -1237,6 +1255,13 @@ CREATE INDEX fki_save_relationship_submission_fkey ON public.save_relationship U
CREATE INDEX fki_sub_blocks_sub_fkey ON public.sub_blocks USING btree (sub);
--
-- 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);
--
-- Name: fki_submissions_approver_fkey; Type: INDEX; Schema: public; Owner: -
--
@ -1833,6 +1858,22 @@ ALTER TABLE ONLY public.submissions
ADD CONSTRAINT sub_fkey FOREIGN KEY (sub) REFERENCES public.subs(name);
--
-- 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;
--
-- Name: submissions submissions_approver_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--