master
SneedBot 2024-03-11 00:00:15 +00:00
parent 89f9c1d7a8
commit fea3790303
1 changed files with 9 additions and 9 deletions

View File

@ -444,7 +444,6 @@ ALTER SEQUENCE public.chat_messages_id_seq OWNED BY public.chat_messages.id;
CREATE TABLE public.chat_notifications (
user_id integer NOT NULL,
chat_message_id integer NOT NULL,
chat_id integer NOT NULL,
created_utc integer NOT NULL
);
@ -1541,6 +1540,14 @@ ALTER TABLE ONLY public.chat_messages
ADD CONSTRAINT chat_messages_pkey PRIMARY KEY (id);
--
-- Name: chat_notifications chat_notifications_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.chat_notifications
ADD CONSTRAINT chat_notifications_pkey PRIMARY KEY (user_id, chat_id);
--
-- Name: chats chats_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@ -2890,14 +2897,6 @@ ALTER TABLE ONLY public.chat_notifications
ADD CONSTRAINT chat_notifications_chat_fkey FOREIGN KEY (chat_id) REFERENCES public.chats(id);
--
-- Name: chat_notifications chat_notifications_message_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.chat_notifications
ADD CONSTRAINT chat_notifications_message_fkey FOREIGN KEY (chat_message_id) REFERENCES public.chat_messages(id);
--
-- Name: chat_notifications chat_notifications_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@ -3549,3 +3548,4 @@ ALTER TABLE ONLY public.comments
--
-- PostgreSQL database dump complete
--