X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dbb462ca0ff432c94c00911340ab4c7619504844..08292292f09723806e4ca61b93106020e9c5a354:/db/structure.sql diff --git a/db/structure.sql b/db/structure.sql index 35ef5e2b3..04b0dc17f 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -1073,7 +1073,10 @@ CREATE TABLE public.notes ( 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 ); @@ -3210,6 +3213,14 @@ ALTER TABLE ONLY public.note_comments 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); + + -- -- Name: redactions redactions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- @@ -3397,6 +3408,9 @@ INSERT INTO "schema_migrations" (version) VALUES ('23'), ('22'), ('21'), +('20250105154621'), +('20250104140952'), +('20241023004427'), ('20241022141247'), ('20240913171951'), ('20240912181413'),