From 6c04ea7a84dd2f4414e3a554d7206545b9d03310 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 22 Feb 2022 13:00:01 +0000 Subject: [PATCH] sneed --- schema.sql | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/schema.sql b/schema.sql index 0d9c8784e..e5ed306e1 100644 --- a/schema.sql +++ b/schema.sql @@ -271,7 +271,8 @@ CREATE TABLE public.commentvotes ( CREATE TABLE public.exiles ( user_id integer NOT NULL, - sub character varying(20) NOT NULL + sub character varying(20) NOT NULL, + exiler_id integer NOT NULL ); @@ -1138,6 +1139,13 @@ CREATE INDEX fki_comment_save_relationship_comment_fkey ON public.comment_save_r CREATE INDEX fki_comment_sentto_fkey ON public.comments USING btree (sentto); +-- +-- Name: fki_exile_exiler_fkey; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX fki_exile_exiler_fkey ON public.exiles USING btree (exiler_id); + + -- -- Name: fki_exile_sub_fkey; Type: INDEX; Schema: public; Owner: - -- @@ -1601,6 +1609,14 @@ ALTER TABLE ONLY public.commentvotes ADD CONSTRAINT commentvote_user_fkey FOREIGN KEY (user_id) REFERENCES public.users(id); +-- +-- Name: exiles exile_exiler_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.exiles + ADD CONSTRAINT exile_exiler_fkey FOREIGN KEY (exiler_id) REFERENCES public.users(id); + + -- -- Name: exiles exile_sub_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - --