6138: Added --domain to set ARVADOS_DOMAIN. Removed useless comments in apache2_vhos...
[arvados.git] / services / api / db / structure.sql
1 --
2 -- PostgreSQL database dump
3 --
4
5 SET statement_timeout = 0;
6 SET client_encoding = 'UTF8';
7 SET standard_conforming_strings = on;
8 SET check_function_bodies = false;
9 SET client_min_messages = warning;
10
11 --
12 -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
13 --
14
15 CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
16
17
18 --
19 -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
20 --
21
22 COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
23
24
25 SET search_path = public, pg_catalog;
26
27 SET default_tablespace = '';
28
29 SET default_with_oids = false;
30
31 --
32 -- Name: api_client_authorizations; Type: TABLE; Schema: public; Owner: -; Tablespace: 
33 --
34
35 CREATE TABLE api_client_authorizations (
36     id integer NOT NULL,
37     api_token character varying(255) NOT NULL,
38     api_client_id integer NOT NULL,
39     user_id integer NOT NULL,
40     created_by_ip_address character varying(255),
41     last_used_by_ip_address character varying(255),
42     last_used_at timestamp without time zone,
43     expires_at timestamp without time zone,
44     created_at timestamp without time zone NOT NULL,
45     updated_at timestamp without time zone NOT NULL,
46     default_owner_uuid character varying(255),
47     scopes text DEFAULT '---
48 - all
49 '::text NOT NULL
50 );
51
52
53 --
54 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
55 --
56
57 CREATE SEQUENCE api_client_authorizations_id_seq
58     START WITH 1
59     INCREMENT BY 1
60     NO MINVALUE
61     NO MAXVALUE
62     CACHE 1;
63
64
65 --
66 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
67 --
68
69 ALTER SEQUENCE api_client_authorizations_id_seq OWNED BY api_client_authorizations.id;
70
71
72 --
73 -- Name: api_clients; Type: TABLE; Schema: public; Owner: -; Tablespace: 
74 --
75
76 CREATE TABLE api_clients (
77     id integer NOT NULL,
78     uuid character varying(255),
79     owner_uuid character varying(255),
80     modified_by_client_uuid character varying(255),
81     modified_by_user_uuid character varying(255),
82     modified_at timestamp without time zone,
83     name character varying(255),
84     url_prefix character varying(255),
85     created_at timestamp without time zone NOT NULL,
86     updated_at timestamp without time zone NOT NULL,
87     is_trusted boolean DEFAULT false
88 );
89
90
91 --
92 -- Name: api_clients_id_seq; Type: SEQUENCE; Schema: public; Owner: -
93 --
94
95 CREATE SEQUENCE api_clients_id_seq
96     START WITH 1
97     INCREMENT BY 1
98     NO MINVALUE
99     NO MAXVALUE
100     CACHE 1;
101
102
103 --
104 -- Name: api_clients_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
105 --
106
107 ALTER SEQUENCE api_clients_id_seq OWNED BY api_clients.id;
108
109
110 --
111 -- Name: authorized_keys; Type: TABLE; Schema: public; Owner: -; Tablespace: 
112 --
113
114 CREATE TABLE authorized_keys (
115     id integer NOT NULL,
116     uuid character varying(255) NOT NULL,
117     owner_uuid character varying(255) NOT NULL,
118     modified_by_client_uuid character varying(255),
119     modified_by_user_uuid character varying(255),
120     modified_at timestamp without time zone,
121     name character varying(255),
122     key_type character varying(255),
123     authorized_user_uuid character varying(255),
124     public_key text,
125     expires_at timestamp without time zone,
126     created_at timestamp without time zone NOT NULL,
127     updated_at timestamp without time zone NOT NULL
128 );
129
130
131 --
132 -- Name: authorized_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: -
133 --
134
135 CREATE SEQUENCE authorized_keys_id_seq
136     START WITH 1
137     INCREMENT BY 1
138     NO MINVALUE
139     NO MAXVALUE
140     CACHE 1;
141
142
143 --
144 -- Name: authorized_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
145 --
146
147 ALTER SEQUENCE authorized_keys_id_seq OWNED BY authorized_keys.id;
148
149
150 --
151 -- Name: collections; Type: TABLE; Schema: public; Owner: -; Tablespace: 
152 --
153
154 CREATE TABLE collections (
155     id integer NOT NULL,
156     owner_uuid character varying(255),
157     created_at timestamp without time zone NOT NULL,
158     modified_by_client_uuid character varying(255),
159     modified_by_user_uuid character varying(255),
160     modified_at timestamp without time zone,
161     portable_data_hash character varying(255),
162     replication_desired integer,
163     replication_confirmed_at timestamp without time zone,
164     replication_confirmed integer,
165     updated_at timestamp without time zone NOT NULL,
166     uuid character varying(255),
167     manifest_text text,
168     name character varying(255),
169     description character varying(524288),
170     properties text,
171     expires_at timestamp without time zone,
172     file_names character varying(8192)
173 );
174
175
176 --
177 -- Name: collections_id_seq; Type: SEQUENCE; Schema: public; Owner: -
178 --
179
180 CREATE SEQUENCE collections_id_seq
181     START WITH 1
182     INCREMENT BY 1
183     NO MINVALUE
184     NO MAXVALUE
185     CACHE 1;
186
187
188 --
189 -- Name: collections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
190 --
191
192 ALTER SEQUENCE collections_id_seq OWNED BY collections.id;
193
194
195 --
196 -- Name: commit_ancestors; Type: TABLE; Schema: public; Owner: -; Tablespace: 
197 --
198
199 CREATE TABLE commit_ancestors (
200     id integer NOT NULL,
201     repository_name character varying(255),
202     descendant character varying(255) NOT NULL,
203     ancestor character varying(255) NOT NULL,
204     "is" boolean DEFAULT false NOT NULL,
205     created_at timestamp without time zone NOT NULL,
206     updated_at timestamp without time zone NOT NULL
207 );
208
209
210 --
211 -- Name: commit_ancestors_id_seq; Type: SEQUENCE; Schema: public; Owner: -
212 --
213
214 CREATE SEQUENCE commit_ancestors_id_seq
215     START WITH 1
216     INCREMENT BY 1
217     NO MINVALUE
218     NO MAXVALUE
219     CACHE 1;
220
221
222 --
223 -- Name: commit_ancestors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
224 --
225
226 ALTER SEQUENCE commit_ancestors_id_seq OWNED BY commit_ancestors.id;
227
228
229 --
230 -- Name: commits; Type: TABLE; Schema: public; Owner: -; Tablespace: 
231 --
232
233 CREATE TABLE commits (
234     id integer NOT NULL,
235     repository_name character varying(255),
236     sha1 character varying(255),
237     message character varying(255),
238     created_at timestamp without time zone NOT NULL,
239     updated_at timestamp without time zone NOT NULL
240 );
241
242
243 --
244 -- Name: commits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
245 --
246
247 CREATE SEQUENCE commits_id_seq
248     START WITH 1
249     INCREMENT BY 1
250     NO MINVALUE
251     NO MAXVALUE
252     CACHE 1;
253
254
255 --
256 -- Name: commits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
257 --
258
259 ALTER SEQUENCE commits_id_seq OWNED BY commits.id;
260
261
262 --
263 -- Name: groups; Type: TABLE; Schema: public; Owner: -; Tablespace: 
264 --
265
266 CREATE TABLE groups (
267     id integer NOT NULL,
268     uuid character varying(255),
269     owner_uuid character varying(255),
270     created_at timestamp without time zone NOT NULL,
271     modified_by_client_uuid character varying(255),
272     modified_by_user_uuid character varying(255),
273     modified_at timestamp without time zone,
274     name character varying(255) NOT NULL,
275     description character varying(524288),
276     updated_at timestamp without time zone NOT NULL,
277     group_class character varying(255)
278 );
279
280
281 --
282 -- Name: groups_id_seq; Type: SEQUENCE; Schema: public; Owner: -
283 --
284
285 CREATE SEQUENCE groups_id_seq
286     START WITH 1
287     INCREMENT BY 1
288     NO MINVALUE
289     NO MAXVALUE
290     CACHE 1;
291
292
293 --
294 -- Name: groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
295 --
296
297 ALTER SEQUENCE groups_id_seq OWNED BY groups.id;
298
299
300 --
301 -- Name: humans; Type: TABLE; Schema: public; Owner: -; Tablespace: 
302 --
303
304 CREATE TABLE humans (
305     id integer NOT NULL,
306     uuid character varying(255) NOT NULL,
307     owner_uuid character varying(255) NOT NULL,
308     modified_by_client_uuid character varying(255),
309     modified_by_user_uuid character varying(255),
310     modified_at timestamp without time zone,
311     properties text,
312     created_at timestamp without time zone NOT NULL,
313     updated_at timestamp without time zone NOT NULL
314 );
315
316
317 --
318 -- Name: humans_id_seq; Type: SEQUENCE; Schema: public; Owner: -
319 --
320
321 CREATE SEQUENCE humans_id_seq
322     START WITH 1
323     INCREMENT BY 1
324     NO MINVALUE
325     NO MAXVALUE
326     CACHE 1;
327
328
329 --
330 -- Name: humans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
331 --
332
333 ALTER SEQUENCE humans_id_seq OWNED BY humans.id;
334
335
336 --
337 -- Name: job_tasks; Type: TABLE; Schema: public; Owner: -; Tablespace: 
338 --
339
340 CREATE TABLE job_tasks (
341     id integer NOT NULL,
342     uuid character varying(255),
343     owner_uuid character varying(255),
344     modified_by_client_uuid character varying(255),
345     modified_by_user_uuid character varying(255),
346     modified_at timestamp without time zone,
347     job_uuid character varying(255),
348     sequence integer,
349     parameters text,
350     output text,
351     progress double precision,
352     success boolean,
353     created_at timestamp without time zone NOT NULL,
354     updated_at timestamp without time zone NOT NULL,
355     created_by_job_task_uuid character varying(255),
356     qsequence bigint,
357     started_at timestamp without time zone,
358     finished_at timestamp without time zone
359 );
360
361
362 --
363 -- Name: job_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
364 --
365
366 CREATE SEQUENCE job_tasks_id_seq
367     START WITH 1
368     INCREMENT BY 1
369     NO MINVALUE
370     NO MAXVALUE
371     CACHE 1;
372
373
374 --
375 -- Name: job_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
376 --
377
378 ALTER SEQUENCE job_tasks_id_seq OWNED BY job_tasks.id;
379
380
381 --
382 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE; Schema: public; Owner: -
383 --
384
385 CREATE SEQUENCE job_tasks_qsequence_seq
386     START WITH 1
387     INCREMENT BY 1
388     NO MINVALUE
389     NO MAXVALUE
390     CACHE 1;
391
392
393 --
394 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
395 --
396
397 ALTER SEQUENCE job_tasks_qsequence_seq OWNED BY job_tasks.qsequence;
398
399
400 --
401 -- Name: jobs; Type: TABLE; Schema: public; Owner: -; Tablespace: 
402 --
403
404 CREATE TABLE jobs (
405     id integer NOT NULL,
406     uuid character varying(255),
407     owner_uuid character varying(255),
408     modified_by_client_uuid character varying(255),
409     modified_by_user_uuid character varying(255),
410     modified_at timestamp without time zone,
411     submit_id character varying(255),
412     script character varying(255),
413     script_version character varying(255),
414     script_parameters text,
415     cancelled_by_client_uuid character varying(255),
416     cancelled_by_user_uuid character varying(255),
417     cancelled_at timestamp without time zone,
418     started_at timestamp without time zone,
419     finished_at timestamp without time zone,
420     running boolean,
421     success boolean,
422     output character varying(255),
423     created_at timestamp without time zone NOT NULL,
424     updated_at timestamp without time zone NOT NULL,
425     is_locked_by_uuid character varying(255),
426     log character varying(255),
427     tasks_summary text,
428     runtime_constraints text,
429     nondeterministic boolean,
430     repository character varying(255),
431     supplied_script_version character varying(255),
432     docker_image_locator character varying(255),
433     priority integer DEFAULT 0 NOT NULL,
434     description character varying(524288),
435     state character varying(255),
436     arvados_sdk_version character varying(255)
437 );
438
439
440 --
441 -- Name: jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
442 --
443
444 CREATE SEQUENCE jobs_id_seq
445     START WITH 1
446     INCREMENT BY 1
447     NO MINVALUE
448     NO MAXVALUE
449     CACHE 1;
450
451
452 --
453 -- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
454 --
455
456 ALTER SEQUENCE jobs_id_seq OWNED BY jobs.id;
457
458
459 --
460 -- Name: keep_disks; Type: TABLE; Schema: public; Owner: -; Tablespace: 
461 --
462
463 CREATE TABLE keep_disks (
464     id integer NOT NULL,
465     uuid character varying(255) NOT NULL,
466     owner_uuid character varying(255) NOT NULL,
467     modified_by_client_uuid character varying(255),
468     modified_by_user_uuid character varying(255),
469     modified_at timestamp without time zone,
470     ping_secret character varying(255) NOT NULL,
471     node_uuid character varying(255),
472     filesystem_uuid character varying(255),
473     bytes_total integer,
474     bytes_free integer,
475     is_readable boolean DEFAULT true NOT NULL,
476     is_writable boolean DEFAULT true NOT NULL,
477     last_read_at timestamp without time zone,
478     last_write_at timestamp without time zone,
479     last_ping_at timestamp without time zone,
480     created_at timestamp without time zone NOT NULL,
481     updated_at timestamp without time zone NOT NULL,
482     keep_service_uuid character varying(255)
483 );
484
485
486 --
487 -- Name: keep_disks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
488 --
489
490 CREATE SEQUENCE keep_disks_id_seq
491     START WITH 1
492     INCREMENT BY 1
493     NO MINVALUE
494     NO MAXVALUE
495     CACHE 1;
496
497
498 --
499 -- Name: keep_disks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
500 --
501
502 ALTER SEQUENCE keep_disks_id_seq OWNED BY keep_disks.id;
503
504
505 --
506 -- Name: keep_services; Type: TABLE; Schema: public; Owner: -; Tablespace: 
507 --
508
509 CREATE TABLE keep_services (
510     id integer NOT NULL,
511     uuid character varying(255) NOT NULL,
512     owner_uuid character varying(255) NOT NULL,
513     modified_by_client_uuid character varying(255),
514     modified_by_user_uuid character varying(255),
515     modified_at timestamp without time zone,
516     service_host character varying(255),
517     service_port integer,
518     service_ssl_flag boolean,
519     service_type character varying(255),
520     created_at timestamp without time zone NOT NULL,
521     updated_at timestamp without time zone NOT NULL,
522     read_only boolean DEFAULT false NOT NULL
523 );
524
525
526 --
527 -- Name: keep_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
528 --
529
530 CREATE SEQUENCE keep_services_id_seq
531     START WITH 1
532     INCREMENT BY 1
533     NO MINVALUE
534     NO MAXVALUE
535     CACHE 1;
536
537
538 --
539 -- Name: keep_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
540 --
541
542 ALTER SEQUENCE keep_services_id_seq OWNED BY keep_services.id;
543
544
545 --
546 -- Name: links; Type: TABLE; Schema: public; Owner: -; Tablespace: 
547 --
548
549 CREATE TABLE links (
550     id integer NOT NULL,
551     uuid character varying(255),
552     owner_uuid character varying(255),
553     created_at timestamp without time zone NOT NULL,
554     modified_by_client_uuid character varying(255),
555     modified_by_user_uuid character varying(255),
556     modified_at timestamp without time zone,
557     tail_uuid character varying(255),
558     link_class character varying(255),
559     name character varying(255),
560     head_uuid character varying(255),
561     properties text,
562     updated_at timestamp without time zone NOT NULL
563 );
564
565
566 --
567 -- Name: links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
568 --
569
570 CREATE SEQUENCE links_id_seq
571     START WITH 1
572     INCREMENT BY 1
573     NO MINVALUE
574     NO MAXVALUE
575     CACHE 1;
576
577
578 --
579 -- Name: links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
580 --
581
582 ALTER SEQUENCE links_id_seq OWNED BY links.id;
583
584
585 --
586 -- Name: logs; Type: TABLE; Schema: public; Owner: -; Tablespace: 
587 --
588
589 CREATE TABLE logs (
590     id integer NOT NULL,
591     uuid character varying(255),
592     owner_uuid character varying(255),
593     modified_by_client_uuid character varying(255),
594     modified_by_user_uuid character varying(255),
595     object_uuid character varying(255),
596     event_at timestamp without time zone,
597     event_type character varying(255),
598     summary text,
599     properties text,
600     created_at timestamp without time zone NOT NULL,
601     updated_at timestamp without time zone NOT NULL,
602     modified_at timestamp without time zone,
603     object_owner_uuid character varying(255)
604 );
605
606
607 --
608 -- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
609 --
610
611 CREATE SEQUENCE logs_id_seq
612     START WITH 1
613     INCREMENT BY 1
614     NO MINVALUE
615     NO MAXVALUE
616     CACHE 1;
617
618
619 --
620 -- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
621 --
622
623 ALTER SEQUENCE logs_id_seq OWNED BY logs.id;
624
625
626 --
627 -- Name: nodes; Type: TABLE; Schema: public; Owner: -; Tablespace: 
628 --
629
630 CREATE TABLE nodes (
631     id integer NOT NULL,
632     uuid character varying(255),
633     owner_uuid character varying(255),
634     created_at timestamp without time zone NOT NULL,
635     modified_by_client_uuid character varying(255),
636     modified_by_user_uuid character varying(255),
637     modified_at timestamp without time zone,
638     slot_number integer,
639     hostname character varying(255),
640     domain character varying(255),
641     ip_address character varying(255),
642     first_ping_at timestamp without time zone,
643     last_ping_at timestamp without time zone,
644     info text,
645     updated_at timestamp without time zone NOT NULL,
646     properties text,
647     job_uuid character varying(255)
648 );
649
650
651 --
652 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
653 --
654
655 CREATE SEQUENCE nodes_id_seq
656     START WITH 1
657     INCREMENT BY 1
658     NO MINVALUE
659     NO MAXVALUE
660     CACHE 1;
661
662
663 --
664 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
665 --
666
667 ALTER SEQUENCE nodes_id_seq OWNED BY nodes.id;
668
669
670 --
671 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -; Tablespace: 
672 --
673
674 CREATE TABLE pipeline_instances (
675     id integer NOT NULL,
676     uuid character varying(255),
677     owner_uuid character varying(255),
678     created_at timestamp without time zone NOT NULL,
679     modified_by_client_uuid character varying(255),
680     modified_by_user_uuid character varying(255),
681     modified_at timestamp without time zone,
682     pipeline_template_uuid character varying(255),
683     name character varying(255),
684     components text,
685     updated_at timestamp without time zone NOT NULL,
686     properties text,
687     state character varying(255),
688     components_summary text,
689     started_at timestamp without time zone,
690     finished_at timestamp without time zone,
691     description character varying(524288)
692 );
693
694
695 --
696 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
697 --
698
699 CREATE SEQUENCE pipeline_instances_id_seq
700     START WITH 1
701     INCREMENT BY 1
702     NO MINVALUE
703     NO MAXVALUE
704     CACHE 1;
705
706
707 --
708 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
709 --
710
711 ALTER SEQUENCE pipeline_instances_id_seq OWNED BY pipeline_instances.id;
712
713
714 --
715 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -; Tablespace: 
716 --
717
718 CREATE TABLE pipeline_templates (
719     id integer NOT NULL,
720     uuid character varying(255),
721     owner_uuid character varying(255),
722     created_at timestamp without time zone NOT NULL,
723     modified_by_client_uuid character varying(255),
724     modified_by_user_uuid character varying(255),
725     modified_at timestamp without time zone,
726     name character varying(255),
727     components text,
728     updated_at timestamp without time zone NOT NULL,
729     description character varying(524288)
730 );
731
732
733 --
734 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
735 --
736
737 CREATE SEQUENCE pipeline_templates_id_seq
738     START WITH 1
739     INCREMENT BY 1
740     NO MINVALUE
741     NO MAXVALUE
742     CACHE 1;
743
744
745 --
746 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
747 --
748
749 ALTER SEQUENCE pipeline_templates_id_seq OWNED BY pipeline_templates.id;
750
751
752 --
753 -- Name: repositories; Type: TABLE; Schema: public; Owner: -; Tablespace: 
754 --
755
756 CREATE TABLE repositories (
757     id integer NOT NULL,
758     uuid character varying(255) NOT NULL,
759     owner_uuid character varying(255) NOT NULL,
760     modified_by_client_uuid character varying(255),
761     modified_by_user_uuid character varying(255),
762     modified_at timestamp without time zone,
763     name character varying(255),
764     created_at timestamp without time zone NOT NULL,
765     updated_at timestamp without time zone NOT NULL
766 );
767
768
769 --
770 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
771 --
772
773 CREATE SEQUENCE repositories_id_seq
774     START WITH 1
775     INCREMENT BY 1
776     NO MINVALUE
777     NO MAXVALUE
778     CACHE 1;
779
780
781 --
782 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
783 --
784
785 ALTER SEQUENCE repositories_id_seq OWNED BY repositories.id;
786
787
788 --
789 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace: 
790 --
791
792 CREATE TABLE schema_migrations (
793     version character varying(255) NOT NULL
794 );
795
796
797 --
798 -- Name: specimens; Type: TABLE; Schema: public; Owner: -; Tablespace: 
799 --
800
801 CREATE TABLE specimens (
802     id integer NOT NULL,
803     uuid character varying(255),
804     owner_uuid character varying(255),
805     created_at timestamp without time zone NOT NULL,
806     modified_by_client_uuid character varying(255),
807     modified_by_user_uuid character varying(255),
808     modified_at timestamp without time zone,
809     material character varying(255),
810     updated_at timestamp without time zone NOT NULL,
811     properties text
812 );
813
814
815 --
816 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
817 --
818
819 CREATE SEQUENCE specimens_id_seq
820     START WITH 1
821     INCREMENT BY 1
822     NO MINVALUE
823     NO MAXVALUE
824     CACHE 1;
825
826
827 --
828 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
829 --
830
831 ALTER SEQUENCE specimens_id_seq OWNED BY specimens.id;
832
833
834 --
835 -- Name: traits; Type: TABLE; Schema: public; Owner: -; Tablespace: 
836 --
837
838 CREATE TABLE traits (
839     id integer NOT NULL,
840     uuid character varying(255) NOT NULL,
841     owner_uuid character varying(255) NOT NULL,
842     modified_by_client_uuid character varying(255),
843     modified_by_user_uuid character varying(255),
844     modified_at timestamp without time zone,
845     name character varying(255),
846     properties text,
847     created_at timestamp without time zone NOT NULL,
848     updated_at timestamp without time zone NOT NULL
849 );
850
851
852 --
853 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
854 --
855
856 CREATE SEQUENCE traits_id_seq
857     START WITH 1
858     INCREMENT BY 1
859     NO MINVALUE
860     NO MAXVALUE
861     CACHE 1;
862
863
864 --
865 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
866 --
867
868 ALTER SEQUENCE traits_id_seq OWNED BY traits.id;
869
870
871 --
872 -- Name: users; Type: TABLE; Schema: public; Owner: -; Tablespace: 
873 --
874
875 CREATE TABLE users (
876     id integer NOT NULL,
877     uuid character varying(255),
878     owner_uuid character varying(255) NOT NULL,
879     created_at timestamp without time zone NOT NULL,
880     modified_by_client_uuid character varying(255),
881     modified_by_user_uuid character varying(255),
882     modified_at timestamp without time zone,
883     email character varying(255),
884     first_name character varying(255),
885     last_name character varying(255),
886     identity_url character varying(255),
887     is_admin boolean,
888     prefs text,
889     updated_at timestamp without time zone NOT NULL,
890     default_owner_uuid character varying(255),
891     is_active boolean DEFAULT false,
892     username character varying(255)
893 );
894
895
896 --
897 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
898 --
899
900 CREATE SEQUENCE users_id_seq
901     START WITH 1
902     INCREMENT BY 1
903     NO MINVALUE
904     NO MAXVALUE
905     CACHE 1;
906
907
908 --
909 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
910 --
911
912 ALTER SEQUENCE users_id_seq OWNED BY users.id;
913
914
915 --
916 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -; Tablespace: 
917 --
918
919 CREATE TABLE virtual_machines (
920     id integer NOT NULL,
921     uuid character varying(255) NOT NULL,
922     owner_uuid character varying(255) NOT NULL,
923     modified_by_client_uuid character varying(255),
924     modified_by_user_uuid character varying(255),
925     modified_at timestamp without time zone,
926     hostname character varying(255),
927     created_at timestamp without time zone NOT NULL,
928     updated_at timestamp without time zone NOT NULL
929 );
930
931
932 --
933 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
934 --
935
936 CREATE SEQUENCE virtual_machines_id_seq
937     START WITH 1
938     INCREMENT BY 1
939     NO MINVALUE
940     NO MAXVALUE
941     CACHE 1;
942
943
944 --
945 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
946 --
947
948 ALTER SEQUENCE virtual_machines_id_seq OWNED BY virtual_machines.id;
949
950
951 --
952 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
953 --
954
955 ALTER TABLE ONLY api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('api_client_authorizations_id_seq'::regclass);
956
957
958 --
959 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
960 --
961
962 ALTER TABLE ONLY api_clients ALTER COLUMN id SET DEFAULT nextval('api_clients_id_seq'::regclass);
963
964
965 --
966 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
967 --
968
969 ALTER TABLE ONLY authorized_keys ALTER COLUMN id SET DEFAULT nextval('authorized_keys_id_seq'::regclass);
970
971
972 --
973 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
974 --
975
976 ALTER TABLE ONLY collections ALTER COLUMN id SET DEFAULT nextval('collections_id_seq'::regclass);
977
978
979 --
980 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
981 --
982
983 ALTER TABLE ONLY commit_ancestors ALTER COLUMN id SET DEFAULT nextval('commit_ancestors_id_seq'::regclass);
984
985
986 --
987 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
988 --
989
990 ALTER TABLE ONLY commits ALTER COLUMN id SET DEFAULT nextval('commits_id_seq'::regclass);
991
992
993 --
994 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
995 --
996
997 ALTER TABLE ONLY groups ALTER COLUMN id SET DEFAULT nextval('groups_id_seq'::regclass);
998
999
1000 --
1001 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1002 --
1003
1004 ALTER TABLE ONLY humans ALTER COLUMN id SET DEFAULT nextval('humans_id_seq'::regclass);
1005
1006
1007 --
1008 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1009 --
1010
1011 ALTER TABLE ONLY job_tasks ALTER COLUMN id SET DEFAULT nextval('job_tasks_id_seq'::regclass);
1012
1013
1014 --
1015 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1016 --
1017
1018 ALTER TABLE ONLY jobs ALTER COLUMN id SET DEFAULT nextval('jobs_id_seq'::regclass);
1019
1020
1021 --
1022 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1023 --
1024
1025 ALTER TABLE ONLY keep_disks ALTER COLUMN id SET DEFAULT nextval('keep_disks_id_seq'::regclass);
1026
1027
1028 --
1029 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1030 --
1031
1032 ALTER TABLE ONLY keep_services ALTER COLUMN id SET DEFAULT nextval('keep_services_id_seq'::regclass);
1033
1034
1035 --
1036 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1037 --
1038
1039 ALTER TABLE ONLY links ALTER COLUMN id SET DEFAULT nextval('links_id_seq'::regclass);
1040
1041
1042 --
1043 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1044 --
1045
1046 ALTER TABLE ONLY logs ALTER COLUMN id SET DEFAULT nextval('logs_id_seq'::regclass);
1047
1048
1049 --
1050 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1051 --
1052
1053 ALTER TABLE ONLY nodes ALTER COLUMN id SET DEFAULT nextval('nodes_id_seq'::regclass);
1054
1055
1056 --
1057 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1058 --
1059
1060 ALTER TABLE ONLY pipeline_instances ALTER COLUMN id SET DEFAULT nextval('pipeline_instances_id_seq'::regclass);
1061
1062
1063 --
1064 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1065 --
1066
1067 ALTER TABLE ONLY pipeline_templates ALTER COLUMN id SET DEFAULT nextval('pipeline_templates_id_seq'::regclass);
1068
1069
1070 --
1071 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1072 --
1073
1074 ALTER TABLE ONLY repositories ALTER COLUMN id SET DEFAULT nextval('repositories_id_seq'::regclass);
1075
1076
1077 --
1078 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1079 --
1080
1081 ALTER TABLE ONLY specimens ALTER COLUMN id SET DEFAULT nextval('specimens_id_seq'::regclass);
1082
1083
1084 --
1085 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1086 --
1087
1088 ALTER TABLE ONLY traits ALTER COLUMN id SET DEFAULT nextval('traits_id_seq'::regclass);
1089
1090
1091 --
1092 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1093 --
1094
1095 ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
1096
1097
1098 --
1099 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1100 --
1101
1102 ALTER TABLE ONLY virtual_machines ALTER COLUMN id SET DEFAULT nextval('virtual_machines_id_seq'::regclass);
1103
1104
1105 --
1106 -- Name: api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1107 --
1108
1109 ALTER TABLE ONLY api_client_authorizations
1110     ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1111
1112
1113 --
1114 -- Name: api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1115 --
1116
1117 ALTER TABLE ONLY api_clients
1118     ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1119
1120
1121 --
1122 -- Name: authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1123 --
1124
1125 ALTER TABLE ONLY authorized_keys
1126     ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1127
1128
1129 --
1130 -- Name: collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1131 --
1132
1133 ALTER TABLE ONLY collections
1134     ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1135
1136
1137 --
1138 -- Name: commit_ancestors_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1139 --
1140
1141 ALTER TABLE ONLY commit_ancestors
1142     ADD CONSTRAINT commit_ancestors_pkey PRIMARY KEY (id);
1143
1144
1145 --
1146 -- Name: commits_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1147 --
1148
1149 ALTER TABLE ONLY commits
1150     ADD CONSTRAINT commits_pkey PRIMARY KEY (id);
1151
1152
1153 --
1154 -- Name: groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1155 --
1156
1157 ALTER TABLE ONLY groups
1158     ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1159
1160
1161 --
1162 -- Name: humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1163 --
1164
1165 ALTER TABLE ONLY humans
1166     ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1167
1168
1169 --
1170 -- Name: job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1171 --
1172
1173 ALTER TABLE ONLY job_tasks
1174     ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1175
1176
1177 --
1178 -- Name: jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1179 --
1180
1181 ALTER TABLE ONLY jobs
1182     ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1183
1184
1185 --
1186 -- Name: keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1187 --
1188
1189 ALTER TABLE ONLY keep_disks
1190     ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1191
1192
1193 --
1194 -- Name: keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1195 --
1196
1197 ALTER TABLE ONLY keep_services
1198     ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1199
1200
1201 --
1202 -- Name: links_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1203 --
1204
1205 ALTER TABLE ONLY links
1206     ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1207
1208
1209 --
1210 -- Name: logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1211 --
1212
1213 ALTER TABLE ONLY logs
1214     ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1215
1216
1217 --
1218 -- Name: nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1219 --
1220
1221 ALTER TABLE ONLY nodes
1222     ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1223
1224
1225 --
1226 -- Name: pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1227 --
1228
1229 ALTER TABLE ONLY pipeline_instances
1230     ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1231
1232
1233 --
1234 -- Name: pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1235 --
1236
1237 ALTER TABLE ONLY pipeline_templates
1238     ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1239
1240
1241 --
1242 -- Name: repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1243 --
1244
1245 ALTER TABLE ONLY repositories
1246     ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1247
1248
1249 --
1250 -- Name: specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1251 --
1252
1253 ALTER TABLE ONLY specimens
1254     ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1255
1256
1257 --
1258 -- Name: traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1259 --
1260
1261 ALTER TABLE ONLY traits
1262     ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1263
1264
1265 --
1266 -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1267 --
1268
1269 ALTER TABLE ONLY users
1270     ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1271
1272
1273 --
1274 -- Name: virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1275 --
1276
1277 ALTER TABLE ONLY virtual_machines
1278     ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1279
1280
1281 --
1282 -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1283 --
1284
1285 CREATE INDEX api_client_authorizations_search_index ON api_client_authorizations USING btree (api_token, created_by_ip_address, last_used_by_ip_address, default_owner_uuid);
1286
1287
1288 --
1289 -- Name: api_clients_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1290 --
1291
1292 CREATE INDEX api_clients_search_index ON api_clients USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, url_prefix);
1293
1294
1295 --
1296 -- Name: authorized_keys_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1297 --
1298
1299 CREATE INDEX authorized_keys_search_index ON authorized_keys USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, key_type, authorized_user_uuid);
1300
1301
1302 --
1303 -- Name: collection_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1304 --
1305
1306 CREATE UNIQUE INDEX collection_owner_uuid_name_unique ON collections USING btree (owner_uuid, name) WHERE (expires_at IS NULL);
1307
1308
1309 --
1310 -- Name: collections_full_text_search_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1311 --
1312
1313 CREATE INDEX collections_full_text_search_idx ON collections USING gin (to_tsvector('english'::regconfig, (((((((((((((((((COALESCE(owner_uuid, ''::character varying))::text || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(portable_data_hash, ''::character varying))::text) || ' '::text) || (COALESCE(uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || COALESCE(properties, ''::text)) || ' '::text) || (COALESCE(file_names, ''::character varying))::text)));
1314
1315
1316 --
1317 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1318 --
1319
1320 CREATE INDEX collections_search_index ON collections USING btree (owner_uuid, modified_by_client_uuid, modified_by_user_uuid, portable_data_hash, uuid, name);
1321
1322
1323 --
1324 -- Name: groups_full_text_search_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1325 --
1326
1327 CREATE INDEX groups_full_text_search_idx ON groups USING gin (to_tsvector('english'::regconfig, (((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || (COALESCE(group_class, ''::character varying))::text)));
1328
1329
1330 --
1331 -- Name: groups_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1332 --
1333
1334 CREATE UNIQUE INDEX groups_owner_uuid_name_unique ON groups USING btree (owner_uuid, name);
1335
1336
1337 --
1338 -- Name: groups_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1339 --
1340
1341 CREATE INDEX groups_search_index ON groups USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, group_class);
1342
1343
1344 --
1345 -- Name: humans_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1346 --
1347
1348 CREATE INDEX humans_search_index ON humans USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid);
1349
1350
1351 --
1352 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1353 --
1354
1355 CREATE INDEX index_api_client_authorizations_on_api_client_id ON api_client_authorizations USING btree (api_client_id);
1356
1357
1358 --
1359 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1360 --
1361
1362 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON api_client_authorizations USING btree (api_token);
1363
1364
1365 --
1366 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1367 --
1368
1369 CREATE INDEX index_api_client_authorizations_on_expires_at ON api_client_authorizations USING btree (expires_at);
1370
1371
1372 --
1373 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1374 --
1375
1376 CREATE INDEX index_api_client_authorizations_on_user_id ON api_client_authorizations USING btree (user_id);
1377
1378
1379 --
1380 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1381 --
1382
1383 CREATE INDEX index_api_clients_on_created_at ON api_clients USING btree (created_at);
1384
1385
1386 --
1387 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1388 --
1389
1390 CREATE INDEX index_api_clients_on_modified_at ON api_clients USING btree (modified_at);
1391
1392
1393 --
1394 -- Name: index_api_clients_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1395 --
1396
1397 CREATE INDEX index_api_clients_on_owner_uuid ON api_clients USING btree (owner_uuid);
1398
1399
1400 --
1401 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1402 --
1403
1404 CREATE UNIQUE INDEX index_api_clients_on_uuid ON api_clients USING btree (uuid);
1405
1406
1407 --
1408 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1409 --
1410
1411 CREATE INDEX index_authkeys_on_user_and_expires_at ON authorized_keys USING btree (authorized_user_uuid, expires_at);
1412
1413
1414 --
1415 -- Name: index_authorized_keys_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1416 --
1417
1418 CREATE INDEX index_authorized_keys_on_owner_uuid ON authorized_keys USING btree (owner_uuid);
1419
1420
1421 --
1422 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1423 --
1424
1425 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON authorized_keys USING btree (uuid);
1426
1427
1428 --
1429 -- Name: index_collections_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1430 --
1431
1432 CREATE INDEX index_collections_on_created_at ON collections USING btree (created_at);
1433
1434
1435 --
1436 -- Name: index_collections_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1437 --
1438
1439 CREATE INDEX index_collections_on_modified_at ON collections USING btree (modified_at);
1440
1441
1442 --
1443 -- Name: index_collections_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1444 --
1445
1446 CREATE INDEX index_collections_on_owner_uuid ON collections USING btree (owner_uuid);
1447
1448
1449 --
1450 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1451 --
1452
1453 CREATE UNIQUE INDEX index_collections_on_uuid ON collections USING btree (uuid);
1454
1455
1456 --
1457 -- Name: index_commit_ancestors_on_descendant_and_ancestor; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1458 --
1459
1460 CREATE UNIQUE INDEX index_commit_ancestors_on_descendant_and_ancestor ON commit_ancestors USING btree (descendant, ancestor);
1461
1462
1463 --
1464 -- Name: index_commits_on_repository_name_and_sha1; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1465 --
1466
1467 CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON commits USING btree (repository_name, sha1);
1468
1469
1470 --
1471 -- Name: index_groups_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1472 --
1473
1474 CREATE INDEX index_groups_on_created_at ON groups USING btree (created_at);
1475
1476
1477 --
1478 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1479 --
1480
1481 CREATE INDEX index_groups_on_group_class ON groups USING btree (group_class);
1482
1483
1484 --
1485 -- Name: index_groups_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1486 --
1487
1488 CREATE INDEX index_groups_on_modified_at ON groups USING btree (modified_at);
1489
1490
1491 --
1492 -- Name: index_groups_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1493 --
1494
1495 CREATE INDEX index_groups_on_owner_uuid ON groups USING btree (owner_uuid);
1496
1497
1498 --
1499 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1500 --
1501
1502 CREATE UNIQUE INDEX index_groups_on_uuid ON groups USING btree (uuid);
1503
1504
1505 --
1506 -- Name: index_humans_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1507 --
1508
1509 CREATE INDEX index_humans_on_owner_uuid ON humans USING btree (owner_uuid);
1510
1511
1512 --
1513 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1514 --
1515
1516 CREATE UNIQUE INDEX index_humans_on_uuid ON humans USING btree (uuid);
1517
1518
1519 --
1520 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1521 --
1522
1523 CREATE INDEX index_job_tasks_on_created_at ON job_tasks USING btree (created_at);
1524
1525
1526 --
1527 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1528 --
1529
1530 CREATE INDEX index_job_tasks_on_job_uuid ON job_tasks USING btree (job_uuid);
1531
1532
1533 --
1534 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1535 --
1536
1537 CREATE INDEX index_job_tasks_on_modified_at ON job_tasks USING btree (modified_at);
1538
1539
1540 --
1541 -- Name: index_job_tasks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1542 --
1543
1544 CREATE INDEX index_job_tasks_on_owner_uuid ON job_tasks USING btree (owner_uuid);
1545
1546
1547 --
1548 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1549 --
1550
1551 CREATE INDEX index_job_tasks_on_sequence ON job_tasks USING btree (sequence);
1552
1553
1554 --
1555 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1556 --
1557
1558 CREATE INDEX index_job_tasks_on_success ON job_tasks USING btree (success);
1559
1560
1561 --
1562 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1563 --
1564
1565 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON job_tasks USING btree (uuid);
1566
1567
1568 --
1569 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1570 --
1571
1572 CREATE INDEX index_jobs_on_created_at ON jobs USING btree (created_at);
1573
1574
1575 --
1576 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1577 --
1578
1579 CREATE INDEX index_jobs_on_finished_at ON jobs USING btree (finished_at);
1580
1581
1582 --
1583 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1584 --
1585
1586 CREATE INDEX index_jobs_on_modified_at ON jobs USING btree (modified_at);
1587
1588
1589 --
1590 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1591 --
1592
1593 CREATE INDEX index_jobs_on_output ON jobs USING btree (output);
1594
1595
1596 --
1597 -- Name: index_jobs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1598 --
1599
1600 CREATE INDEX index_jobs_on_owner_uuid ON jobs USING btree (owner_uuid);
1601
1602
1603 --
1604 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1605 --
1606
1607 CREATE INDEX index_jobs_on_script ON jobs USING btree (script);
1608
1609
1610 --
1611 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1612 --
1613
1614 CREATE INDEX index_jobs_on_started_at ON jobs USING btree (started_at);
1615
1616
1617 --
1618 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1619 --
1620
1621 CREATE UNIQUE INDEX index_jobs_on_submit_id ON jobs USING btree (submit_id);
1622
1623
1624 --
1625 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1626 --
1627
1628 CREATE UNIQUE INDEX index_jobs_on_uuid ON jobs USING btree (uuid);
1629
1630
1631 --
1632 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1633 --
1634
1635 CREATE INDEX index_keep_disks_on_filesystem_uuid ON keep_disks USING btree (filesystem_uuid);
1636
1637
1638 --
1639 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1640 --
1641
1642 CREATE INDEX index_keep_disks_on_last_ping_at ON keep_disks USING btree (last_ping_at);
1643
1644
1645 --
1646 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1647 --
1648
1649 CREATE INDEX index_keep_disks_on_node_uuid ON keep_disks USING btree (node_uuid);
1650
1651
1652 --
1653 -- Name: index_keep_disks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1654 --
1655
1656 CREATE INDEX index_keep_disks_on_owner_uuid ON keep_disks USING btree (owner_uuid);
1657
1658
1659 --
1660 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1661 --
1662
1663 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON keep_disks USING btree (uuid);
1664
1665
1666 --
1667 -- Name: index_keep_services_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1668 --
1669
1670 CREATE INDEX index_keep_services_on_owner_uuid ON keep_services USING btree (owner_uuid);
1671
1672
1673 --
1674 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1675 --
1676
1677 CREATE UNIQUE INDEX index_keep_services_on_uuid ON keep_services USING btree (uuid);
1678
1679
1680 --
1681 -- Name: index_links_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1682 --
1683
1684 CREATE INDEX index_links_on_created_at ON links USING btree (created_at);
1685
1686
1687 --
1688 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1689 --
1690
1691 CREATE INDEX index_links_on_head_uuid ON links USING btree (head_uuid);
1692
1693
1694 --
1695 -- Name: index_links_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1696 --
1697
1698 CREATE INDEX index_links_on_modified_at ON links USING btree (modified_at);
1699
1700
1701 --
1702 -- Name: index_links_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1703 --
1704
1705 CREATE INDEX index_links_on_owner_uuid ON links USING btree (owner_uuid);
1706
1707
1708 --
1709 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1710 --
1711
1712 CREATE INDEX index_links_on_tail_uuid ON links USING btree (tail_uuid);
1713
1714
1715 --
1716 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1717 --
1718
1719 CREATE UNIQUE INDEX index_links_on_uuid ON links USING btree (uuid);
1720
1721
1722 --
1723 -- Name: index_logs_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1724 --
1725
1726 CREATE INDEX index_logs_on_created_at ON logs USING btree (created_at);
1727
1728
1729 --
1730 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1731 --
1732
1733 CREATE INDEX index_logs_on_event_at ON logs USING btree (event_at);
1734
1735
1736 --
1737 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1738 --
1739
1740 CREATE INDEX index_logs_on_event_type ON logs USING btree (event_type);
1741
1742
1743 --
1744 -- Name: index_logs_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1745 --
1746
1747 CREATE INDEX index_logs_on_modified_at ON logs USING btree (modified_at);
1748
1749
1750 --
1751 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1752 --
1753
1754 CREATE INDEX index_logs_on_object_uuid ON logs USING btree (object_uuid);
1755
1756
1757 --
1758 -- Name: index_logs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1759 --
1760
1761 CREATE INDEX index_logs_on_owner_uuid ON logs USING btree (owner_uuid);
1762
1763
1764 --
1765 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1766 --
1767
1768 CREATE INDEX index_logs_on_summary ON logs USING btree (summary);
1769
1770
1771 --
1772 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1773 --
1774
1775 CREATE UNIQUE INDEX index_logs_on_uuid ON logs USING btree (uuid);
1776
1777
1778 --
1779 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1780 --
1781
1782 CREATE INDEX index_nodes_on_created_at ON nodes USING btree (created_at);
1783
1784
1785 --
1786 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1787 --
1788
1789 CREATE INDEX index_nodes_on_hostname ON nodes USING btree (hostname);
1790
1791
1792 --
1793 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1794 --
1795
1796 CREATE INDEX index_nodes_on_modified_at ON nodes USING btree (modified_at);
1797
1798
1799 --
1800 -- Name: index_nodes_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1801 --
1802
1803 CREATE INDEX index_nodes_on_owner_uuid ON nodes USING btree (owner_uuid);
1804
1805
1806 --
1807 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1808 --
1809
1810 CREATE UNIQUE INDEX index_nodes_on_slot_number ON nodes USING btree (slot_number);
1811
1812
1813 --
1814 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1815 --
1816
1817 CREATE UNIQUE INDEX index_nodes_on_uuid ON nodes USING btree (uuid);
1818
1819
1820 --
1821 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1822 --
1823
1824 CREATE INDEX index_pipeline_instances_on_created_at ON pipeline_instances USING btree (created_at);
1825
1826
1827 --
1828 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1829 --
1830
1831 CREATE INDEX index_pipeline_instances_on_modified_at ON pipeline_instances USING btree (modified_at);
1832
1833
1834 --
1835 -- Name: index_pipeline_instances_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1836 --
1837
1838 CREATE INDEX index_pipeline_instances_on_owner_uuid ON pipeline_instances USING btree (owner_uuid);
1839
1840
1841 --
1842 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1843 --
1844
1845 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON pipeline_instances USING btree (uuid);
1846
1847
1848 --
1849 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1850 --
1851
1852 CREATE INDEX index_pipeline_templates_on_created_at ON pipeline_templates USING btree (created_at);
1853
1854
1855 --
1856 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1857 --
1858
1859 CREATE INDEX index_pipeline_templates_on_modified_at ON pipeline_templates USING btree (modified_at);
1860
1861
1862 --
1863 -- Name: index_pipeline_templates_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1864 --
1865
1866 CREATE INDEX index_pipeline_templates_on_owner_uuid ON pipeline_templates USING btree (owner_uuid);
1867
1868
1869 --
1870 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1871 --
1872
1873 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON pipeline_templates USING btree (uuid);
1874
1875
1876 --
1877 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1878 --
1879
1880 CREATE UNIQUE INDEX index_repositories_on_name ON repositories USING btree (name);
1881
1882
1883 --
1884 -- Name: index_repositories_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1885 --
1886
1887 CREATE INDEX index_repositories_on_owner_uuid ON repositories USING btree (owner_uuid);
1888
1889
1890 --
1891 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1892 --
1893
1894 CREATE UNIQUE INDEX index_repositories_on_uuid ON repositories USING btree (uuid);
1895
1896
1897 --
1898 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1899 --
1900
1901 CREATE INDEX index_specimens_on_created_at ON specimens USING btree (created_at);
1902
1903
1904 --
1905 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1906 --
1907
1908 CREATE INDEX index_specimens_on_modified_at ON specimens USING btree (modified_at);
1909
1910
1911 --
1912 -- Name: index_specimens_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1913 --
1914
1915 CREATE INDEX index_specimens_on_owner_uuid ON specimens USING btree (owner_uuid);
1916
1917
1918 --
1919 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1920 --
1921
1922 CREATE UNIQUE INDEX index_specimens_on_uuid ON specimens USING btree (uuid);
1923
1924
1925 --
1926 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1927 --
1928
1929 CREATE INDEX index_traits_on_name ON traits USING btree (name);
1930
1931
1932 --
1933 -- Name: index_traits_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1934 --
1935
1936 CREATE INDEX index_traits_on_owner_uuid ON traits USING btree (owner_uuid);
1937
1938
1939 --
1940 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1941 --
1942
1943 CREATE UNIQUE INDEX index_traits_on_uuid ON traits USING btree (uuid);
1944
1945
1946 --
1947 -- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1948 --
1949
1950 CREATE INDEX index_users_on_created_at ON users USING btree (created_at);
1951
1952
1953 --
1954 -- Name: index_users_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1955 --
1956
1957 CREATE INDEX index_users_on_modified_at ON users USING btree (modified_at);
1958
1959
1960 --
1961 -- Name: index_users_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1962 --
1963
1964 CREATE INDEX index_users_on_owner_uuid ON users USING btree (owner_uuid);
1965
1966
1967 --
1968 -- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1969 --
1970
1971 CREATE UNIQUE INDEX index_users_on_username ON users USING btree (username);
1972
1973
1974 --
1975 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1976 --
1977
1978 CREATE UNIQUE INDEX index_users_on_uuid ON users USING btree (uuid);
1979
1980
1981 --
1982 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1983 --
1984
1985 CREATE INDEX index_virtual_machines_on_hostname ON virtual_machines USING btree (hostname);
1986
1987
1988 --
1989 -- Name: index_virtual_machines_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1990 --
1991
1992 CREATE INDEX index_virtual_machines_on_owner_uuid ON virtual_machines USING btree (owner_uuid);
1993
1994
1995 --
1996 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1997 --
1998
1999 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON virtual_machines USING btree (uuid);
2000
2001
2002 --
2003 -- Name: job_tasks_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2004 --
2005
2006 CREATE INDEX job_tasks_search_index ON job_tasks USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, job_uuid, created_by_job_task_uuid);
2007
2008
2009 --
2010 -- Name: jobs_full_text_search_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2011 --
2012
2013 CREATE INDEX jobs_full_text_search_idx ON jobs USING gin (to_tsvector('english'::regconfig, (((((((((((((((((((((((((((((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(submit_id, ''::character varying))::text) || ' '::text) || (COALESCE(script, ''::character varying))::text) || ' '::text) || (COALESCE(script_version, ''::character varying))::text) || ' '::text) || COALESCE(script_parameters, ''::text)) || ' '::text) || (COALESCE(cancelled_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(cancelled_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(output, ''::character varying))::text) || ' '::text) || (COALESCE(is_locked_by_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(log, ''::character varying))::text) || ' '::text) || COALESCE(tasks_summary, ''::text)) || ' '::text) || COALESCE(runtime_constraints, ''::text)) || ' '::text) || (COALESCE(repository, ''::character varying))::text) || ' '::text) || (COALESCE(supplied_script_version, ''::character varying))::text) || ' '::text) || (COALESCE(docker_image_locator, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || (COALESCE(state, ''::character varying))::text) || ' '::text) || (COALESCE(arvados_sdk_version, ''::character varying))::text)));
2014
2015
2016 --
2017 -- Name: jobs_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2018 --
2019
2020 CREATE INDEX jobs_search_index ON jobs USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, submit_id, script, script_version, cancelled_by_client_uuid, cancelled_by_user_uuid, output, is_locked_by_uuid, log, repository, supplied_script_version, docker_image_locator, state, arvados_sdk_version);
2021
2022
2023 --
2024 -- Name: keep_disks_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2025 --
2026
2027 CREATE INDEX keep_disks_search_index ON keep_disks USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, ping_secret, node_uuid, filesystem_uuid, keep_service_uuid);
2028
2029
2030 --
2031 -- Name: keep_services_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2032 --
2033
2034 CREATE INDEX keep_services_search_index ON keep_services USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, service_host, service_type);
2035
2036
2037 --
2038 -- Name: links_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2039 --
2040
2041 CREATE INDEX links_search_index ON links USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, tail_uuid, link_class, name, head_uuid);
2042
2043
2044 --
2045 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2046 --
2047
2048 CREATE UNIQUE INDEX links_tail_name_unique_if_link_class_name ON links USING btree (tail_uuid, name) WHERE ((link_class)::text = 'name'::text);
2049
2050
2051 --
2052 -- Name: logs_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2053 --
2054
2055 CREATE INDEX logs_search_index ON logs USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, object_uuid, event_type, object_owner_uuid);
2056
2057
2058 --
2059 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2060 --
2061
2062 CREATE INDEX nodes_search_index ON nodes USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname, domain, ip_address, job_uuid);
2063
2064
2065 --
2066 -- Name: pipeline_instances_full_text_search_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2067 --
2068
2069 CREATE INDEX pipeline_instances_full_text_search_idx ON pipeline_instances USING gin (to_tsvector('english'::regconfig, (((((((((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(pipeline_template_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || COALESCE(components, ''::text)) || ' '::text) || COALESCE(properties, ''::text)) || ' '::text) || (COALESCE(state, ''::character varying))::text) || ' '::text) || COALESCE(components_summary, ''::text)) || ' '::text) || (COALESCE(description, ''::character varying))::text)));
2070
2071
2072 --
2073 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2074 --
2075
2076 CREATE INDEX pipeline_instances_search_index ON pipeline_instances USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, pipeline_template_uuid, name, state);
2077
2078
2079 --
2080 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2081 --
2082
2083 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON pipeline_templates USING btree (owner_uuid, name);
2084
2085
2086 --
2087 -- Name: pipeline_templates_full_text_search_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2088 --
2089
2090 CREATE INDEX pipeline_templates_full_text_search_idx ON pipeline_templates USING gin (to_tsvector('english'::regconfig, (((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || COALESCE(components, ''::text)) || ' '::text) || (COALESCE(description, ''::character varying))::text)));
2091
2092
2093 --
2094 -- Name: pipeline_templates_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2095 --
2096
2097 CREATE INDEX pipeline_templates_search_index ON pipeline_templates USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2098
2099
2100 --
2101 -- Name: repositories_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2102 --
2103
2104 CREATE INDEX repositories_search_index ON repositories USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2105
2106
2107 --
2108 -- Name: specimens_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2109 --
2110
2111 CREATE INDEX specimens_search_index ON specimens USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, material);
2112
2113
2114 --
2115 -- Name: traits_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2116 --
2117
2118 CREATE INDEX traits_search_index ON traits USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2119
2120
2121 --
2122 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2123 --
2124
2125 CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
2126
2127
2128 --
2129 -- Name: users_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2130 --
2131
2132 CREATE INDEX users_search_index ON users USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, email, first_name, last_name, identity_url, default_owner_uuid, username);
2133
2134
2135 --
2136 -- Name: virtual_machines_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2137 --
2138
2139 CREATE INDEX virtual_machines_search_index ON virtual_machines USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname);
2140
2141
2142 --
2143 -- PostgreSQL database dump complete
2144 --
2145
2146 SET search_path TO "$user",public;
2147
2148 INSERT INTO schema_migrations (version) VALUES ('20121016005009');
2149
2150 INSERT INTO schema_migrations (version) VALUES ('20130105203021');
2151
2152 INSERT INTO schema_migrations (version) VALUES ('20130105224358');
2153
2154 INSERT INTO schema_migrations (version) VALUES ('20130105224618');
2155
2156 INSERT INTO schema_migrations (version) VALUES ('20130107181109');
2157
2158 INSERT INTO schema_migrations (version) VALUES ('20130107212832');
2159
2160 INSERT INTO schema_migrations (version) VALUES ('20130109175700');
2161
2162 INSERT INTO schema_migrations (version) VALUES ('20130109220548');
2163
2164 INSERT INTO schema_migrations (version) VALUES ('20130113214204');
2165
2166 INSERT INTO schema_migrations (version) VALUES ('20130116024233');
2167
2168 INSERT INTO schema_migrations (version) VALUES ('20130116215213');
2169
2170 INSERT INTO schema_migrations (version) VALUES ('20130118002239');
2171
2172 INSERT INTO schema_migrations (version) VALUES ('20130122020042');
2173
2174 INSERT INTO schema_migrations (version) VALUES ('20130122201442');
2175
2176 INSERT INTO schema_migrations (version) VALUES ('20130122221616');
2177
2178 INSERT INTO schema_migrations (version) VALUES ('20130123174514');
2179
2180 INSERT INTO schema_migrations (version) VALUES ('20130123180224');
2181
2182 INSERT INTO schema_migrations (version) VALUES ('20130123180228');
2183
2184 INSERT INTO schema_migrations (version) VALUES ('20130125220425');
2185
2186 INSERT INTO schema_migrations (version) VALUES ('20130128202518');
2187
2188 INSERT INTO schema_migrations (version) VALUES ('20130128231343');
2189
2190 INSERT INTO schema_migrations (version) VALUES ('20130130205749');
2191
2192 INSERT INTO schema_migrations (version) VALUES ('20130203104818');
2193
2194 INSERT INTO schema_migrations (version) VALUES ('20130203104824');
2195
2196 INSERT INTO schema_migrations (version) VALUES ('20130203115329');
2197
2198 INSERT INTO schema_migrations (version) VALUES ('20130207195855');
2199
2200 INSERT INTO schema_migrations (version) VALUES ('20130218181504');
2201
2202 INSERT INTO schema_migrations (version) VALUES ('20130226170000');
2203
2204 INSERT INTO schema_migrations (version) VALUES ('20130313175417');
2205
2206 INSERT INTO schema_migrations (version) VALUES ('20130315155820');
2207
2208 INSERT INTO schema_migrations (version) VALUES ('20130315183626');
2209
2210 INSERT INTO schema_migrations (version) VALUES ('20130315213205');
2211
2212 INSERT INTO schema_migrations (version) VALUES ('20130318002138');
2213
2214 INSERT INTO schema_migrations (version) VALUES ('20130319165853');
2215
2216 INSERT INTO schema_migrations (version) VALUES ('20130319180730');
2217
2218 INSERT INTO schema_migrations (version) VALUES ('20130319194637');
2219
2220 INSERT INTO schema_migrations (version) VALUES ('20130319201431');
2221
2222 INSERT INTO schema_migrations (version) VALUES ('20130319235957');
2223
2224 INSERT INTO schema_migrations (version) VALUES ('20130320000107');
2225
2226 INSERT INTO schema_migrations (version) VALUES ('20130326173804');
2227
2228 INSERT INTO schema_migrations (version) VALUES ('20130326182917');
2229
2230 INSERT INTO schema_migrations (version) VALUES ('20130415020241');
2231
2232 INSERT INTO schema_migrations (version) VALUES ('20130425024459');
2233
2234 INSERT INTO schema_migrations (version) VALUES ('20130425214427');
2235
2236 INSERT INTO schema_migrations (version) VALUES ('20130523060112');
2237
2238 INSERT INTO schema_migrations (version) VALUES ('20130523060213');
2239
2240 INSERT INTO schema_migrations (version) VALUES ('20130524042319');
2241
2242 INSERT INTO schema_migrations (version) VALUES ('20130528134100');
2243
2244 INSERT INTO schema_migrations (version) VALUES ('20130606183519');
2245
2246 INSERT INTO schema_migrations (version) VALUES ('20130608053730');
2247
2248 INSERT INTO schema_migrations (version) VALUES ('20130610202538');
2249
2250 INSERT INTO schema_migrations (version) VALUES ('20130611163736');
2251
2252 INSERT INTO schema_migrations (version) VALUES ('20130612042554');
2253
2254 INSERT INTO schema_migrations (version) VALUES ('20130617150007');
2255
2256 INSERT INTO schema_migrations (version) VALUES ('20130626002829');
2257
2258 INSERT INTO schema_migrations (version) VALUES ('20130626022810');
2259
2260 INSERT INTO schema_migrations (version) VALUES ('20130627154537');
2261
2262 INSERT INTO schema_migrations (version) VALUES ('20130627184333');
2263
2264 INSERT INTO schema_migrations (version) VALUES ('20130708163414');
2265
2266 INSERT INTO schema_migrations (version) VALUES ('20130708182912');
2267
2268 INSERT INTO schema_migrations (version) VALUES ('20130708185153');
2269
2270 INSERT INTO schema_migrations (version) VALUES ('20130724153034');
2271
2272 INSERT INTO schema_migrations (version) VALUES ('20131007180607');
2273
2274 INSERT INTO schema_migrations (version) VALUES ('20140117231056');
2275
2276 INSERT INTO schema_migrations (version) VALUES ('20140124222114');
2277
2278 INSERT INTO schema_migrations (version) VALUES ('20140129184311');
2279
2280 INSERT INTO schema_migrations (version) VALUES ('20140317135600');
2281
2282 INSERT INTO schema_migrations (version) VALUES ('20140319160547');
2283
2284 INSERT INTO schema_migrations (version) VALUES ('20140321191343');
2285
2286 INSERT INTO schema_migrations (version) VALUES ('20140324024606');
2287
2288 INSERT INTO schema_migrations (version) VALUES ('20140325175653');
2289
2290 INSERT INTO schema_migrations (version) VALUES ('20140402001908');
2291
2292 INSERT INTO schema_migrations (version) VALUES ('20140407184311');
2293
2294 INSERT INTO schema_migrations (version) VALUES ('20140421140924');
2295
2296 INSERT INTO schema_migrations (version) VALUES ('20140421151939');
2297
2298 INSERT INTO schema_migrations (version) VALUES ('20140421151940');
2299
2300 INSERT INTO schema_migrations (version) VALUES ('20140422011506');
2301
2302 INSERT INTO schema_migrations (version) VALUES ('20140423132913');
2303
2304 INSERT INTO schema_migrations (version) VALUES ('20140423133559');
2305
2306 INSERT INTO schema_migrations (version) VALUES ('20140501165548');
2307
2308 INSERT INTO schema_migrations (version) VALUES ('20140519205916');
2309
2310 INSERT INTO schema_migrations (version) VALUES ('20140527152921');
2311
2312 INSERT INTO schema_migrations (version) VALUES ('20140530200539');
2313
2314 INSERT INTO schema_migrations (version) VALUES ('20140601022548');
2315
2316 INSERT INTO schema_migrations (version) VALUES ('20140602143352');
2317
2318 INSERT INTO schema_migrations (version) VALUES ('20140607150616');
2319
2320 INSERT INTO schema_migrations (version) VALUES ('20140611173003');
2321
2322 INSERT INTO schema_migrations (version) VALUES ('20140627210837');
2323
2324 INSERT INTO schema_migrations (version) VALUES ('20140709172343');
2325
2326 INSERT INTO schema_migrations (version) VALUES ('20140714184006');
2327
2328 INSERT INTO schema_migrations (version) VALUES ('20140811184643');
2329
2330 INSERT INTO schema_migrations (version) VALUES ('20140815171049');
2331
2332 INSERT INTO schema_migrations (version) VALUES ('20140817035914');
2333
2334 INSERT INTO schema_migrations (version) VALUES ('20140818125735');
2335
2336 INSERT INTO schema_migrations (version) VALUES ('20140826180337');
2337
2338 INSERT INTO schema_migrations (version) VALUES ('20140828141043');
2339
2340 INSERT INTO schema_migrations (version) VALUES ('20140909183946');
2341
2342 INSERT INTO schema_migrations (version) VALUES ('20140911221252');
2343
2344 INSERT INTO schema_migrations (version) VALUES ('20140918141529');
2345
2346 INSERT INTO schema_migrations (version) VALUES ('20140918153541');
2347
2348 INSERT INTO schema_migrations (version) VALUES ('20140918153705');
2349
2350 INSERT INTO schema_migrations (version) VALUES ('20140924091559');
2351
2352 INSERT INTO schema_migrations (version) VALUES ('20141111133038');
2353
2354 INSERT INTO schema_migrations (version) VALUES ('20141208164553');
2355
2356 INSERT INTO schema_migrations (version) VALUES ('20141208174553');
2357
2358 INSERT INTO schema_migrations (version) VALUES ('20141208174653');
2359
2360 INSERT INTO schema_migrations (version) VALUES ('20141208185217');
2361
2362 INSERT INTO schema_migrations (version) VALUES ('20150122175935');
2363
2364 INSERT INTO schema_migrations (version) VALUES ('20150123142953');
2365
2366 INSERT INTO schema_migrations (version) VALUES ('20150203180223');
2367
2368 INSERT INTO schema_migrations (version) VALUES ('20150206210804');
2369
2370 INSERT INTO schema_migrations (version) VALUES ('20150206230342');
2371
2372 INSERT INTO schema_migrations (version) VALUES ('20150216193428');
2373
2374 INSERT INTO schema_migrations (version) VALUES ('20150303210106');
2375
2376 INSERT INTO schema_migrations (version) VALUES ('20150312151136');
2377
2378 INSERT INTO schema_migrations (version) VALUES ('20150317132720');
2379
2380 INSERT INTO schema_migrations (version) VALUES ('20150324152204');
2381
2382 INSERT INTO schema_migrations (version) VALUES ('20150423145759');
2383
2384 INSERT INTO schema_migrations (version) VALUES ('20150512193020');