remotes/1693045480750635534/spooky-22
Aevann1 2022-02-13 02:00:02 +00:00
parent 170177b64d
commit c24c60171c
1 changed files with 46 additions and 1 deletions

View File

@ -538,7 +538,7 @@ ALTER SEQUENCE public.notifications_id_seq OWNED BY public.notifications.id;
CREATE TABLE public.oauth_apps (
id integer NOT NULL,
client_id character(64) NOT NULL,
client_id character(64),
app_name character varying(50) NOT NULL,
redirect_uri character varying(4096) NOT NULL,
author_id integer NOT NULL,
@ -1627,6 +1627,27 @@ CREATE INDEX discord_id_idx ON public.users USING btree (discord_id);
CREATE INDEX domains_domain_trgm_idx ON public.banneddomains USING gin (domain public.gin_trgm_ops);
--
-- Name: fki_comment_parent_comment_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_comment_parent_comment_fkey ON public.comments USING btree (parent_comment_id);
--
-- Name: fki_comment_parent_submission_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_comment_parent_submission_fkey ON public.comments USING btree (parent_submission);
--
-- Name: fki_comment_sentto_fkey; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX fki_comment_sentto_fkey ON public.comments USING btree (sentto);
--
-- Name: fki_comments_author_id_fkey; Type: INDEX; Schema: public; Owner: -
--
@ -2000,6 +2021,30 @@ ALTER TABLE ONLY public.client_auths
ADD CONSTRAINT client_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
--
-- Name: comments comment_parent_comment_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.comments
ADD CONSTRAINT comment_parent_comment_fkey FOREIGN KEY (parent_comment_id) REFERENCES public.comments(id);
--
-- Name: comments comment_parent_submission_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.comments
ADD CONSTRAINT comment_parent_submission_fkey FOREIGN KEY (parent_submission) REFERENCES public.submissions(id);
--
-- Name: comments comment_sentto_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.comments
ADD CONSTRAINT comment_sentto_fkey FOREIGN KEY (sentto) REFERENCES public.users(id);
--
-- Name: commentflags commentflags_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--