master
SneedBot 2022-12-02 22:30:56 +00:00
parent 6248042e46
commit e32f3d70bc
1 changed files with 27 additions and 0 deletions

View File

@ -725,6 +725,17 @@ CREATE TABLE public.pgbench_tellers (
WITH (fillfactor='100');
--
-- Name: push_subscriptions; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.push_subscriptions (
user_id integer NOT NULL,
subscription_json character varying(500) NOT NULL,
created_utc integer NOT NULL
);
--
-- Name: save_relationship; Type: TABLE; Schema: public; Owner: -
--
@ -1411,6 +1422,14 @@ ALTER TABLE ONLY public.pgbench_tellers
ADD CONSTRAINT pgbench_tellers_pkey PRIMARY KEY (tid);
--
-- Name: push_subscriptions push_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.push_subscriptions
ADD CONSTRAINT push_subscriptions_pkey PRIMARY KEY (user_id, subscription_json);
--
-- Name: save_relationship save_relationship_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@ -2452,6 +2471,14 @@ ALTER TABLE ONLY public.submission_options
ADD CONSTRAINT option_submission_fkey FOREIGN KEY (submission_id) REFERENCES public.submissions(id) MATCH FULL;
--
-- Name: push_subscriptions push_subscriptions_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.push_subscriptions
ADD CONSTRAINT push_subscriptions_user_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) MATCH FULL;
--
-- Name: save_relationship save_relationship_submission_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--