master
Aevann1 2022-02-22 13:00:01 +00:00
parent 9f9687e9b5
commit 6c04ea7a84
1 changed files with 17 additions and 1 deletions

View File

@ -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: -
--