updated_at timestamp without time zone NOT NULL,
created_at timestamp without time zone NOT NULL,
status public.note_status_enum NOT NULL,
- closed_at timestamp without time zone
+ closed_at timestamp without time zone,
+ description text DEFAULT ''::text NOT NULL,
+ user_id bigint,
+ user_ip inet
);
ADD CONSTRAINT note_comments_note_id_fkey FOREIGN KEY (note_id) REFERENCES public.notes(id);
+--
+-- Name: notes notes_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
+--
+
+ALTER TABLE ONLY public.notes
+ ADD CONSTRAINT notes_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) NOT VALID;
+
+
--
-- Name: redactions redactions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
('23'),
('22'),
('21'),
+('20250104140952'),
('20241023004427'),
('20241022141247'),
('20240913171951'),