]> git.openstreetmap.org Git - rails.git/blob - db/structure.sql
Add importer role that can be associated with higher rate limits
[rails.git] / db / structure.sql
1 SET statement_timeout = 0;
2 SET lock_timeout = 0;
3 SET idle_in_transaction_session_timeout = 0;
4 SET client_encoding = 'UTF8';
5 SET standard_conforming_strings = on;
6 SELECT pg_catalog.set_config('search_path', '', false);
7 SET check_function_bodies = false;
8 SET xmloption = content;
9 SET client_min_messages = warning;
10 SET row_security = off;
11
12 --
13 -- Name: btree_gist; Type: EXTENSION; Schema: -; Owner: -
14 --
15
16 CREATE EXTENSION IF NOT EXISTS btree_gist WITH SCHEMA public;
17
18
19 --
20 -- Name: format_enum; Type: TYPE; Schema: public; Owner: -
21 --
22
23 CREATE TYPE public.format_enum AS ENUM (
24     'html',
25     'markdown',
26     'text'
27 );
28
29
30 --
31 -- Name: gpx_visibility_enum; Type: TYPE; Schema: public; Owner: -
32 --
33
34 CREATE TYPE public.gpx_visibility_enum AS ENUM (
35     'private',
36     'public',
37     'trackable',
38     'identifiable'
39 );
40
41
42 --
43 -- Name: issue_status_enum; Type: TYPE; Schema: public; Owner: -
44 --
45
46 CREATE TYPE public.issue_status_enum AS ENUM (
47     'open',
48     'ignored',
49     'resolved'
50 );
51
52
53 --
54 -- Name: note_event_enum; Type: TYPE; Schema: public; Owner: -
55 --
56
57 CREATE TYPE public.note_event_enum AS ENUM (
58     'opened',
59     'closed',
60     'reopened',
61     'commented',
62     'hidden'
63 );
64
65
66 --
67 -- Name: note_status_enum; Type: TYPE; Schema: public; Owner: -
68 --
69
70 CREATE TYPE public.note_status_enum AS ENUM (
71     'open',
72     'closed',
73     'hidden'
74 );
75
76
77 --
78 -- Name: nwr_enum; Type: TYPE; Schema: public; Owner: -
79 --
80
81 CREATE TYPE public.nwr_enum AS ENUM (
82     'Node',
83     'Way',
84     'Relation'
85 );
86
87
88 --
89 -- Name: user_role_enum; Type: TYPE; Schema: public; Owner: -
90 --
91
92 CREATE TYPE public.user_role_enum AS ENUM (
93     'administrator',
94     'moderator',
95     'importer'
96 );
97
98
99 --
100 -- Name: user_status_enum; Type: TYPE; Schema: public; Owner: -
101 --
102
103 CREATE TYPE public.user_status_enum AS ENUM (
104     'pending',
105     'active',
106     'confirmed',
107     'suspended',
108     'deleted'
109 );
110
111 SET default_tablespace = '';
112
113 SET default_table_access_method = heap;
114
115 --
116 -- Name: acls; Type: TABLE; Schema: public; Owner: -
117 --
118
119 CREATE TABLE public.acls (
120     id bigint NOT NULL,
121     address inet,
122     k character varying NOT NULL,
123     v character varying,
124     domain character varying,
125     mx character varying
126 );
127
128
129 --
130 -- Name: acls_id_seq; Type: SEQUENCE; Schema: public; Owner: -
131 --
132
133 CREATE SEQUENCE public.acls_id_seq
134     START WITH 1
135     INCREMENT BY 1
136     NO MINVALUE
137     NO MAXVALUE
138     CACHE 1;
139
140
141 --
142 -- Name: acls_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
143 --
144
145 ALTER SEQUENCE public.acls_id_seq OWNED BY public.acls.id;
146
147
148 --
149 -- Name: active_storage_attachments; Type: TABLE; Schema: public; Owner: -
150 --
151
152 CREATE TABLE public.active_storage_attachments (
153     id bigint NOT NULL,
154     name character varying NOT NULL,
155     record_type character varying NOT NULL,
156     record_id bigint NOT NULL,
157     blob_id bigint NOT NULL,
158     created_at timestamp without time zone NOT NULL
159 );
160
161
162 --
163 -- Name: active_storage_attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
164 --
165
166 CREATE SEQUENCE public.active_storage_attachments_id_seq
167     START WITH 1
168     INCREMENT BY 1
169     NO MINVALUE
170     NO MAXVALUE
171     CACHE 1;
172
173
174 --
175 -- Name: active_storage_attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
176 --
177
178 ALTER SEQUENCE public.active_storage_attachments_id_seq OWNED BY public.active_storage_attachments.id;
179
180
181 --
182 -- Name: active_storage_blobs; Type: TABLE; Schema: public; Owner: -
183 --
184
185 CREATE TABLE public.active_storage_blobs (
186     id bigint NOT NULL,
187     key character varying NOT NULL,
188     filename character varying NOT NULL,
189     content_type character varying,
190     metadata text,
191     byte_size bigint NOT NULL,
192     checksum character varying,
193     created_at timestamp without time zone NOT NULL,
194     service_name character varying NOT NULL
195 );
196
197
198 --
199 -- Name: active_storage_blobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
200 --
201
202 CREATE SEQUENCE public.active_storage_blobs_id_seq
203     START WITH 1
204     INCREMENT BY 1
205     NO MINVALUE
206     NO MAXVALUE
207     CACHE 1;
208
209
210 --
211 -- Name: active_storage_blobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
212 --
213
214 ALTER SEQUENCE public.active_storage_blobs_id_seq OWNED BY public.active_storage_blobs.id;
215
216
217 --
218 -- Name: active_storage_variant_records; Type: TABLE; Schema: public; Owner: -
219 --
220
221 CREATE TABLE public.active_storage_variant_records (
222     id bigint NOT NULL,
223     blob_id bigint NOT NULL,
224     variation_digest character varying NOT NULL
225 );
226
227
228 --
229 -- Name: active_storage_variant_records_id_seq; Type: SEQUENCE; Schema: public; Owner: -
230 --
231
232 CREATE SEQUENCE public.active_storage_variant_records_id_seq
233     START WITH 1
234     INCREMENT BY 1
235     NO MINVALUE
236     NO MAXVALUE
237     CACHE 1;
238
239
240 --
241 -- Name: active_storage_variant_records_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
242 --
243
244 ALTER SEQUENCE public.active_storage_variant_records_id_seq OWNED BY public.active_storage_variant_records.id;
245
246
247 --
248 -- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: -
249 --
250
251 CREATE TABLE public.ar_internal_metadata (
252     key character varying NOT NULL,
253     value character varying,
254     created_at timestamp(6) without time zone NOT NULL,
255     updated_at timestamp(6) without time zone NOT NULL
256 );
257
258
259 --
260 -- Name: changeset_comments; Type: TABLE; Schema: public; Owner: -
261 --
262
263 CREATE TABLE public.changeset_comments (
264     id integer NOT NULL,
265     changeset_id bigint NOT NULL,
266     author_id bigint NOT NULL,
267     body text NOT NULL,
268     created_at timestamp without time zone NOT NULL,
269     visible boolean NOT NULL
270 );
271
272
273 --
274 -- Name: changeset_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
275 --
276
277 CREATE SEQUENCE public.changeset_comments_id_seq
278     AS integer
279     START WITH 1
280     INCREMENT BY 1
281     NO MINVALUE
282     NO MAXVALUE
283     CACHE 1;
284
285
286 --
287 -- Name: changeset_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
288 --
289
290 ALTER SEQUENCE public.changeset_comments_id_seq OWNED BY public.changeset_comments.id;
291
292
293 --
294 -- Name: changeset_tags; Type: TABLE; Schema: public; Owner: -
295 --
296
297 CREATE TABLE public.changeset_tags (
298     changeset_id bigint NOT NULL,
299     k character varying DEFAULT ''::character varying NOT NULL,
300     v character varying DEFAULT ''::character varying NOT NULL
301 );
302
303
304 --
305 -- Name: changesets; Type: TABLE; Schema: public; Owner: -
306 --
307
308 CREATE TABLE public.changesets (
309     id bigint NOT NULL,
310     user_id bigint NOT NULL,
311     created_at timestamp without time zone NOT NULL,
312     min_lat integer,
313     max_lat integer,
314     min_lon integer,
315     max_lon integer,
316     closed_at timestamp without time zone NOT NULL,
317     num_changes integer DEFAULT 0 NOT NULL
318 );
319
320
321 --
322 -- Name: changesets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
323 --
324
325 CREATE SEQUENCE public.changesets_id_seq
326     START WITH 1
327     INCREMENT BY 1
328     NO MINVALUE
329     NO MAXVALUE
330     CACHE 1;
331
332
333 --
334 -- Name: changesets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
335 --
336
337 ALTER SEQUENCE public.changesets_id_seq OWNED BY public.changesets.id;
338
339
340 --
341 -- Name: changesets_subscribers; Type: TABLE; Schema: public; Owner: -
342 --
343
344 CREATE TABLE public.changesets_subscribers (
345     subscriber_id bigint NOT NULL,
346     changeset_id bigint NOT NULL
347 );
348
349
350 --
351 -- Name: client_applications; Type: TABLE; Schema: public; Owner: -
352 --
353
354 CREATE TABLE public.client_applications (
355     id integer NOT NULL,
356     name character varying,
357     url character varying,
358     support_url character varying,
359     callback_url character varying,
360     key character varying(50),
361     secret character varying(50),
362     user_id integer,
363     created_at timestamp without time zone,
364     updated_at timestamp without time zone,
365     allow_read_prefs boolean DEFAULT false NOT NULL,
366     allow_write_prefs boolean DEFAULT false NOT NULL,
367     allow_write_diary boolean DEFAULT false NOT NULL,
368     allow_write_api boolean DEFAULT false NOT NULL,
369     allow_read_gpx boolean DEFAULT false NOT NULL,
370     allow_write_gpx boolean DEFAULT false NOT NULL,
371     allow_write_notes boolean DEFAULT false NOT NULL
372 );
373
374
375 --
376 -- Name: client_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: -
377 --
378
379 CREATE SEQUENCE public.client_applications_id_seq
380     AS integer
381     START WITH 1
382     INCREMENT BY 1
383     NO MINVALUE
384     NO MAXVALUE
385     CACHE 1;
386
387
388 --
389 -- Name: client_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
390 --
391
392 ALTER SEQUENCE public.client_applications_id_seq OWNED BY public.client_applications.id;
393
394
395 --
396 -- Name: current_node_tags; Type: TABLE; Schema: public; Owner: -
397 --
398
399 CREATE TABLE public.current_node_tags (
400     node_id bigint NOT NULL,
401     k character varying DEFAULT ''::character varying NOT NULL,
402     v character varying DEFAULT ''::character varying NOT NULL
403 );
404
405
406 --
407 -- Name: current_nodes; Type: TABLE; Schema: public; Owner: -
408 --
409
410 CREATE TABLE public.current_nodes (
411     id bigint NOT NULL,
412     latitude integer NOT NULL,
413     longitude integer NOT NULL,
414     changeset_id bigint NOT NULL,
415     visible boolean NOT NULL,
416     "timestamp" timestamp without time zone NOT NULL,
417     tile bigint NOT NULL,
418     version bigint NOT NULL
419 );
420
421
422 --
423 -- Name: current_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
424 --
425
426 CREATE SEQUENCE public.current_nodes_id_seq
427     START WITH 1
428     INCREMENT BY 1
429     NO MINVALUE
430     NO MAXVALUE
431     CACHE 1;
432
433
434 --
435 -- Name: current_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
436 --
437
438 ALTER SEQUENCE public.current_nodes_id_seq OWNED BY public.current_nodes.id;
439
440
441 --
442 -- Name: current_relation_members; Type: TABLE; Schema: public; Owner: -
443 --
444
445 CREATE TABLE public.current_relation_members (
446     relation_id bigint NOT NULL,
447     member_type public.nwr_enum NOT NULL,
448     member_id bigint NOT NULL,
449     member_role character varying NOT NULL,
450     sequence_id integer DEFAULT 0 NOT NULL
451 );
452
453
454 --
455 -- Name: current_relation_tags; Type: TABLE; Schema: public; Owner: -
456 --
457
458 CREATE TABLE public.current_relation_tags (
459     relation_id bigint NOT NULL,
460     k character varying DEFAULT ''::character varying NOT NULL,
461     v character varying DEFAULT ''::character varying NOT NULL
462 );
463
464
465 --
466 -- Name: current_relations; Type: TABLE; Schema: public; Owner: -
467 --
468
469 CREATE TABLE public.current_relations (
470     id bigint NOT NULL,
471     changeset_id bigint NOT NULL,
472     "timestamp" timestamp without time zone NOT NULL,
473     visible boolean NOT NULL,
474     version bigint NOT NULL
475 );
476
477
478 --
479 -- Name: current_relations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
480 --
481
482 CREATE SEQUENCE public.current_relations_id_seq
483     START WITH 1
484     INCREMENT BY 1
485     NO MINVALUE
486     NO MAXVALUE
487     CACHE 1;
488
489
490 --
491 -- Name: current_relations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
492 --
493
494 ALTER SEQUENCE public.current_relations_id_seq OWNED BY public.current_relations.id;
495
496
497 --
498 -- Name: current_way_nodes; Type: TABLE; Schema: public; Owner: -
499 --
500
501 CREATE TABLE public.current_way_nodes (
502     way_id bigint NOT NULL,
503     node_id bigint NOT NULL,
504     sequence_id bigint NOT NULL
505 );
506
507
508 --
509 -- Name: current_way_tags; Type: TABLE; Schema: public; Owner: -
510 --
511
512 CREATE TABLE public.current_way_tags (
513     way_id bigint NOT NULL,
514     k character varying DEFAULT ''::character varying NOT NULL,
515     v character varying DEFAULT ''::character varying NOT NULL
516 );
517
518
519 --
520 -- Name: current_ways; Type: TABLE; Schema: public; Owner: -
521 --
522
523 CREATE TABLE public.current_ways (
524     id bigint NOT NULL,
525     changeset_id bigint NOT NULL,
526     "timestamp" timestamp without time zone NOT NULL,
527     visible boolean NOT NULL,
528     version bigint NOT NULL
529 );
530
531
532 --
533 -- Name: current_ways_id_seq; Type: SEQUENCE; Schema: public; Owner: -
534 --
535
536 CREATE SEQUENCE public.current_ways_id_seq
537     START WITH 1
538     INCREMENT BY 1
539     NO MINVALUE
540     NO MAXVALUE
541     CACHE 1;
542
543
544 --
545 -- Name: current_ways_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
546 --
547
548 ALTER SEQUENCE public.current_ways_id_seq OWNED BY public.current_ways.id;
549
550
551 --
552 -- Name: delayed_jobs; Type: TABLE; Schema: public; Owner: -
553 --
554
555 CREATE TABLE public.delayed_jobs (
556     id bigint NOT NULL,
557     priority integer DEFAULT 0 NOT NULL,
558     attempts integer DEFAULT 0 NOT NULL,
559     handler text NOT NULL,
560     last_error text,
561     run_at timestamp without time zone,
562     locked_at timestamp without time zone,
563     failed_at timestamp without time zone,
564     locked_by character varying,
565     queue character varying,
566     created_at timestamp without time zone,
567     updated_at timestamp without time zone
568 );
569
570
571 --
572 -- Name: delayed_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
573 --
574
575 CREATE SEQUENCE public.delayed_jobs_id_seq
576     START WITH 1
577     INCREMENT BY 1
578     NO MINVALUE
579     NO MAXVALUE
580     CACHE 1;
581
582
583 --
584 -- Name: delayed_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
585 --
586
587 ALTER SEQUENCE public.delayed_jobs_id_seq OWNED BY public.delayed_jobs.id;
588
589
590 --
591 -- Name: diary_comments; Type: TABLE; Schema: public; Owner: -
592 --
593
594 CREATE TABLE public.diary_comments (
595     id bigint NOT NULL,
596     diary_entry_id bigint NOT NULL,
597     user_id bigint NOT NULL,
598     body text NOT NULL,
599     created_at timestamp without time zone NOT NULL,
600     updated_at timestamp without time zone NOT NULL,
601     visible boolean DEFAULT true NOT NULL,
602     body_format public.format_enum DEFAULT 'markdown'::public.format_enum NOT NULL
603 );
604
605
606 --
607 -- Name: diary_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
608 --
609
610 CREATE SEQUENCE public.diary_comments_id_seq
611     START WITH 1
612     INCREMENT BY 1
613     NO MINVALUE
614     NO MAXVALUE
615     CACHE 1;
616
617
618 --
619 -- Name: diary_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
620 --
621
622 ALTER SEQUENCE public.diary_comments_id_seq OWNED BY public.diary_comments.id;
623
624
625 --
626 -- Name: diary_entries; Type: TABLE; Schema: public; Owner: -
627 --
628
629 CREATE TABLE public.diary_entries (
630     id bigint NOT NULL,
631     user_id bigint NOT NULL,
632     title character varying NOT NULL,
633     body text NOT NULL,
634     created_at timestamp without time zone NOT NULL,
635     updated_at timestamp without time zone NOT NULL,
636     latitude double precision,
637     longitude double precision,
638     language_code character varying DEFAULT 'en'::character varying NOT NULL,
639     visible boolean DEFAULT true NOT NULL,
640     body_format public.format_enum DEFAULT 'markdown'::public.format_enum NOT NULL
641 );
642
643
644 --
645 -- Name: diary_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
646 --
647
648 CREATE SEQUENCE public.diary_entries_id_seq
649     START WITH 1
650     INCREMENT BY 1
651     NO MINVALUE
652     NO MAXVALUE
653     CACHE 1;
654
655
656 --
657 -- Name: diary_entries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
658 --
659
660 ALTER SEQUENCE public.diary_entries_id_seq OWNED BY public.diary_entries.id;
661
662
663 --
664 -- Name: diary_entry_subscriptions; Type: TABLE; Schema: public; Owner: -
665 --
666
667 CREATE TABLE public.diary_entry_subscriptions (
668     user_id bigint NOT NULL,
669     diary_entry_id bigint NOT NULL
670 );
671
672
673 --
674 -- Name: friends; Type: TABLE; Schema: public; Owner: -
675 --
676
677 CREATE TABLE public.friends (
678     id bigint NOT NULL,
679     user_id bigint NOT NULL,
680     friend_user_id bigint NOT NULL,
681     created_at timestamp without time zone
682 );
683
684
685 --
686 -- Name: friends_id_seq; Type: SEQUENCE; Schema: public; Owner: -
687 --
688
689 CREATE SEQUENCE public.friends_id_seq
690     START WITH 1
691     INCREMENT BY 1
692     NO MINVALUE
693     NO MAXVALUE
694     CACHE 1;
695
696
697 --
698 -- Name: friends_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
699 --
700
701 ALTER SEQUENCE public.friends_id_seq OWNED BY public.friends.id;
702
703
704 --
705 -- Name: gps_points; Type: TABLE; Schema: public; Owner: -
706 --
707
708 CREATE TABLE public.gps_points (
709     altitude double precision,
710     trackid integer NOT NULL,
711     latitude integer NOT NULL,
712     longitude integer NOT NULL,
713     gpx_id bigint NOT NULL,
714     "timestamp" timestamp without time zone,
715     tile bigint
716 );
717
718
719 --
720 -- Name: gpx_file_tags; Type: TABLE; Schema: public; Owner: -
721 --
722
723 CREATE TABLE public.gpx_file_tags (
724     gpx_id bigint NOT NULL,
725     tag character varying NOT NULL,
726     id bigint NOT NULL
727 );
728
729
730 --
731 -- Name: gpx_file_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
732 --
733
734 CREATE SEQUENCE public.gpx_file_tags_id_seq
735     START WITH 1
736     INCREMENT BY 1
737     NO MINVALUE
738     NO MAXVALUE
739     CACHE 1;
740
741
742 --
743 -- Name: gpx_file_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
744 --
745
746 ALTER SEQUENCE public.gpx_file_tags_id_seq OWNED BY public.gpx_file_tags.id;
747
748
749 --
750 -- Name: gpx_files; Type: TABLE; Schema: public; Owner: -
751 --
752
753 CREATE TABLE public.gpx_files (
754     id bigint NOT NULL,
755     user_id bigint NOT NULL,
756     visible boolean DEFAULT true NOT NULL,
757     name character varying DEFAULT ''::character varying NOT NULL,
758     size bigint,
759     latitude double precision,
760     longitude double precision,
761     "timestamp" timestamp without time zone NOT NULL,
762     description character varying DEFAULT ''::character varying NOT NULL,
763     inserted boolean NOT NULL,
764     visibility public.gpx_visibility_enum DEFAULT 'public'::public.gpx_visibility_enum NOT NULL
765 );
766
767
768 --
769 -- Name: gpx_files_id_seq; Type: SEQUENCE; Schema: public; Owner: -
770 --
771
772 CREATE SEQUENCE public.gpx_files_id_seq
773     START WITH 1
774     INCREMENT BY 1
775     NO MINVALUE
776     NO MAXVALUE
777     CACHE 1;
778
779
780 --
781 -- Name: gpx_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
782 --
783
784 ALTER SEQUENCE public.gpx_files_id_seq OWNED BY public.gpx_files.id;
785
786
787 --
788 -- Name: issue_comments; Type: TABLE; Schema: public; Owner: -
789 --
790
791 CREATE TABLE public.issue_comments (
792     id integer NOT NULL,
793     issue_id integer NOT NULL,
794     user_id integer NOT NULL,
795     body text NOT NULL,
796     created_at timestamp without time zone NOT NULL,
797     updated_at timestamp without time zone NOT NULL
798 );
799
800
801 --
802 -- Name: issue_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
803 --
804
805 CREATE SEQUENCE public.issue_comments_id_seq
806     AS integer
807     START WITH 1
808     INCREMENT BY 1
809     NO MINVALUE
810     NO MAXVALUE
811     CACHE 1;
812
813
814 --
815 -- Name: issue_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
816 --
817
818 ALTER SEQUENCE public.issue_comments_id_seq OWNED BY public.issue_comments.id;
819
820
821 --
822 -- Name: issues; Type: TABLE; Schema: public; Owner: -
823 --
824
825 CREATE TABLE public.issues (
826     id integer NOT NULL,
827     reportable_type character varying NOT NULL,
828     reportable_id integer NOT NULL,
829     reported_user_id integer,
830     status public.issue_status_enum DEFAULT 'open'::public.issue_status_enum NOT NULL,
831     assigned_role public.user_role_enum NOT NULL,
832     resolved_at timestamp without time zone,
833     resolved_by integer,
834     updated_by integer,
835     reports_count integer DEFAULT 0,
836     created_at timestamp without time zone NOT NULL,
837     updated_at timestamp without time zone NOT NULL
838 );
839
840
841 --
842 -- Name: issues_id_seq; Type: SEQUENCE; Schema: public; Owner: -
843 --
844
845 CREATE SEQUENCE public.issues_id_seq
846     AS integer
847     START WITH 1
848     INCREMENT BY 1
849     NO MINVALUE
850     NO MAXVALUE
851     CACHE 1;
852
853
854 --
855 -- Name: issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
856 --
857
858 ALTER SEQUENCE public.issues_id_seq OWNED BY public.issues.id;
859
860
861 --
862 -- Name: languages; Type: TABLE; Schema: public; Owner: -
863 --
864
865 CREATE TABLE public.languages (
866     code character varying NOT NULL,
867     english_name character varying NOT NULL,
868     native_name character varying
869 );
870
871
872 --
873 -- Name: messages; Type: TABLE; Schema: public; Owner: -
874 --
875
876 CREATE TABLE public.messages (
877     id bigint NOT NULL,
878     from_user_id bigint NOT NULL,
879     title character varying NOT NULL,
880     body text NOT NULL,
881     sent_on timestamp without time zone NOT NULL,
882     message_read boolean DEFAULT false NOT NULL,
883     to_user_id bigint NOT NULL,
884     to_user_visible boolean DEFAULT true NOT NULL,
885     from_user_visible boolean DEFAULT true NOT NULL,
886     body_format public.format_enum DEFAULT 'markdown'::public.format_enum NOT NULL
887 );
888
889
890 --
891 -- Name: messages_id_seq; Type: SEQUENCE; Schema: public; Owner: -
892 --
893
894 CREATE SEQUENCE public.messages_id_seq
895     START WITH 1
896     INCREMENT BY 1
897     NO MINVALUE
898     NO MAXVALUE
899     CACHE 1;
900
901
902 --
903 -- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
904 --
905
906 ALTER SEQUENCE public.messages_id_seq OWNED BY public.messages.id;
907
908
909 --
910 -- Name: node_tags; Type: TABLE; Schema: public; Owner: -
911 --
912
913 CREATE TABLE public.node_tags (
914     node_id bigint NOT NULL,
915     version bigint NOT NULL,
916     k character varying DEFAULT ''::character varying NOT NULL,
917     v character varying DEFAULT ''::character varying NOT NULL
918 );
919
920
921 --
922 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
923 --
924
925 CREATE TABLE public.nodes (
926     node_id bigint NOT NULL,
927     latitude integer NOT NULL,
928     longitude integer NOT NULL,
929     changeset_id bigint NOT NULL,
930     visible boolean NOT NULL,
931     "timestamp" timestamp without time zone NOT NULL,
932     tile bigint NOT NULL,
933     version bigint NOT NULL,
934     redaction_id integer
935 );
936
937
938 --
939 -- Name: note_comments; Type: TABLE; Schema: public; Owner: -
940 --
941
942 CREATE TABLE public.note_comments (
943     id bigint NOT NULL,
944     note_id bigint NOT NULL,
945     visible boolean NOT NULL,
946     created_at timestamp without time zone NOT NULL,
947     author_ip inet,
948     author_id bigint,
949     body text,
950     event public.note_event_enum
951 );
952
953
954 --
955 -- Name: note_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
956 --
957
958 CREATE SEQUENCE public.note_comments_id_seq
959     AS integer
960     START WITH 1
961     INCREMENT BY 1
962     NO MINVALUE
963     NO MAXVALUE
964     CACHE 1;
965
966
967 --
968 -- Name: note_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
969 --
970
971 ALTER SEQUENCE public.note_comments_id_seq OWNED BY public.note_comments.id;
972
973
974 --
975 -- Name: notes; Type: TABLE; Schema: public; Owner: -
976 --
977
978 CREATE TABLE public.notes (
979     id bigint NOT NULL,
980     latitude integer NOT NULL,
981     longitude integer NOT NULL,
982     tile bigint NOT NULL,
983     updated_at timestamp without time zone NOT NULL,
984     created_at timestamp without time zone NOT NULL,
985     status public.note_status_enum NOT NULL,
986     closed_at timestamp without time zone
987 );
988
989
990 --
991 -- Name: notes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
992 --
993
994 CREATE SEQUENCE public.notes_id_seq
995     AS integer
996     START WITH 1
997     INCREMENT BY 1
998     NO MINVALUE
999     NO MAXVALUE
1000     CACHE 1;
1001
1002
1003 --
1004 -- Name: notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1005 --
1006
1007 ALTER SEQUENCE public.notes_id_seq OWNED BY public.notes.id;
1008
1009
1010 --
1011 -- Name: oauth_access_grants; Type: TABLE; Schema: public; Owner: -
1012 --
1013
1014 CREATE TABLE public.oauth_access_grants (
1015     id bigint NOT NULL,
1016     resource_owner_id bigint NOT NULL,
1017     application_id bigint NOT NULL,
1018     token character varying NOT NULL,
1019     expires_in integer NOT NULL,
1020     redirect_uri text NOT NULL,
1021     created_at timestamp without time zone NOT NULL,
1022     revoked_at timestamp without time zone,
1023     scopes character varying DEFAULT ''::character varying NOT NULL,
1024     code_challenge character varying,
1025     code_challenge_method character varying
1026 );
1027
1028
1029 --
1030 -- Name: oauth_access_grants_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1031 --
1032
1033 CREATE SEQUENCE public.oauth_access_grants_id_seq
1034     START WITH 1
1035     INCREMENT BY 1
1036     NO MINVALUE
1037     NO MAXVALUE
1038     CACHE 1;
1039
1040
1041 --
1042 -- Name: oauth_access_grants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1043 --
1044
1045 ALTER SEQUENCE public.oauth_access_grants_id_seq OWNED BY public.oauth_access_grants.id;
1046
1047
1048 --
1049 -- Name: oauth_access_tokens; Type: TABLE; Schema: public; Owner: -
1050 --
1051
1052 CREATE TABLE public.oauth_access_tokens (
1053     id bigint NOT NULL,
1054     resource_owner_id bigint,
1055     application_id bigint NOT NULL,
1056     token character varying NOT NULL,
1057     refresh_token character varying,
1058     expires_in integer,
1059     revoked_at timestamp without time zone,
1060     created_at timestamp without time zone NOT NULL,
1061     scopes character varying,
1062     previous_refresh_token character varying DEFAULT ''::character varying NOT NULL
1063 );
1064
1065
1066 --
1067 -- Name: oauth_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1068 --
1069
1070 CREATE SEQUENCE public.oauth_access_tokens_id_seq
1071     START WITH 1
1072     INCREMENT BY 1
1073     NO MINVALUE
1074     NO MAXVALUE
1075     CACHE 1;
1076
1077
1078 --
1079 -- Name: oauth_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1080 --
1081
1082 ALTER SEQUENCE public.oauth_access_tokens_id_seq OWNED BY public.oauth_access_tokens.id;
1083
1084
1085 --
1086 -- Name: oauth_applications; Type: TABLE; Schema: public; Owner: -
1087 --
1088
1089 CREATE TABLE public.oauth_applications (
1090     id bigint NOT NULL,
1091     owner_type character varying NOT NULL,
1092     owner_id bigint NOT NULL,
1093     name character varying NOT NULL,
1094     uid character varying NOT NULL,
1095     secret character varying NOT NULL,
1096     redirect_uri text NOT NULL,
1097     scopes character varying DEFAULT ''::character varying NOT NULL,
1098     confidential boolean DEFAULT true NOT NULL,
1099     created_at timestamp(6) without time zone NOT NULL,
1100     updated_at timestamp(6) without time zone NOT NULL
1101 );
1102
1103
1104 --
1105 -- Name: oauth_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1106 --
1107
1108 CREATE SEQUENCE public.oauth_applications_id_seq
1109     START WITH 1
1110     INCREMENT BY 1
1111     NO MINVALUE
1112     NO MAXVALUE
1113     CACHE 1;
1114
1115
1116 --
1117 -- Name: oauth_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1118 --
1119
1120 ALTER SEQUENCE public.oauth_applications_id_seq OWNED BY public.oauth_applications.id;
1121
1122
1123 --
1124 -- Name: oauth_nonces; Type: TABLE; Schema: public; Owner: -
1125 --
1126
1127 CREATE TABLE public.oauth_nonces (
1128     id bigint NOT NULL,
1129     nonce character varying,
1130     "timestamp" integer,
1131     created_at timestamp without time zone,
1132     updated_at timestamp without time zone
1133 );
1134
1135
1136 --
1137 -- Name: oauth_nonces_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1138 --
1139
1140 CREATE SEQUENCE public.oauth_nonces_id_seq
1141     AS integer
1142     START WITH 1
1143     INCREMENT BY 1
1144     NO MINVALUE
1145     NO MAXVALUE
1146     CACHE 1;
1147
1148
1149 --
1150 -- Name: oauth_nonces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1151 --
1152
1153 ALTER SEQUENCE public.oauth_nonces_id_seq OWNED BY public.oauth_nonces.id;
1154
1155
1156 --
1157 -- Name: oauth_openid_requests; Type: TABLE; Schema: public; Owner: -
1158 --
1159
1160 CREATE TABLE public.oauth_openid_requests (
1161     id bigint NOT NULL,
1162     access_grant_id bigint NOT NULL,
1163     nonce character varying NOT NULL
1164 );
1165
1166
1167 --
1168 -- Name: oauth_openid_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1169 --
1170
1171 CREATE SEQUENCE public.oauth_openid_requests_id_seq
1172     START WITH 1
1173     INCREMENT BY 1
1174     NO MINVALUE
1175     NO MAXVALUE
1176     CACHE 1;
1177
1178
1179 --
1180 -- Name: oauth_openid_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1181 --
1182
1183 ALTER SEQUENCE public.oauth_openid_requests_id_seq OWNED BY public.oauth_openid_requests.id;
1184
1185
1186 --
1187 -- Name: oauth_tokens; Type: TABLE; Schema: public; Owner: -
1188 --
1189
1190 CREATE TABLE public.oauth_tokens (
1191     id integer NOT NULL,
1192     user_id integer,
1193     type character varying(20),
1194     client_application_id integer,
1195     token character varying(50),
1196     secret character varying(50),
1197     authorized_at timestamp without time zone,
1198     invalidated_at timestamp without time zone,
1199     created_at timestamp without time zone,
1200     updated_at timestamp without time zone,
1201     allow_read_prefs boolean DEFAULT false NOT NULL,
1202     allow_write_prefs boolean DEFAULT false NOT NULL,
1203     allow_write_diary boolean DEFAULT false NOT NULL,
1204     allow_write_api boolean DEFAULT false NOT NULL,
1205     allow_read_gpx boolean DEFAULT false NOT NULL,
1206     allow_write_gpx boolean DEFAULT false NOT NULL,
1207     callback_url character varying,
1208     verifier character varying(20),
1209     scope character varying,
1210     valid_to timestamp without time zone,
1211     allow_write_notes boolean DEFAULT false NOT NULL
1212 );
1213
1214
1215 --
1216 -- Name: oauth_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1217 --
1218
1219 CREATE SEQUENCE public.oauth_tokens_id_seq
1220     AS integer
1221     START WITH 1
1222     INCREMENT BY 1
1223     NO MINVALUE
1224     NO MAXVALUE
1225     CACHE 1;
1226
1227
1228 --
1229 -- Name: oauth_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1230 --
1231
1232 ALTER SEQUENCE public.oauth_tokens_id_seq OWNED BY public.oauth_tokens.id;
1233
1234
1235 --
1236 -- Name: redactions; Type: TABLE; Schema: public; Owner: -
1237 --
1238
1239 CREATE TABLE public.redactions (
1240     id integer NOT NULL,
1241     title character varying,
1242     description text,
1243     created_at timestamp without time zone,
1244     updated_at timestamp without time zone,
1245     user_id bigint NOT NULL,
1246     description_format public.format_enum DEFAULT 'markdown'::public.format_enum NOT NULL
1247 );
1248
1249
1250 --
1251 -- Name: redactions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1252 --
1253
1254 CREATE SEQUENCE public.redactions_id_seq
1255     AS integer
1256     START WITH 1
1257     INCREMENT BY 1
1258     NO MINVALUE
1259     NO MAXVALUE
1260     CACHE 1;
1261
1262
1263 --
1264 -- Name: redactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1265 --
1266
1267 ALTER SEQUENCE public.redactions_id_seq OWNED BY public.redactions.id;
1268
1269
1270 --
1271 -- Name: relation_members; Type: TABLE; Schema: public; Owner: -
1272 --
1273
1274 CREATE TABLE public.relation_members (
1275     relation_id bigint NOT NULL,
1276     member_type public.nwr_enum NOT NULL,
1277     member_id bigint NOT NULL,
1278     member_role character varying NOT NULL,
1279     version bigint DEFAULT 0 NOT NULL,
1280     sequence_id integer DEFAULT 0 NOT NULL
1281 );
1282
1283
1284 --
1285 -- Name: relation_tags; Type: TABLE; Schema: public; Owner: -
1286 --
1287
1288 CREATE TABLE public.relation_tags (
1289     relation_id bigint NOT NULL,
1290     k character varying DEFAULT ''::character varying NOT NULL,
1291     v character varying DEFAULT ''::character varying NOT NULL,
1292     version bigint NOT NULL
1293 );
1294
1295
1296 --
1297 -- Name: relations; Type: TABLE; Schema: public; Owner: -
1298 --
1299
1300 CREATE TABLE public.relations (
1301     relation_id bigint NOT NULL,
1302     changeset_id bigint NOT NULL,
1303     "timestamp" timestamp without time zone NOT NULL,
1304     version bigint NOT NULL,
1305     visible boolean DEFAULT true NOT NULL,
1306     redaction_id integer
1307 );
1308
1309
1310 --
1311 -- Name: reports; Type: TABLE; Schema: public; Owner: -
1312 --
1313
1314 CREATE TABLE public.reports (
1315     id integer NOT NULL,
1316     issue_id integer NOT NULL,
1317     user_id integer NOT NULL,
1318     details text NOT NULL,
1319     category character varying NOT NULL,
1320     created_at timestamp without time zone NOT NULL,
1321     updated_at timestamp without time zone NOT NULL
1322 );
1323
1324
1325 --
1326 -- Name: reports_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1327 --
1328
1329 CREATE SEQUENCE public.reports_id_seq
1330     AS integer
1331     START WITH 1
1332     INCREMENT BY 1
1333     NO MINVALUE
1334     NO MAXVALUE
1335     CACHE 1;
1336
1337
1338 --
1339 -- Name: reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1340 --
1341
1342 ALTER SEQUENCE public.reports_id_seq OWNED BY public.reports.id;
1343
1344
1345 --
1346 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
1347 --
1348
1349 CREATE TABLE public.schema_migrations (
1350     version character varying NOT NULL
1351 );
1352
1353
1354 --
1355 -- Name: user_blocks; Type: TABLE; Schema: public; Owner: -
1356 --
1357
1358 CREATE TABLE public.user_blocks (
1359     id integer NOT NULL,
1360     user_id bigint NOT NULL,
1361     creator_id bigint NOT NULL,
1362     reason text NOT NULL,
1363     ends_at timestamp without time zone NOT NULL,
1364     needs_view boolean DEFAULT false NOT NULL,
1365     revoker_id bigint,
1366     created_at timestamp without time zone,
1367     updated_at timestamp without time zone,
1368     reason_format public.format_enum DEFAULT 'markdown'::public.format_enum NOT NULL
1369 );
1370
1371
1372 --
1373 -- Name: user_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1374 --
1375
1376 CREATE SEQUENCE public.user_blocks_id_seq
1377     AS integer
1378     START WITH 1
1379     INCREMENT BY 1
1380     NO MINVALUE
1381     NO MAXVALUE
1382     CACHE 1;
1383
1384
1385 --
1386 -- Name: user_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1387 --
1388
1389 ALTER SEQUENCE public.user_blocks_id_seq OWNED BY public.user_blocks.id;
1390
1391
1392 --
1393 -- Name: user_preferences; Type: TABLE; Schema: public; Owner: -
1394 --
1395
1396 CREATE TABLE public.user_preferences (
1397     user_id bigint NOT NULL,
1398     k character varying NOT NULL,
1399     v character varying NOT NULL
1400 );
1401
1402
1403 --
1404 -- Name: user_roles; Type: TABLE; Schema: public; Owner: -
1405 --
1406
1407 CREATE TABLE public.user_roles (
1408     id integer NOT NULL,
1409     user_id bigint NOT NULL,
1410     role public.user_role_enum NOT NULL,
1411     created_at timestamp without time zone,
1412     updated_at timestamp without time zone,
1413     granter_id bigint NOT NULL
1414 );
1415
1416
1417 --
1418 -- Name: user_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1419 --
1420
1421 CREATE SEQUENCE public.user_roles_id_seq
1422     AS integer
1423     START WITH 1
1424     INCREMENT BY 1
1425     NO MINVALUE
1426     NO MAXVALUE
1427     CACHE 1;
1428
1429
1430 --
1431 -- Name: user_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1432 --
1433
1434 ALTER SEQUENCE public.user_roles_id_seq OWNED BY public.user_roles.id;
1435
1436
1437 --
1438 -- Name: user_tokens; Type: TABLE; Schema: public; Owner: -
1439 --
1440
1441 CREATE TABLE public.user_tokens (
1442     id bigint NOT NULL,
1443     user_id bigint NOT NULL,
1444     token character varying NOT NULL,
1445     expiry timestamp without time zone NOT NULL,
1446     referer text
1447 );
1448
1449
1450 --
1451 -- Name: user_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1452 --
1453
1454 CREATE SEQUENCE public.user_tokens_id_seq
1455     START WITH 1
1456     INCREMENT BY 1
1457     NO MINVALUE
1458     NO MAXVALUE
1459     CACHE 1;
1460
1461
1462 --
1463 -- Name: user_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1464 --
1465
1466 ALTER SEQUENCE public.user_tokens_id_seq OWNED BY public.user_tokens.id;
1467
1468
1469 --
1470 -- Name: users; Type: TABLE; Schema: public; Owner: -
1471 --
1472
1473 CREATE TABLE public.users (
1474     email character varying NOT NULL,
1475     id bigint NOT NULL,
1476     pass_crypt character varying NOT NULL,
1477     creation_time timestamp without time zone NOT NULL,
1478     display_name character varying DEFAULT ''::character varying NOT NULL,
1479     data_public boolean DEFAULT false NOT NULL,
1480     description text DEFAULT ''::text NOT NULL,
1481     home_lat double precision,
1482     home_lon double precision,
1483     home_zoom smallint DEFAULT 3,
1484     pass_salt character varying,
1485     email_valid boolean DEFAULT false NOT NULL,
1486     new_email character varying,
1487     creation_ip character varying,
1488     languages character varying,
1489     status public.user_status_enum DEFAULT 'pending'::public.user_status_enum NOT NULL,
1490     terms_agreed timestamp without time zone,
1491     consider_pd boolean DEFAULT false NOT NULL,
1492     auth_uid character varying,
1493     preferred_editor character varying,
1494     terms_seen boolean DEFAULT false NOT NULL,
1495     description_format public.format_enum DEFAULT 'markdown'::public.format_enum NOT NULL,
1496     changesets_count integer DEFAULT 0 NOT NULL,
1497     traces_count integer DEFAULT 0 NOT NULL,
1498     diary_entries_count integer DEFAULT 0 NOT NULL,
1499     image_use_gravatar boolean DEFAULT false NOT NULL,
1500     auth_provider character varying,
1501     home_tile bigint,
1502     tou_agreed timestamp without time zone
1503 );
1504
1505
1506 --
1507 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1508 --
1509
1510 CREATE SEQUENCE public.users_id_seq
1511     START WITH 1
1512     INCREMENT BY 1
1513     NO MINVALUE
1514     NO MAXVALUE
1515     CACHE 1;
1516
1517
1518 --
1519 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1520 --
1521
1522 ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
1523
1524
1525 --
1526 -- Name: way_nodes; Type: TABLE; Schema: public; Owner: -
1527 --
1528
1529 CREATE TABLE public.way_nodes (
1530     way_id bigint NOT NULL,
1531     node_id bigint NOT NULL,
1532     version bigint NOT NULL,
1533     sequence_id bigint NOT NULL
1534 );
1535
1536
1537 --
1538 -- Name: way_tags; Type: TABLE; Schema: public; Owner: -
1539 --
1540
1541 CREATE TABLE public.way_tags (
1542     way_id bigint NOT NULL,
1543     k character varying NOT NULL,
1544     v character varying NOT NULL,
1545     version bigint NOT NULL
1546 );
1547
1548
1549 --
1550 -- Name: ways; Type: TABLE; Schema: public; Owner: -
1551 --
1552
1553 CREATE TABLE public.ways (
1554     way_id bigint NOT NULL,
1555     changeset_id bigint NOT NULL,
1556     "timestamp" timestamp without time zone NOT NULL,
1557     version bigint NOT NULL,
1558     visible boolean DEFAULT true NOT NULL,
1559     redaction_id integer
1560 );
1561
1562
1563 --
1564 -- Name: acls id; Type: DEFAULT; Schema: public; Owner: -
1565 --
1566
1567 ALTER TABLE ONLY public.acls ALTER COLUMN id SET DEFAULT nextval('public.acls_id_seq'::regclass);
1568
1569
1570 --
1571 -- Name: active_storage_attachments id; Type: DEFAULT; Schema: public; Owner: -
1572 --
1573
1574 ALTER TABLE ONLY public.active_storage_attachments ALTER COLUMN id SET DEFAULT nextval('public.active_storage_attachments_id_seq'::regclass);
1575
1576
1577 --
1578 -- Name: active_storage_blobs id; Type: DEFAULT; Schema: public; Owner: -
1579 --
1580
1581 ALTER TABLE ONLY public.active_storage_blobs ALTER COLUMN id SET DEFAULT nextval('public.active_storage_blobs_id_seq'::regclass);
1582
1583
1584 --
1585 -- Name: active_storage_variant_records id; Type: DEFAULT; Schema: public; Owner: -
1586 --
1587
1588 ALTER TABLE ONLY public.active_storage_variant_records ALTER COLUMN id SET DEFAULT nextval('public.active_storage_variant_records_id_seq'::regclass);
1589
1590
1591 --
1592 -- Name: changeset_comments id; Type: DEFAULT; Schema: public; Owner: -
1593 --
1594
1595 ALTER TABLE ONLY public.changeset_comments ALTER COLUMN id SET DEFAULT nextval('public.changeset_comments_id_seq'::regclass);
1596
1597
1598 --
1599 -- Name: changesets id; Type: DEFAULT; Schema: public; Owner: -
1600 --
1601
1602 ALTER TABLE ONLY public.changesets ALTER COLUMN id SET DEFAULT nextval('public.changesets_id_seq'::regclass);
1603
1604
1605 --
1606 -- Name: client_applications id; Type: DEFAULT; Schema: public; Owner: -
1607 --
1608
1609 ALTER TABLE ONLY public.client_applications ALTER COLUMN id SET DEFAULT nextval('public.client_applications_id_seq'::regclass);
1610
1611
1612 --
1613 -- Name: current_nodes id; Type: DEFAULT; Schema: public; Owner: -
1614 --
1615
1616 ALTER TABLE ONLY public.current_nodes ALTER COLUMN id SET DEFAULT nextval('public.current_nodes_id_seq'::regclass);
1617
1618
1619 --
1620 -- Name: current_relations id; Type: DEFAULT; Schema: public; Owner: -
1621 --
1622
1623 ALTER TABLE ONLY public.current_relations ALTER COLUMN id SET DEFAULT nextval('public.current_relations_id_seq'::regclass);
1624
1625
1626 --
1627 -- Name: current_ways id; Type: DEFAULT; Schema: public; Owner: -
1628 --
1629
1630 ALTER TABLE ONLY public.current_ways ALTER COLUMN id SET DEFAULT nextval('public.current_ways_id_seq'::regclass);
1631
1632
1633 --
1634 -- Name: delayed_jobs id; Type: DEFAULT; Schema: public; Owner: -
1635 --
1636
1637 ALTER TABLE ONLY public.delayed_jobs ALTER COLUMN id SET DEFAULT nextval('public.delayed_jobs_id_seq'::regclass);
1638
1639
1640 --
1641 -- Name: diary_comments id; Type: DEFAULT; Schema: public; Owner: -
1642 --
1643
1644 ALTER TABLE ONLY public.diary_comments ALTER COLUMN id SET DEFAULT nextval('public.diary_comments_id_seq'::regclass);
1645
1646
1647 --
1648 -- Name: diary_entries id; Type: DEFAULT; Schema: public; Owner: -
1649 --
1650
1651 ALTER TABLE ONLY public.diary_entries ALTER COLUMN id SET DEFAULT nextval('public.diary_entries_id_seq'::regclass);
1652
1653
1654 --
1655 -- Name: friends id; Type: DEFAULT; Schema: public; Owner: -
1656 --
1657
1658 ALTER TABLE ONLY public.friends ALTER COLUMN id SET DEFAULT nextval('public.friends_id_seq'::regclass);
1659
1660
1661 --
1662 -- Name: gpx_file_tags id; Type: DEFAULT; Schema: public; Owner: -
1663 --
1664
1665 ALTER TABLE ONLY public.gpx_file_tags ALTER COLUMN id SET DEFAULT nextval('public.gpx_file_tags_id_seq'::regclass);
1666
1667
1668 --
1669 -- Name: gpx_files id; Type: DEFAULT; Schema: public; Owner: -
1670 --
1671
1672 ALTER TABLE ONLY public.gpx_files ALTER COLUMN id SET DEFAULT nextval('public.gpx_files_id_seq'::regclass);
1673
1674
1675 --
1676 -- Name: issue_comments id; Type: DEFAULT; Schema: public; Owner: -
1677 --
1678
1679 ALTER TABLE ONLY public.issue_comments ALTER COLUMN id SET DEFAULT nextval('public.issue_comments_id_seq'::regclass);
1680
1681
1682 --
1683 -- Name: issues id; Type: DEFAULT; Schema: public; Owner: -
1684 --
1685
1686 ALTER TABLE ONLY public.issues ALTER COLUMN id SET DEFAULT nextval('public.issues_id_seq'::regclass);
1687
1688
1689 --
1690 -- Name: messages id; Type: DEFAULT; Schema: public; Owner: -
1691 --
1692
1693 ALTER TABLE ONLY public.messages ALTER COLUMN id SET DEFAULT nextval('public.messages_id_seq'::regclass);
1694
1695
1696 --
1697 -- Name: note_comments id; Type: DEFAULT; Schema: public; Owner: -
1698 --
1699
1700 ALTER TABLE ONLY public.note_comments ALTER COLUMN id SET DEFAULT nextval('public.note_comments_id_seq'::regclass);
1701
1702
1703 --
1704 -- Name: notes id; Type: DEFAULT; Schema: public; Owner: -
1705 --
1706
1707 ALTER TABLE ONLY public.notes ALTER COLUMN id SET DEFAULT nextval('public.notes_id_seq'::regclass);
1708
1709
1710 --
1711 -- Name: oauth_access_grants id; Type: DEFAULT; Schema: public; Owner: -
1712 --
1713
1714 ALTER TABLE ONLY public.oauth_access_grants ALTER COLUMN id SET DEFAULT nextval('public.oauth_access_grants_id_seq'::regclass);
1715
1716
1717 --
1718 -- Name: oauth_access_tokens id; Type: DEFAULT; Schema: public; Owner: -
1719 --
1720
1721 ALTER TABLE ONLY public.oauth_access_tokens ALTER COLUMN id SET DEFAULT nextval('public.oauth_access_tokens_id_seq'::regclass);
1722
1723
1724 --
1725 -- Name: oauth_applications id; Type: DEFAULT; Schema: public; Owner: -
1726 --
1727
1728 ALTER TABLE ONLY public.oauth_applications ALTER COLUMN id SET DEFAULT nextval('public.oauth_applications_id_seq'::regclass);
1729
1730
1731 --
1732 -- Name: oauth_nonces id; Type: DEFAULT; Schema: public; Owner: -
1733 --
1734
1735 ALTER TABLE ONLY public.oauth_nonces ALTER COLUMN id SET DEFAULT nextval('public.oauth_nonces_id_seq'::regclass);
1736
1737
1738 --
1739 -- Name: oauth_openid_requests id; Type: DEFAULT; Schema: public; Owner: -
1740 --
1741
1742 ALTER TABLE ONLY public.oauth_openid_requests ALTER COLUMN id SET DEFAULT nextval('public.oauth_openid_requests_id_seq'::regclass);
1743
1744
1745 --
1746 -- Name: oauth_tokens id; Type: DEFAULT; Schema: public; Owner: -
1747 --
1748
1749 ALTER TABLE ONLY public.oauth_tokens ALTER COLUMN id SET DEFAULT nextval('public.oauth_tokens_id_seq'::regclass);
1750
1751
1752 --
1753 -- Name: redactions id; Type: DEFAULT; Schema: public; Owner: -
1754 --
1755
1756 ALTER TABLE ONLY public.redactions ALTER COLUMN id SET DEFAULT nextval('public.redactions_id_seq'::regclass);
1757
1758
1759 --
1760 -- Name: reports id; Type: DEFAULT; Schema: public; Owner: -
1761 --
1762
1763 ALTER TABLE ONLY public.reports ALTER COLUMN id SET DEFAULT nextval('public.reports_id_seq'::regclass);
1764
1765
1766 --
1767 -- Name: user_blocks id; Type: DEFAULT; Schema: public; Owner: -
1768 --
1769
1770 ALTER TABLE ONLY public.user_blocks ALTER COLUMN id SET DEFAULT nextval('public.user_blocks_id_seq'::regclass);
1771
1772
1773 --
1774 -- Name: user_roles id; Type: DEFAULT; Schema: public; Owner: -
1775 --
1776
1777 ALTER TABLE ONLY public.user_roles ALTER COLUMN id SET DEFAULT nextval('public.user_roles_id_seq'::regclass);
1778
1779
1780 --
1781 -- Name: user_tokens id; Type: DEFAULT; Schema: public; Owner: -
1782 --
1783
1784 ALTER TABLE ONLY public.user_tokens ALTER COLUMN id SET DEFAULT nextval('public.user_tokens_id_seq'::regclass);
1785
1786
1787 --
1788 -- Name: users id; Type: DEFAULT; Schema: public; Owner: -
1789 --
1790
1791 ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
1792
1793
1794 --
1795 -- Name: acls acls_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1796 --
1797
1798 ALTER TABLE ONLY public.acls
1799     ADD CONSTRAINT acls_pkey PRIMARY KEY (id);
1800
1801
1802 --
1803 -- Name: active_storage_attachments active_storage_attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1804 --
1805
1806 ALTER TABLE ONLY public.active_storage_attachments
1807     ADD CONSTRAINT active_storage_attachments_pkey PRIMARY KEY (id);
1808
1809
1810 --
1811 -- Name: active_storage_blobs active_storage_blobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1812 --
1813
1814 ALTER TABLE ONLY public.active_storage_blobs
1815     ADD CONSTRAINT active_storage_blobs_pkey PRIMARY KEY (id);
1816
1817
1818 --
1819 -- Name: active_storage_variant_records active_storage_variant_records_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1820 --
1821
1822 ALTER TABLE ONLY public.active_storage_variant_records
1823     ADD CONSTRAINT active_storage_variant_records_pkey PRIMARY KEY (id);
1824
1825
1826 --
1827 -- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1828 --
1829
1830 ALTER TABLE ONLY public.ar_internal_metadata
1831     ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key);
1832
1833
1834 --
1835 -- Name: changeset_comments changeset_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1836 --
1837
1838 ALTER TABLE ONLY public.changeset_comments
1839     ADD CONSTRAINT changeset_comments_pkey PRIMARY KEY (id);
1840
1841
1842 --
1843 -- Name: changeset_tags changeset_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1844 --
1845
1846 ALTER TABLE ONLY public.changeset_tags
1847     ADD CONSTRAINT changeset_tags_pkey PRIMARY KEY (changeset_id, k);
1848
1849
1850 --
1851 -- Name: changesets changesets_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1852 --
1853
1854 ALTER TABLE ONLY public.changesets
1855     ADD CONSTRAINT changesets_pkey PRIMARY KEY (id);
1856
1857
1858 --
1859 -- Name: client_applications client_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1860 --
1861
1862 ALTER TABLE ONLY public.client_applications
1863     ADD CONSTRAINT client_applications_pkey PRIMARY KEY (id);
1864
1865
1866 --
1867 -- Name: current_node_tags current_node_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1868 --
1869
1870 ALTER TABLE ONLY public.current_node_tags
1871     ADD CONSTRAINT current_node_tags_pkey PRIMARY KEY (node_id, k);
1872
1873
1874 --
1875 -- Name: current_nodes current_nodes_pkey1; Type: CONSTRAINT; Schema: public; Owner: -
1876 --
1877
1878 ALTER TABLE ONLY public.current_nodes
1879     ADD CONSTRAINT current_nodes_pkey1 PRIMARY KEY (id);
1880
1881
1882 --
1883 -- Name: current_relation_members current_relation_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1884 --
1885
1886 ALTER TABLE ONLY public.current_relation_members
1887     ADD CONSTRAINT current_relation_members_pkey PRIMARY KEY (relation_id, sequence_id);
1888
1889
1890 --
1891 -- Name: current_relation_tags current_relation_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1892 --
1893
1894 ALTER TABLE ONLY public.current_relation_tags
1895     ADD CONSTRAINT current_relation_tags_pkey PRIMARY KEY (relation_id, k);
1896
1897
1898 --
1899 -- Name: current_relations current_relations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1900 --
1901
1902 ALTER TABLE ONLY public.current_relations
1903     ADD CONSTRAINT current_relations_pkey PRIMARY KEY (id);
1904
1905
1906 --
1907 -- Name: current_way_nodes current_way_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1908 --
1909
1910 ALTER TABLE ONLY public.current_way_nodes
1911     ADD CONSTRAINT current_way_nodes_pkey PRIMARY KEY (way_id, sequence_id);
1912
1913
1914 --
1915 -- Name: current_way_tags current_way_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1916 --
1917
1918 ALTER TABLE ONLY public.current_way_tags
1919     ADD CONSTRAINT current_way_tags_pkey PRIMARY KEY (way_id, k);
1920
1921
1922 --
1923 -- Name: current_ways current_ways_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1924 --
1925
1926 ALTER TABLE ONLY public.current_ways
1927     ADD CONSTRAINT current_ways_pkey PRIMARY KEY (id);
1928
1929
1930 --
1931 -- Name: delayed_jobs delayed_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1932 --
1933
1934 ALTER TABLE ONLY public.delayed_jobs
1935     ADD CONSTRAINT delayed_jobs_pkey PRIMARY KEY (id);
1936
1937
1938 --
1939 -- Name: diary_comments diary_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1940 --
1941
1942 ALTER TABLE ONLY public.diary_comments
1943     ADD CONSTRAINT diary_comments_pkey PRIMARY KEY (id);
1944
1945
1946 --
1947 -- Name: diary_entries diary_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1948 --
1949
1950 ALTER TABLE ONLY public.diary_entries
1951     ADD CONSTRAINT diary_entries_pkey PRIMARY KEY (id);
1952
1953
1954 --
1955 -- Name: diary_entry_subscriptions diary_entry_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1956 --
1957
1958 ALTER TABLE ONLY public.diary_entry_subscriptions
1959     ADD CONSTRAINT diary_entry_subscriptions_pkey PRIMARY KEY (user_id, diary_entry_id);
1960
1961
1962 --
1963 -- Name: friends friends_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1964 --
1965
1966 ALTER TABLE ONLY public.friends
1967     ADD CONSTRAINT friends_pkey PRIMARY KEY (id);
1968
1969
1970 --
1971 -- Name: gpx_file_tags gpx_file_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1972 --
1973
1974 ALTER TABLE ONLY public.gpx_file_tags
1975     ADD CONSTRAINT gpx_file_tags_pkey PRIMARY KEY (id);
1976
1977
1978 --
1979 -- Name: gpx_files gpx_files_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1980 --
1981
1982 ALTER TABLE ONLY public.gpx_files
1983     ADD CONSTRAINT gpx_files_pkey PRIMARY KEY (id);
1984
1985
1986 --
1987 -- Name: issue_comments issue_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1988 --
1989
1990 ALTER TABLE ONLY public.issue_comments
1991     ADD CONSTRAINT issue_comments_pkey PRIMARY KEY (id);
1992
1993
1994 --
1995 -- Name: issues issues_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1996 --
1997
1998 ALTER TABLE ONLY public.issues
1999     ADD CONSTRAINT issues_pkey PRIMARY KEY (id);
2000
2001
2002 --
2003 -- Name: languages languages_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2004 --
2005
2006 ALTER TABLE ONLY public.languages
2007     ADD CONSTRAINT languages_pkey PRIMARY KEY (code);
2008
2009
2010 --
2011 -- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2012 --
2013
2014 ALTER TABLE ONLY public.messages
2015     ADD CONSTRAINT messages_pkey PRIMARY KEY (id);
2016
2017
2018 --
2019 -- Name: node_tags node_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2020 --
2021
2022 ALTER TABLE ONLY public.node_tags
2023     ADD CONSTRAINT node_tags_pkey PRIMARY KEY (node_id, version, k);
2024
2025
2026 --
2027 -- Name: nodes nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2028 --
2029
2030 ALTER TABLE ONLY public.nodes
2031     ADD CONSTRAINT nodes_pkey PRIMARY KEY (node_id, version);
2032
2033
2034 --
2035 -- Name: note_comments note_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2036 --
2037
2038 ALTER TABLE ONLY public.note_comments
2039     ADD CONSTRAINT note_comments_pkey PRIMARY KEY (id);
2040
2041
2042 --
2043 -- Name: notes notes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2044 --
2045
2046 ALTER TABLE ONLY public.notes
2047     ADD CONSTRAINT notes_pkey PRIMARY KEY (id);
2048
2049
2050 --
2051 -- Name: oauth_access_grants oauth_access_grants_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2052 --
2053
2054 ALTER TABLE ONLY public.oauth_access_grants
2055     ADD CONSTRAINT oauth_access_grants_pkey PRIMARY KEY (id);
2056
2057
2058 --
2059 -- Name: oauth_access_tokens oauth_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2060 --
2061
2062 ALTER TABLE ONLY public.oauth_access_tokens
2063     ADD CONSTRAINT oauth_access_tokens_pkey PRIMARY KEY (id);
2064
2065
2066 --
2067 -- Name: oauth_applications oauth_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2068 --
2069
2070 ALTER TABLE ONLY public.oauth_applications
2071     ADD CONSTRAINT oauth_applications_pkey PRIMARY KEY (id);
2072
2073
2074 --
2075 -- Name: oauth_nonces oauth_nonces_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2076 --
2077
2078 ALTER TABLE ONLY public.oauth_nonces
2079     ADD CONSTRAINT oauth_nonces_pkey PRIMARY KEY (id);
2080
2081
2082 --
2083 -- Name: oauth_openid_requests oauth_openid_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2084 --
2085
2086 ALTER TABLE ONLY public.oauth_openid_requests
2087     ADD CONSTRAINT oauth_openid_requests_pkey PRIMARY KEY (id);
2088
2089
2090 --
2091 -- Name: oauth_tokens oauth_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2092 --
2093
2094 ALTER TABLE ONLY public.oauth_tokens
2095     ADD CONSTRAINT oauth_tokens_pkey PRIMARY KEY (id);
2096
2097
2098 --
2099 -- Name: redactions redactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2100 --
2101
2102 ALTER TABLE ONLY public.redactions
2103     ADD CONSTRAINT redactions_pkey PRIMARY KEY (id);
2104
2105
2106 --
2107 -- Name: relation_members relation_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2108 --
2109
2110 ALTER TABLE ONLY public.relation_members
2111     ADD CONSTRAINT relation_members_pkey PRIMARY KEY (relation_id, version, sequence_id);
2112
2113
2114 --
2115 -- Name: relation_tags relation_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2116 --
2117
2118 ALTER TABLE ONLY public.relation_tags
2119     ADD CONSTRAINT relation_tags_pkey PRIMARY KEY (relation_id, version, k);
2120
2121
2122 --
2123 -- Name: relations relations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2124 --
2125
2126 ALTER TABLE ONLY public.relations
2127     ADD CONSTRAINT relations_pkey PRIMARY KEY (relation_id, version);
2128
2129
2130 --
2131 -- Name: reports reports_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2132 --
2133
2134 ALTER TABLE ONLY public.reports
2135     ADD CONSTRAINT reports_pkey PRIMARY KEY (id);
2136
2137
2138 --
2139 -- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2140 --
2141
2142 ALTER TABLE ONLY public.schema_migrations
2143     ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version);
2144
2145
2146 --
2147 -- Name: user_blocks user_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2148 --
2149
2150 ALTER TABLE ONLY public.user_blocks
2151     ADD CONSTRAINT user_blocks_pkey PRIMARY KEY (id);
2152
2153
2154 --
2155 -- Name: user_preferences user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2156 --
2157
2158 ALTER TABLE ONLY public.user_preferences
2159     ADD CONSTRAINT user_preferences_pkey PRIMARY KEY (user_id, k);
2160
2161
2162 --
2163 -- Name: user_roles user_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2164 --
2165
2166 ALTER TABLE ONLY public.user_roles
2167     ADD CONSTRAINT user_roles_pkey PRIMARY KEY (id);
2168
2169
2170 --
2171 -- Name: user_tokens user_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2172 --
2173
2174 ALTER TABLE ONLY public.user_tokens
2175     ADD CONSTRAINT user_tokens_pkey PRIMARY KEY (id);
2176
2177
2178 --
2179 -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2180 --
2181
2182 ALTER TABLE ONLY public.users
2183     ADD CONSTRAINT users_pkey PRIMARY KEY (id);
2184
2185
2186 --
2187 -- Name: way_nodes way_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2188 --
2189
2190 ALTER TABLE ONLY public.way_nodes
2191     ADD CONSTRAINT way_nodes_pkey PRIMARY KEY (way_id, version, sequence_id);
2192
2193
2194 --
2195 -- Name: way_tags way_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2196 --
2197
2198 ALTER TABLE ONLY public.way_tags
2199     ADD CONSTRAINT way_tags_pkey PRIMARY KEY (way_id, version, k);
2200
2201
2202 --
2203 -- Name: ways ways_pkey; Type: CONSTRAINT; Schema: public; Owner: -
2204 --
2205
2206 ALTER TABLE ONLY public.ways
2207     ADD CONSTRAINT ways_pkey PRIMARY KEY (way_id, version);
2208
2209
2210 --
2211 -- Name: acls_k_idx; Type: INDEX; Schema: public; Owner: -
2212 --
2213
2214 CREATE INDEX acls_k_idx ON public.acls USING btree (k);
2215
2216
2217 --
2218 -- Name: changesets_bbox_idx; Type: INDEX; Schema: public; Owner: -
2219 --
2220
2221 CREATE INDEX changesets_bbox_idx ON public.changesets USING gist (min_lat, max_lat, min_lon, max_lon);
2222
2223
2224 --
2225 -- Name: changesets_closed_at_idx; Type: INDEX; Schema: public; Owner: -
2226 --
2227
2228 CREATE INDEX changesets_closed_at_idx ON public.changesets USING btree (closed_at);
2229
2230
2231 --
2232 -- Name: changesets_created_at_idx; Type: INDEX; Schema: public; Owner: -
2233 --
2234
2235 CREATE INDEX changesets_created_at_idx ON public.changesets USING btree (created_at);
2236
2237
2238 --
2239 -- Name: changesets_user_id_created_at_idx; Type: INDEX; Schema: public; Owner: -
2240 --
2241
2242 CREATE INDEX changesets_user_id_created_at_idx ON public.changesets USING btree (user_id, created_at);
2243
2244
2245 --
2246 -- Name: changesets_user_id_id_idx; Type: INDEX; Schema: public; Owner: -
2247 --
2248
2249 CREATE INDEX changesets_user_id_id_idx ON public.changesets USING btree (user_id, id);
2250
2251
2252 --
2253 -- Name: current_nodes_tile_idx; Type: INDEX; Schema: public; Owner: -
2254 --
2255
2256 CREATE INDEX current_nodes_tile_idx ON public.current_nodes USING btree (tile);
2257
2258
2259 --
2260 -- Name: current_nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -
2261 --
2262
2263 CREATE INDEX current_nodes_timestamp_idx ON public.current_nodes USING btree ("timestamp");
2264
2265
2266 --
2267 -- Name: current_relation_members_member_idx; Type: INDEX; Schema: public; Owner: -
2268 --
2269
2270 CREATE INDEX current_relation_members_member_idx ON public.current_relation_members USING btree (member_type, member_id);
2271
2272
2273 --
2274 -- Name: current_relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -
2275 --
2276
2277 CREATE INDEX current_relations_timestamp_idx ON public.current_relations USING btree ("timestamp");
2278
2279
2280 --
2281 -- Name: current_way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -
2282 --
2283
2284 CREATE INDEX current_way_nodes_node_idx ON public.current_way_nodes USING btree (node_id);
2285
2286
2287 --
2288 -- Name: current_ways_timestamp_idx; Type: INDEX; Schema: public; Owner: -
2289 --
2290
2291 CREATE INDEX current_ways_timestamp_idx ON public.current_ways USING btree ("timestamp");
2292
2293
2294 --
2295 -- Name: delayed_jobs_priority; Type: INDEX; Schema: public; Owner: -
2296 --
2297
2298 CREATE INDEX delayed_jobs_priority ON public.delayed_jobs USING btree (priority, run_at);
2299
2300
2301 --
2302 -- Name: diary_comment_user_id_created_at_index; Type: INDEX; Schema: public; Owner: -
2303 --
2304
2305 CREATE INDEX diary_comment_user_id_created_at_index ON public.diary_comments USING btree (user_id, created_at);
2306
2307
2308 --
2309 -- Name: diary_comments_entry_id_idx; Type: INDEX; Schema: public; Owner: -
2310 --
2311
2312 CREATE UNIQUE INDEX diary_comments_entry_id_idx ON public.diary_comments USING btree (diary_entry_id, id);
2313
2314
2315 --
2316 -- Name: diary_entry_created_at_index; Type: INDEX; Schema: public; Owner: -
2317 --
2318
2319 CREATE INDEX diary_entry_created_at_index ON public.diary_entries USING btree (created_at);
2320
2321
2322 --
2323 -- Name: diary_entry_language_code_created_at_index; Type: INDEX; Schema: public; Owner: -
2324 --
2325
2326 CREATE INDEX diary_entry_language_code_created_at_index ON public.diary_entries USING btree (language_code, created_at);
2327
2328
2329 --
2330 -- Name: diary_entry_user_id_created_at_index; Type: INDEX; Schema: public; Owner: -
2331 --
2332
2333 CREATE INDEX diary_entry_user_id_created_at_index ON public.diary_entries USING btree (user_id, created_at);
2334
2335
2336 --
2337 -- Name: gpx_file_tags_gpxid_idx; Type: INDEX; Schema: public; Owner: -
2338 --
2339
2340 CREATE INDEX gpx_file_tags_gpxid_idx ON public.gpx_file_tags USING btree (gpx_id);
2341
2342
2343 --
2344 -- Name: gpx_file_tags_tag_idx; Type: INDEX; Schema: public; Owner: -
2345 --
2346
2347 CREATE INDEX gpx_file_tags_tag_idx ON public.gpx_file_tags USING btree (tag);
2348
2349
2350 --
2351 -- Name: gpx_files_timestamp_idx; Type: INDEX; Schema: public; Owner: -
2352 --
2353
2354 CREATE INDEX gpx_files_timestamp_idx ON public.gpx_files USING btree ("timestamp");
2355
2356
2357 --
2358 -- Name: gpx_files_user_id_idx; Type: INDEX; Schema: public; Owner: -
2359 --
2360
2361 CREATE INDEX gpx_files_user_id_idx ON public.gpx_files USING btree (user_id);
2362
2363
2364 --
2365 -- Name: gpx_files_visible_visibility_idx; Type: INDEX; Schema: public; Owner: -
2366 --
2367
2368 CREATE INDEX gpx_files_visible_visibility_idx ON public.gpx_files USING btree (visible, visibility);
2369
2370
2371 --
2372 -- Name: index_acls_on_address; Type: INDEX; Schema: public; Owner: -
2373 --
2374
2375 CREATE INDEX index_acls_on_address ON public.acls USING gist (address inet_ops);
2376
2377
2378 --
2379 -- Name: index_acls_on_domain; Type: INDEX; Schema: public; Owner: -
2380 --
2381
2382 CREATE INDEX index_acls_on_domain ON public.acls USING btree (domain);
2383
2384
2385 --
2386 -- Name: index_acls_on_mx; Type: INDEX; Schema: public; Owner: -
2387 --
2388
2389 CREATE INDEX index_acls_on_mx ON public.acls USING btree (mx);
2390
2391
2392 --
2393 -- Name: index_active_storage_attachments_on_blob_id; Type: INDEX; Schema: public; Owner: -
2394 --
2395
2396 CREATE INDEX index_active_storage_attachments_on_blob_id ON public.active_storage_attachments USING btree (blob_id);
2397
2398
2399 --
2400 -- Name: index_active_storage_attachments_uniqueness; Type: INDEX; Schema: public; Owner: -
2401 --
2402
2403 CREATE UNIQUE INDEX index_active_storage_attachments_uniqueness ON public.active_storage_attachments USING btree (record_type, record_id, name, blob_id);
2404
2405
2406 --
2407 -- Name: index_active_storage_blobs_on_key; Type: INDEX; Schema: public; Owner: -
2408 --
2409
2410 CREATE UNIQUE INDEX index_active_storage_blobs_on_key ON public.active_storage_blobs USING btree (key);
2411
2412
2413 --
2414 -- Name: index_active_storage_variant_records_uniqueness; Type: INDEX; Schema: public; Owner: -
2415 --
2416
2417 CREATE UNIQUE INDEX index_active_storage_variant_records_uniqueness ON public.active_storage_variant_records USING btree (blob_id, variation_digest);
2418
2419
2420 --
2421 -- Name: index_changeset_comments_on_author_id_and_created_at; Type: INDEX; Schema: public; Owner: -
2422 --
2423
2424 CREATE INDEX index_changeset_comments_on_author_id_and_created_at ON public.changeset_comments USING btree (author_id, created_at);
2425
2426
2427 --
2428 -- Name: index_changeset_comments_on_changeset_id_and_created_at; Type: INDEX; Schema: public; Owner: -
2429 --
2430
2431 CREATE INDEX index_changeset_comments_on_changeset_id_and_created_at ON public.changeset_comments USING btree (changeset_id, created_at);
2432
2433
2434 --
2435 -- Name: index_changeset_comments_on_created_at; Type: INDEX; Schema: public; Owner: -
2436 --
2437
2438 CREATE INDEX index_changeset_comments_on_created_at ON public.changeset_comments USING btree (created_at);
2439
2440
2441 --
2442 -- Name: index_changesets_subscribers_on_changeset_id; Type: INDEX; Schema: public; Owner: -
2443 --
2444
2445 CREATE INDEX index_changesets_subscribers_on_changeset_id ON public.changesets_subscribers USING btree (changeset_id);
2446
2447
2448 --
2449 -- Name: index_changesets_subscribers_on_subscriber_id_and_changeset_id; Type: INDEX; Schema: public; Owner: -
2450 --
2451
2452 CREATE UNIQUE INDEX index_changesets_subscribers_on_subscriber_id_and_changeset_id ON public.changesets_subscribers USING btree (subscriber_id, changeset_id);
2453
2454
2455 --
2456 -- Name: index_client_applications_on_key; Type: INDEX; Schema: public; Owner: -
2457 --
2458
2459 CREATE UNIQUE INDEX index_client_applications_on_key ON public.client_applications USING btree (key);
2460
2461
2462 --
2463 -- Name: index_client_applications_on_user_id; Type: INDEX; Schema: public; Owner: -
2464 --
2465
2466 CREATE INDEX index_client_applications_on_user_id ON public.client_applications USING btree (user_id);
2467
2468
2469 --
2470 -- Name: index_diary_entry_subscriptions_on_diary_entry_id; Type: INDEX; Schema: public; Owner: -
2471 --
2472
2473 CREATE INDEX index_diary_entry_subscriptions_on_diary_entry_id ON public.diary_entry_subscriptions USING btree (diary_entry_id);
2474
2475
2476 --
2477 -- Name: index_friends_on_user_id_and_created_at; Type: INDEX; Schema: public; Owner: -
2478 --
2479
2480 CREATE INDEX index_friends_on_user_id_and_created_at ON public.friends USING btree (user_id, created_at);
2481
2482
2483 --
2484 -- Name: index_issue_comments_on_issue_id; Type: INDEX; Schema: public; Owner: -
2485 --
2486
2487 CREATE INDEX index_issue_comments_on_issue_id ON public.issue_comments USING btree (issue_id);
2488
2489
2490 --
2491 -- Name: index_issue_comments_on_user_id; Type: INDEX; Schema: public; Owner: -
2492 --
2493
2494 CREATE INDEX index_issue_comments_on_user_id ON public.issue_comments USING btree (user_id);
2495
2496
2497 --
2498 -- Name: index_issues_on_assigned_role; Type: INDEX; Schema: public; Owner: -
2499 --
2500
2501 CREATE INDEX index_issues_on_assigned_role ON public.issues USING btree (assigned_role);
2502
2503
2504 --
2505 -- Name: index_issues_on_reportable_type_and_reportable_id; Type: INDEX; Schema: public; Owner: -
2506 --
2507
2508 CREATE INDEX index_issues_on_reportable_type_and_reportable_id ON public.issues USING btree (reportable_type, reportable_id);
2509
2510
2511 --
2512 -- Name: index_issues_on_reported_user_id; Type: INDEX; Schema: public; Owner: -
2513 --
2514
2515 CREATE INDEX index_issues_on_reported_user_id ON public.issues USING btree (reported_user_id);
2516
2517
2518 --
2519 -- Name: index_issues_on_status; Type: INDEX; Schema: public; Owner: -
2520 --
2521
2522 CREATE INDEX index_issues_on_status ON public.issues USING btree (status);
2523
2524
2525 --
2526 -- Name: index_issues_on_updated_by; Type: INDEX; Schema: public; Owner: -
2527 --
2528
2529 CREATE INDEX index_issues_on_updated_by ON public.issues USING btree (updated_by);
2530
2531
2532 --
2533 -- Name: index_note_comments_on_author_id_and_created_at; Type: INDEX; Schema: public; Owner: -
2534 --
2535
2536 CREATE INDEX index_note_comments_on_author_id_and_created_at ON public.note_comments USING btree (author_id, created_at);
2537
2538
2539 --
2540 -- Name: index_note_comments_on_body; Type: INDEX; Schema: public; Owner: -
2541 --
2542
2543 CREATE INDEX index_note_comments_on_body ON public.note_comments USING gin (to_tsvector('english'::regconfig, body));
2544
2545
2546 --
2547 -- Name: index_note_comments_on_created_at; Type: INDEX; Schema: public; Owner: -
2548 --
2549
2550 CREATE INDEX index_note_comments_on_created_at ON public.note_comments USING btree (created_at);
2551
2552
2553 --
2554 -- Name: index_oauth_access_grants_on_application_id; Type: INDEX; Schema: public; Owner: -
2555 --
2556
2557 CREATE INDEX index_oauth_access_grants_on_application_id ON public.oauth_access_grants USING btree (application_id);
2558
2559
2560 --
2561 -- Name: index_oauth_access_grants_on_resource_owner_id; Type: INDEX; Schema: public; Owner: -
2562 --
2563
2564 CREATE INDEX index_oauth_access_grants_on_resource_owner_id ON public.oauth_access_grants USING btree (resource_owner_id);
2565
2566
2567 --
2568 -- Name: index_oauth_access_grants_on_token; Type: INDEX; Schema: public; Owner: -
2569 --
2570
2571 CREATE UNIQUE INDEX index_oauth_access_grants_on_token ON public.oauth_access_grants USING btree (token);
2572
2573
2574 --
2575 -- Name: index_oauth_access_tokens_on_application_id; Type: INDEX; Schema: public; Owner: -
2576 --
2577
2578 CREATE INDEX index_oauth_access_tokens_on_application_id ON public.oauth_access_tokens USING btree (application_id);
2579
2580
2581 --
2582 -- Name: index_oauth_access_tokens_on_refresh_token; Type: INDEX; Schema: public; Owner: -
2583 --
2584
2585 CREATE UNIQUE INDEX index_oauth_access_tokens_on_refresh_token ON public.oauth_access_tokens USING btree (refresh_token);
2586
2587
2588 --
2589 -- Name: index_oauth_access_tokens_on_resource_owner_id; Type: INDEX; Schema: public; Owner: -
2590 --
2591
2592 CREATE INDEX index_oauth_access_tokens_on_resource_owner_id ON public.oauth_access_tokens USING btree (resource_owner_id);
2593
2594
2595 --
2596 -- Name: index_oauth_access_tokens_on_token; Type: INDEX; Schema: public; Owner: -
2597 --
2598
2599 CREATE UNIQUE INDEX index_oauth_access_tokens_on_token ON public.oauth_access_tokens USING btree (token);
2600
2601
2602 --
2603 -- Name: index_oauth_applications_on_owner_type_and_owner_id; Type: INDEX; Schema: public; Owner: -
2604 --
2605
2606 CREATE INDEX index_oauth_applications_on_owner_type_and_owner_id ON public.oauth_applications USING btree (owner_type, owner_id);
2607
2608
2609 --
2610 -- Name: index_oauth_applications_on_uid; Type: INDEX; Schema: public; Owner: -
2611 --
2612
2613 CREATE UNIQUE INDEX index_oauth_applications_on_uid ON public.oauth_applications USING btree (uid);
2614
2615
2616 --
2617 -- Name: index_oauth_nonces_on_nonce_and_timestamp; Type: INDEX; Schema: public; Owner: -
2618 --
2619
2620 CREATE UNIQUE INDEX index_oauth_nonces_on_nonce_and_timestamp ON public.oauth_nonces USING btree (nonce, "timestamp");
2621
2622
2623 --
2624 -- Name: index_oauth_openid_requests_on_access_grant_id; Type: INDEX; Schema: public; Owner: -
2625 --
2626
2627 CREATE INDEX index_oauth_openid_requests_on_access_grant_id ON public.oauth_openid_requests USING btree (access_grant_id);
2628
2629
2630 --
2631 -- Name: index_oauth_tokens_on_token; Type: INDEX; Schema: public; Owner: -
2632 --
2633
2634 CREATE UNIQUE INDEX index_oauth_tokens_on_token ON public.oauth_tokens USING btree (token);
2635
2636
2637 --
2638 -- Name: index_oauth_tokens_on_user_id; Type: INDEX; Schema: public; Owner: -
2639 --
2640
2641 CREATE INDEX index_oauth_tokens_on_user_id ON public.oauth_tokens USING btree (user_id);
2642
2643
2644 --
2645 -- Name: index_reports_on_issue_id; Type: INDEX; Schema: public; Owner: -
2646 --
2647
2648 CREATE INDEX index_reports_on_issue_id ON public.reports USING btree (issue_id);
2649
2650
2651 --
2652 -- Name: index_reports_on_user_id; Type: INDEX; Schema: public; Owner: -
2653 --
2654
2655 CREATE INDEX index_reports_on_user_id ON public.reports USING btree (user_id);
2656
2657
2658 --
2659 -- Name: index_user_blocks_on_user_id; Type: INDEX; Schema: public; Owner: -
2660 --
2661
2662 CREATE INDEX index_user_blocks_on_user_id ON public.user_blocks USING btree (user_id);
2663
2664
2665 --
2666 -- Name: messages_from_user_id_idx; Type: INDEX; Schema: public; Owner: -
2667 --
2668
2669 CREATE INDEX messages_from_user_id_idx ON public.messages USING btree (from_user_id);
2670
2671
2672 --
2673 -- Name: messages_to_user_id_idx; Type: INDEX; Schema: public; Owner: -
2674 --
2675
2676 CREATE INDEX messages_to_user_id_idx ON public.messages USING btree (to_user_id);
2677
2678
2679 --
2680 -- Name: nodes_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
2681 --
2682
2683 CREATE INDEX nodes_changeset_id_idx ON public.nodes USING btree (changeset_id);
2684
2685
2686 --
2687 -- Name: nodes_tile_idx; Type: INDEX; Schema: public; Owner: -
2688 --
2689
2690 CREATE INDEX nodes_tile_idx ON public.nodes USING btree (tile);
2691
2692
2693 --
2694 -- Name: nodes_timestamp_idx; Type: INDEX; Schema: public; Owner: -
2695 --
2696
2697 CREATE INDEX nodes_timestamp_idx ON public.nodes USING btree ("timestamp");
2698
2699
2700 --
2701 -- Name: note_comments_note_id_idx; Type: INDEX; Schema: public; Owner: -
2702 --
2703
2704 CREATE INDEX note_comments_note_id_idx ON public.note_comments USING btree (note_id);
2705
2706
2707 --
2708 -- Name: notes_created_at_idx; Type: INDEX; Schema: public; Owner: -
2709 --
2710
2711 CREATE INDEX notes_created_at_idx ON public.notes USING btree (created_at);
2712
2713
2714 --
2715 -- Name: notes_tile_status_idx; Type: INDEX; Schema: public; Owner: -
2716 --
2717
2718 CREATE INDEX notes_tile_status_idx ON public.notes USING btree (tile, status);
2719
2720
2721 --
2722 -- Name: notes_updated_at_idx; Type: INDEX; Schema: public; Owner: -
2723 --
2724
2725 CREATE INDEX notes_updated_at_idx ON public.notes USING btree (updated_at);
2726
2727
2728 --
2729 -- Name: points_gpxid_idx; Type: INDEX; Schema: public; Owner: -
2730 --
2731
2732 CREATE INDEX points_gpxid_idx ON public.gps_points USING btree (gpx_id);
2733
2734
2735 --
2736 -- Name: points_tile_idx; Type: INDEX; Schema: public; Owner: -
2737 --
2738
2739 CREATE INDEX points_tile_idx ON public.gps_points USING btree (tile);
2740
2741
2742 --
2743 -- Name: relation_members_member_idx; Type: INDEX; Schema: public; Owner: -
2744 --
2745
2746 CREATE INDEX relation_members_member_idx ON public.relation_members USING btree (member_type, member_id);
2747
2748
2749 --
2750 -- Name: relations_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
2751 --
2752
2753 CREATE INDEX relations_changeset_id_idx ON public.relations USING btree (changeset_id);
2754
2755
2756 --
2757 -- Name: relations_timestamp_idx; Type: INDEX; Schema: public; Owner: -
2758 --
2759
2760 CREATE INDEX relations_timestamp_idx ON public.relations USING btree ("timestamp");
2761
2762
2763 --
2764 -- Name: user_id_idx; Type: INDEX; Schema: public; Owner: -
2765 --
2766
2767 CREATE INDEX user_id_idx ON public.friends USING btree (friend_user_id);
2768
2769
2770 --
2771 -- Name: user_roles_id_role_unique; Type: INDEX; Schema: public; Owner: -
2772 --
2773
2774 CREATE UNIQUE INDEX user_roles_id_role_unique ON public.user_roles USING btree (user_id, role);
2775
2776
2777 --
2778 -- Name: user_tokens_token_idx; Type: INDEX; Schema: public; Owner: -
2779 --
2780
2781 CREATE UNIQUE INDEX user_tokens_token_idx ON public.user_tokens USING btree (token);
2782
2783
2784 --
2785 -- Name: user_tokens_user_id_idx; Type: INDEX; Schema: public; Owner: -
2786 --
2787
2788 CREATE INDEX user_tokens_user_id_idx ON public.user_tokens USING btree (user_id);
2789
2790
2791 --
2792 -- Name: users_auth_idx; Type: INDEX; Schema: public; Owner: -
2793 --
2794
2795 CREATE UNIQUE INDEX users_auth_idx ON public.users USING btree (auth_provider, auth_uid);
2796
2797
2798 --
2799 -- Name: users_display_name_idx; Type: INDEX; Schema: public; Owner: -
2800 --
2801
2802 CREATE UNIQUE INDEX users_display_name_idx ON public.users USING btree (display_name);
2803
2804
2805 --
2806 -- Name: users_display_name_lower_idx; Type: INDEX; Schema: public; Owner: -
2807 --
2808
2809 CREATE INDEX users_display_name_lower_idx ON public.users USING btree (lower((display_name)::text));
2810
2811
2812 --
2813 -- Name: users_email_idx; Type: INDEX; Schema: public; Owner: -
2814 --
2815
2816 CREATE UNIQUE INDEX users_email_idx ON public.users USING btree (email);
2817
2818
2819 --
2820 -- Name: users_email_lower_idx; Type: INDEX; Schema: public; Owner: -
2821 --
2822
2823 CREATE INDEX users_email_lower_idx ON public.users USING btree (lower((email)::text));
2824
2825
2826 --
2827 -- Name: users_home_idx; Type: INDEX; Schema: public; Owner: -
2828 --
2829
2830 CREATE INDEX users_home_idx ON public.users USING btree (home_tile);
2831
2832
2833 --
2834 -- Name: way_nodes_node_idx; Type: INDEX; Schema: public; Owner: -
2835 --
2836
2837 CREATE INDEX way_nodes_node_idx ON public.way_nodes USING btree (node_id);
2838
2839
2840 --
2841 -- Name: ways_changeset_id_idx; Type: INDEX; Schema: public; Owner: -
2842 --
2843
2844 CREATE INDEX ways_changeset_id_idx ON public.ways USING btree (changeset_id);
2845
2846
2847 --
2848 -- Name: ways_timestamp_idx; Type: INDEX; Schema: public; Owner: -
2849 --
2850
2851 CREATE INDEX ways_timestamp_idx ON public.ways USING btree ("timestamp");
2852
2853
2854 --
2855 -- Name: changeset_comments changeset_comments_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2856 --
2857
2858 ALTER TABLE ONLY public.changeset_comments
2859     ADD CONSTRAINT changeset_comments_author_id_fkey FOREIGN KEY (author_id) REFERENCES public.users(id);
2860
2861
2862 --
2863 -- Name: changeset_comments changeset_comments_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2864 --
2865
2866 ALTER TABLE ONLY public.changeset_comments
2867     ADD CONSTRAINT changeset_comments_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES public.changesets(id);
2868
2869
2870 --
2871 -- Name: changeset_tags changeset_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2872 --
2873
2874 ALTER TABLE ONLY public.changeset_tags
2875     ADD CONSTRAINT changeset_tags_id_fkey FOREIGN KEY (changeset_id) REFERENCES public.changesets(id);
2876
2877
2878 --
2879 -- Name: changesets_subscribers changesets_subscribers_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2880 --
2881
2882 ALTER TABLE ONLY public.changesets_subscribers
2883     ADD CONSTRAINT changesets_subscribers_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES public.changesets(id);
2884
2885
2886 --
2887 -- Name: changesets_subscribers changesets_subscribers_subscriber_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2888 --
2889
2890 ALTER TABLE ONLY public.changesets_subscribers
2891     ADD CONSTRAINT changesets_subscribers_subscriber_id_fkey FOREIGN KEY (subscriber_id) REFERENCES public.users(id);
2892
2893
2894 --
2895 -- Name: changesets changesets_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2896 --
2897
2898 ALTER TABLE ONLY public.changesets
2899     ADD CONSTRAINT changesets_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
2900
2901
2902 --
2903 -- Name: client_applications client_applications_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2904 --
2905
2906 ALTER TABLE ONLY public.client_applications
2907     ADD CONSTRAINT client_applications_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
2908
2909
2910 --
2911 -- Name: current_node_tags current_node_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2912 --
2913
2914 ALTER TABLE ONLY public.current_node_tags
2915     ADD CONSTRAINT current_node_tags_id_fkey FOREIGN KEY (node_id) REFERENCES public.current_nodes(id);
2916
2917
2918 --
2919 -- Name: current_nodes current_nodes_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2920 --
2921
2922 ALTER TABLE ONLY public.current_nodes
2923     ADD CONSTRAINT current_nodes_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES public.changesets(id);
2924
2925
2926 --
2927 -- Name: current_relation_members current_relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2928 --
2929
2930 ALTER TABLE ONLY public.current_relation_members
2931     ADD CONSTRAINT current_relation_members_id_fkey FOREIGN KEY (relation_id) REFERENCES public.current_relations(id);
2932
2933
2934 --
2935 -- Name: current_relation_tags current_relation_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2936 --
2937
2938 ALTER TABLE ONLY public.current_relation_tags
2939     ADD CONSTRAINT current_relation_tags_id_fkey FOREIGN KEY (relation_id) REFERENCES public.current_relations(id);
2940
2941
2942 --
2943 -- Name: current_relations current_relations_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2944 --
2945
2946 ALTER TABLE ONLY public.current_relations
2947     ADD CONSTRAINT current_relations_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES public.changesets(id);
2948
2949
2950 --
2951 -- Name: current_way_nodes current_way_nodes_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2952 --
2953
2954 ALTER TABLE ONLY public.current_way_nodes
2955     ADD CONSTRAINT current_way_nodes_id_fkey FOREIGN KEY (way_id) REFERENCES public.current_ways(id);
2956
2957
2958 --
2959 -- Name: current_way_nodes current_way_nodes_node_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2960 --
2961
2962 ALTER TABLE ONLY public.current_way_nodes
2963     ADD CONSTRAINT current_way_nodes_node_id_fkey FOREIGN KEY (node_id) REFERENCES public.current_nodes(id);
2964
2965
2966 --
2967 -- Name: current_way_tags current_way_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2968 --
2969
2970 ALTER TABLE ONLY public.current_way_tags
2971     ADD CONSTRAINT current_way_tags_id_fkey FOREIGN KEY (way_id) REFERENCES public.current_ways(id);
2972
2973
2974 --
2975 -- Name: current_ways current_ways_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2976 --
2977
2978 ALTER TABLE ONLY public.current_ways
2979     ADD CONSTRAINT current_ways_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES public.changesets(id);
2980
2981
2982 --
2983 -- Name: diary_comments diary_comments_diary_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2984 --
2985
2986 ALTER TABLE ONLY public.diary_comments
2987     ADD CONSTRAINT diary_comments_diary_entry_id_fkey FOREIGN KEY (diary_entry_id) REFERENCES public.diary_entries(id);
2988
2989
2990 --
2991 -- Name: diary_comments diary_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
2992 --
2993
2994 ALTER TABLE ONLY public.diary_comments
2995     ADD CONSTRAINT diary_comments_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
2996
2997
2998 --
2999 -- Name: diary_entries diary_entries_language_code_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3000 --
3001
3002 ALTER TABLE ONLY public.diary_entries
3003     ADD CONSTRAINT diary_entries_language_code_fkey FOREIGN KEY (language_code) REFERENCES public.languages(code);
3004
3005
3006 --
3007 -- Name: diary_entries diary_entries_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3008 --
3009
3010 ALTER TABLE ONLY public.diary_entries
3011     ADD CONSTRAINT diary_entries_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
3012
3013
3014 --
3015 -- Name: diary_entry_subscriptions diary_entry_subscriptions_diary_entry_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3016 --
3017
3018 ALTER TABLE ONLY public.diary_entry_subscriptions
3019     ADD CONSTRAINT diary_entry_subscriptions_diary_entry_id_fkey FOREIGN KEY (diary_entry_id) REFERENCES public.diary_entries(id);
3020
3021
3022 --
3023 -- Name: diary_entry_subscriptions diary_entry_subscriptions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3024 --
3025
3026 ALTER TABLE ONLY public.diary_entry_subscriptions
3027     ADD CONSTRAINT diary_entry_subscriptions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
3028
3029
3030 --
3031 -- Name: oauth_access_grants fk_rails_330c32d8d9; Type: FK CONSTRAINT; Schema: public; Owner: -
3032 --
3033
3034 ALTER TABLE ONLY public.oauth_access_grants
3035     ADD CONSTRAINT fk_rails_330c32d8d9 FOREIGN KEY (resource_owner_id) REFERENCES public.users(id) NOT VALID;
3036
3037
3038 --
3039 -- Name: oauth_access_tokens fk_rails_732cb83ab7; Type: FK CONSTRAINT; Schema: public; Owner: -
3040 --
3041
3042 ALTER TABLE ONLY public.oauth_access_tokens
3043     ADD CONSTRAINT fk_rails_732cb83ab7 FOREIGN KEY (application_id) REFERENCES public.oauth_applications(id) NOT VALID;
3044
3045
3046 --
3047 -- Name: oauth_openid_requests fk_rails_77114b3b09; Type: FK CONSTRAINT; Schema: public; Owner: -
3048 --
3049
3050 ALTER TABLE ONLY public.oauth_openid_requests
3051     ADD CONSTRAINT fk_rails_77114b3b09 FOREIGN KEY (access_grant_id) REFERENCES public.oauth_access_grants(id) ON DELETE CASCADE;
3052
3053
3054 --
3055 -- Name: active_storage_variant_records fk_rails_993965df05; Type: FK CONSTRAINT; Schema: public; Owner: -
3056 --
3057
3058 ALTER TABLE ONLY public.active_storage_variant_records
3059     ADD CONSTRAINT fk_rails_993965df05 FOREIGN KEY (blob_id) REFERENCES public.active_storage_blobs(id);
3060
3061
3062 --
3063 -- Name: oauth_access_grants fk_rails_b4b53e07b8; Type: FK CONSTRAINT; Schema: public; Owner: -
3064 --
3065
3066 ALTER TABLE ONLY public.oauth_access_grants
3067     ADD CONSTRAINT fk_rails_b4b53e07b8 FOREIGN KEY (application_id) REFERENCES public.oauth_applications(id) NOT VALID;
3068
3069
3070 --
3071 -- Name: active_storage_attachments fk_rails_c3b3935057; Type: FK CONSTRAINT; Schema: public; Owner: -
3072 --
3073
3074 ALTER TABLE ONLY public.active_storage_attachments
3075     ADD CONSTRAINT fk_rails_c3b3935057 FOREIGN KEY (blob_id) REFERENCES public.active_storage_blobs(id);
3076
3077
3078 --
3079 -- Name: oauth_applications fk_rails_cc886e315a; Type: FK CONSTRAINT; Schema: public; Owner: -
3080 --
3081
3082 ALTER TABLE ONLY public.oauth_applications
3083     ADD CONSTRAINT fk_rails_cc886e315a FOREIGN KEY (owner_id) REFERENCES public.users(id) NOT VALID;
3084
3085
3086 --
3087 -- Name: oauth_access_tokens fk_rails_ee63f25419; Type: FK CONSTRAINT; Schema: public; Owner: -
3088 --
3089
3090 ALTER TABLE ONLY public.oauth_access_tokens
3091     ADD CONSTRAINT fk_rails_ee63f25419 FOREIGN KEY (resource_owner_id) REFERENCES public.users(id) NOT VALID;
3092
3093
3094 --
3095 -- Name: friends friends_friend_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3096 --
3097
3098 ALTER TABLE ONLY public.friends
3099     ADD CONSTRAINT friends_friend_user_id_fkey FOREIGN KEY (friend_user_id) REFERENCES public.users(id);
3100
3101
3102 --
3103 -- Name: friends friends_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3104 --
3105
3106 ALTER TABLE ONLY public.friends
3107     ADD CONSTRAINT friends_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
3108
3109
3110 --
3111 -- Name: gps_points gps_points_gpx_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3112 --
3113
3114 ALTER TABLE ONLY public.gps_points
3115     ADD CONSTRAINT gps_points_gpx_id_fkey FOREIGN KEY (gpx_id) REFERENCES public.gpx_files(id);
3116
3117
3118 --
3119 -- Name: gpx_file_tags gpx_file_tags_gpx_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3120 --
3121
3122 ALTER TABLE ONLY public.gpx_file_tags
3123     ADD CONSTRAINT gpx_file_tags_gpx_id_fkey FOREIGN KEY (gpx_id) REFERENCES public.gpx_files(id);
3124
3125
3126 --
3127 -- Name: gpx_files gpx_files_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3128 --
3129
3130 ALTER TABLE ONLY public.gpx_files
3131     ADD CONSTRAINT gpx_files_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
3132
3133
3134 --
3135 -- Name: issue_comments issue_comments_issue_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3136 --
3137
3138 ALTER TABLE ONLY public.issue_comments
3139     ADD CONSTRAINT issue_comments_issue_id_fkey FOREIGN KEY (issue_id) REFERENCES public.issues(id);
3140
3141
3142 --
3143 -- Name: issue_comments issue_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3144 --
3145
3146 ALTER TABLE ONLY public.issue_comments
3147     ADD CONSTRAINT issue_comments_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
3148
3149
3150 --
3151 -- Name: issues issues_reported_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3152 --
3153
3154 ALTER TABLE ONLY public.issues
3155     ADD CONSTRAINT issues_reported_user_id_fkey FOREIGN KEY (reported_user_id) REFERENCES public.users(id);
3156
3157
3158 --
3159 -- Name: issues issues_resolved_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3160 --
3161
3162 ALTER TABLE ONLY public.issues
3163     ADD CONSTRAINT issues_resolved_by_fkey FOREIGN KEY (resolved_by) REFERENCES public.users(id);
3164
3165
3166 --
3167 -- Name: issues issues_updated_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3168 --
3169
3170 ALTER TABLE ONLY public.issues
3171     ADD CONSTRAINT issues_updated_by_fkey FOREIGN KEY (updated_by) REFERENCES public.users(id);
3172
3173
3174 --
3175 -- Name: messages messages_from_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3176 --
3177
3178 ALTER TABLE ONLY public.messages
3179     ADD CONSTRAINT messages_from_user_id_fkey FOREIGN KEY (from_user_id) REFERENCES public.users(id);
3180
3181
3182 --
3183 -- Name: messages messages_to_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3184 --
3185
3186 ALTER TABLE ONLY public.messages
3187     ADD CONSTRAINT messages_to_user_id_fkey FOREIGN KEY (to_user_id) REFERENCES public.users(id);
3188
3189
3190 --
3191 -- Name: node_tags node_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3192 --
3193
3194 ALTER TABLE ONLY public.node_tags
3195     ADD CONSTRAINT node_tags_id_fkey FOREIGN KEY (node_id, version) REFERENCES public.nodes(node_id, version);
3196
3197
3198 --
3199 -- Name: nodes nodes_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3200 --
3201
3202 ALTER TABLE ONLY public.nodes
3203     ADD CONSTRAINT nodes_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES public.changesets(id);
3204
3205
3206 --
3207 -- Name: nodes nodes_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3208 --
3209
3210 ALTER TABLE ONLY public.nodes
3211     ADD CONSTRAINT nodes_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES public.redactions(id);
3212
3213
3214 --
3215 -- Name: note_comments note_comments_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3216 --
3217
3218 ALTER TABLE ONLY public.note_comments
3219     ADD CONSTRAINT note_comments_author_id_fkey FOREIGN KEY (author_id) REFERENCES public.users(id);
3220
3221
3222 --
3223 -- Name: note_comments note_comments_note_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3224 --
3225
3226 ALTER TABLE ONLY public.note_comments
3227     ADD CONSTRAINT note_comments_note_id_fkey FOREIGN KEY (note_id) REFERENCES public.notes(id);
3228
3229
3230 --
3231 -- Name: oauth_tokens oauth_tokens_client_application_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3232 --
3233
3234 ALTER TABLE ONLY public.oauth_tokens
3235     ADD CONSTRAINT oauth_tokens_client_application_id_fkey FOREIGN KEY (client_application_id) REFERENCES public.client_applications(id);
3236
3237
3238 --
3239 -- Name: oauth_tokens oauth_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3240 --
3241
3242 ALTER TABLE ONLY public.oauth_tokens
3243     ADD CONSTRAINT oauth_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
3244
3245
3246 --
3247 -- Name: redactions redactions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3248 --
3249
3250 ALTER TABLE ONLY public.redactions
3251     ADD CONSTRAINT redactions_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
3252
3253
3254 --
3255 -- Name: relation_members relation_members_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3256 --
3257
3258 ALTER TABLE ONLY public.relation_members
3259     ADD CONSTRAINT relation_members_id_fkey FOREIGN KEY (relation_id, version) REFERENCES public.relations(relation_id, version);
3260
3261
3262 --
3263 -- Name: relation_tags relation_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3264 --
3265
3266 ALTER TABLE ONLY public.relation_tags
3267     ADD CONSTRAINT relation_tags_id_fkey FOREIGN KEY (relation_id, version) REFERENCES public.relations(relation_id, version);
3268
3269
3270 --
3271 -- Name: relations relations_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3272 --
3273
3274 ALTER TABLE ONLY public.relations
3275     ADD CONSTRAINT relations_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES public.changesets(id);
3276
3277
3278 --
3279 -- Name: relations relations_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3280 --
3281
3282 ALTER TABLE ONLY public.relations
3283     ADD CONSTRAINT relations_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES public.redactions(id);
3284
3285
3286 --
3287 -- Name: reports reports_issue_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3288 --
3289
3290 ALTER TABLE ONLY public.reports
3291     ADD CONSTRAINT reports_issue_id_fkey FOREIGN KEY (issue_id) REFERENCES public.issues(id);
3292
3293
3294 --
3295 -- Name: reports reports_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3296 --
3297
3298 ALTER TABLE ONLY public.reports
3299     ADD CONSTRAINT reports_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
3300
3301
3302 --
3303 -- Name: user_blocks user_blocks_moderator_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3304 --
3305
3306 ALTER TABLE ONLY public.user_blocks
3307     ADD CONSTRAINT user_blocks_moderator_id_fkey FOREIGN KEY (creator_id) REFERENCES public.users(id);
3308
3309
3310 --
3311 -- Name: user_blocks user_blocks_revoker_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3312 --
3313
3314 ALTER TABLE ONLY public.user_blocks
3315     ADD CONSTRAINT user_blocks_revoker_id_fkey FOREIGN KEY (revoker_id) REFERENCES public.users(id);
3316
3317
3318 --
3319 -- Name: user_blocks user_blocks_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3320 --
3321
3322 ALTER TABLE ONLY public.user_blocks
3323     ADD CONSTRAINT user_blocks_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
3324
3325
3326 --
3327 -- Name: user_preferences user_preferences_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3328 --
3329
3330 ALTER TABLE ONLY public.user_preferences
3331     ADD CONSTRAINT user_preferences_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
3332
3333
3334 --
3335 -- Name: user_roles user_roles_granter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3336 --
3337
3338 ALTER TABLE ONLY public.user_roles
3339     ADD CONSTRAINT user_roles_granter_id_fkey FOREIGN KEY (granter_id) REFERENCES public.users(id);
3340
3341
3342 --
3343 -- Name: user_roles user_roles_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3344 --
3345
3346 ALTER TABLE ONLY public.user_roles
3347     ADD CONSTRAINT user_roles_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
3348
3349
3350 --
3351 -- Name: user_tokens user_tokens_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3352 --
3353
3354 ALTER TABLE ONLY public.user_tokens
3355     ADD CONSTRAINT user_tokens_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
3356
3357
3358 --
3359 -- Name: way_nodes way_nodes_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3360 --
3361
3362 ALTER TABLE ONLY public.way_nodes
3363     ADD CONSTRAINT way_nodes_id_fkey FOREIGN KEY (way_id, version) REFERENCES public.ways(way_id, version);
3364
3365
3366 --
3367 -- Name: way_tags way_tags_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3368 --
3369
3370 ALTER TABLE ONLY public.way_tags
3371     ADD CONSTRAINT way_tags_id_fkey FOREIGN KEY (way_id, version) REFERENCES public.ways(way_id, version);
3372
3373
3374 --
3375 -- Name: ways ways_changeset_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3376 --
3377
3378 ALTER TABLE ONLY public.ways
3379     ADD CONSTRAINT ways_changeset_id_fkey FOREIGN KEY (changeset_id) REFERENCES public.changesets(id);
3380
3381
3382 --
3383 -- Name: ways ways_redaction_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
3384 --
3385
3386 ALTER TABLE ONLY public.ways
3387     ADD CONSTRAINT ways_redaction_id_fkey FOREIGN KEY (redaction_id) REFERENCES public.redactions(id);
3388
3389
3390 --
3391 -- PostgreSQL database dump complete
3392 --
3393
3394 SET search_path TO "$user", public;
3395
3396 INSERT INTO "schema_migrations" (version) VALUES
3397 ('9'),
3398 ('8'),
3399 ('7'),
3400 ('6'),
3401 ('57'),
3402 ('56'),
3403 ('55'),
3404 ('54'),
3405 ('53'),
3406 ('52'),
3407 ('51'),
3408 ('50'),
3409 ('5'),
3410 ('49'),
3411 ('48'),
3412 ('47'),
3413 ('46'),
3414 ('45'),
3415 ('44'),
3416 ('43'),
3417 ('42'),
3418 ('41'),
3419 ('40'),
3420 ('4'),
3421 ('39'),
3422 ('38'),
3423 ('37'),
3424 ('36'),
3425 ('35'),
3426 ('34'),
3427 ('33'),
3428 ('32'),
3429 ('31'),
3430 ('30'),
3431 ('3'),
3432 ('29'),
3433 ('28'),
3434 ('27'),
3435 ('26'),
3436 ('25'),
3437 ('24'),
3438 ('23'),
3439 ('22'),
3440 ('21'),
3441 ('20231029151516'),
3442 ('20231010194809'),
3443 ('20231007141103'),
3444 ('20230830115220'),
3445 ('20230830115219'),
3446 ('20230825162137'),
3447 ('20230816135800'),
3448 ('20220223140543'),
3449 ('20220201183346'),
3450 ('20211216185316'),
3451 ('20210511104518'),
3452 ('20210510083028'),
3453 ('20210510083027'),
3454 ('20201214144017'),
3455 ('20201006220807'),
3456 ('20201006213836'),
3457 ('20201004105659'),
3458 ('20191120140058'),
3459 ('20190716173946'),
3460 ('20190702193519'),
3461 ('20190623093642'),
3462 ('20190518115041'),
3463 ('20181031113522'),
3464 ('20181020114000'),
3465 ('20180204153242'),
3466 ('20170222134109'),
3467 ('20161011010929'),
3468 ('20161002153425'),
3469 ('20160822153055'),
3470 ('20150818224516'),
3471 ('20150222101847'),
3472 ('20150111192335'),
3473 ('20150110152606'),
3474 ('20140519141742'),
3475 ('20140507110937'),
3476 ('20140210003018'),
3477 ('20140117185510'),
3478 ('20140115192822'),
3479 ('20131212124700'),
3480 ('20130328184137'),
3481 ('20121203124841'),
3482 ('20121202155309'),
3483 ('20121119165817'),
3484 ('20121012044047'),
3485 ('20121005195010'),
3486 ('20120808231205'),
3487 ('20120404205604'),
3488 ('20120328090602'),
3489 ('20120318201948'),
3490 ('20120219161649'),
3491 ('20120214210114'),
3492 ('20120208194454'),
3493 ('20120208122334'),
3494 ('20120123184321'),
3495 ('20111212183945'),
3496 ('20111116184519'),
3497 ('20110925112722'),
3498 ('20110521142405'),
3499 ('20110508145337'),
3500 ('20110322001319'),
3501 ('20101114011429'),
3502 ('20100910084426'),
3503 ('20100516124737'),
3504 ('20100513171259'),
3505 ('20'),
3506 ('2'),
3507 ('19'),
3508 ('18'),
3509 ('17'),
3510 ('16'),
3511 ('15'),
3512 ('14'),
3513 ('13'),
3514 ('12'),
3515 ('11'),
3516 ('10'),
3517 ('1');