forked from MarseyWorld/MarseyWorld
sneed
parent
9f9687e9b5
commit
6c04ea7a84
18
schema.sql
18
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: -
|
||||
--
|
||||
|
|
Loading…
Reference in New Issue