Merge branch 'master' into 5720-ajax-loading-error
[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     arvados_sdk_version character varying(255),
436     state 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 );
523
524
525 --
526 -- Name: keep_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
527 --
528
529 CREATE SEQUENCE keep_services_id_seq
530     START WITH 1
531     INCREMENT BY 1
532     NO MINVALUE
533     NO MAXVALUE
534     CACHE 1;
535
536
537 --
538 -- Name: keep_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
539 --
540
541 ALTER SEQUENCE keep_services_id_seq OWNED BY keep_services.id;
542
543
544 --
545 -- Name: links; Type: TABLE; Schema: public; Owner: -; Tablespace: 
546 --
547
548 CREATE TABLE links (
549     id integer NOT NULL,
550     uuid character varying(255),
551     owner_uuid character varying(255),
552     created_at timestamp without time zone NOT NULL,
553     modified_by_client_uuid character varying(255),
554     modified_by_user_uuid character varying(255),
555     modified_at timestamp without time zone,
556     tail_uuid character varying(255),
557     link_class character varying(255),
558     name character varying(255),
559     head_uuid character varying(255),
560     properties text,
561     updated_at timestamp without time zone NOT NULL
562 );
563
564
565 --
566 -- Name: links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
567 --
568
569 CREATE SEQUENCE links_id_seq
570     START WITH 1
571     INCREMENT BY 1
572     NO MINVALUE
573     NO MAXVALUE
574     CACHE 1;
575
576
577 --
578 -- Name: links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
579 --
580
581 ALTER SEQUENCE links_id_seq OWNED BY links.id;
582
583
584 --
585 -- Name: logs; Type: TABLE; Schema: public; Owner: -; Tablespace: 
586 --
587
588 CREATE TABLE logs (
589     id integer NOT NULL,
590     uuid character varying(255),
591     owner_uuid character varying(255),
592     modified_by_client_uuid character varying(255),
593     modified_by_user_uuid character varying(255),
594     object_uuid character varying(255),
595     event_at timestamp without time zone,
596     event_type character varying(255),
597     summary text,
598     properties text,
599     created_at timestamp without time zone NOT NULL,
600     updated_at timestamp without time zone NOT NULL,
601     modified_at timestamp without time zone,
602     object_owner_uuid character varying(255)
603 );
604
605
606 --
607 -- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
608 --
609
610 CREATE SEQUENCE logs_id_seq
611     START WITH 1
612     INCREMENT BY 1
613     NO MINVALUE
614     NO MAXVALUE
615     CACHE 1;
616
617
618 --
619 -- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
620 --
621
622 ALTER SEQUENCE logs_id_seq OWNED BY logs.id;
623
624
625 --
626 -- Name: nodes; Type: TABLE; Schema: public; Owner: -; Tablespace: 
627 --
628
629 CREATE TABLE nodes (
630     id integer NOT NULL,
631     uuid character varying(255),
632     owner_uuid character varying(255),
633     created_at timestamp without time zone NOT NULL,
634     modified_by_client_uuid character varying(255),
635     modified_by_user_uuid character varying(255),
636     modified_at timestamp without time zone,
637     slot_number integer,
638     hostname character varying(255),
639     domain character varying(255),
640     ip_address character varying(255),
641     first_ping_at timestamp without time zone,
642     last_ping_at timestamp without time zone,
643     info text,
644     updated_at timestamp without time zone NOT NULL,
645     properties text,
646     job_uuid character varying(255)
647 );
648
649
650 --
651 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
652 --
653
654 CREATE SEQUENCE nodes_id_seq
655     START WITH 1
656     INCREMENT BY 1
657     NO MINVALUE
658     NO MAXVALUE
659     CACHE 1;
660
661
662 --
663 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
664 --
665
666 ALTER SEQUENCE nodes_id_seq OWNED BY nodes.id;
667
668
669 --
670 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -; Tablespace: 
671 --
672
673 CREATE TABLE pipeline_instances (
674     id integer NOT NULL,
675     uuid character varying(255),
676     owner_uuid character varying(255),
677     created_at timestamp without time zone NOT NULL,
678     modified_by_client_uuid character varying(255),
679     modified_by_user_uuid character varying(255),
680     modified_at timestamp without time zone,
681     pipeline_template_uuid character varying(255),
682     name character varying(255),
683     components text,
684     updated_at timestamp without time zone NOT NULL,
685     properties text,
686     state character varying(255),
687     components_summary text,
688     started_at timestamp without time zone,
689     finished_at timestamp without time zone,
690     description character varying(524288)
691 );
692
693
694 --
695 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
696 --
697
698 CREATE SEQUENCE pipeline_instances_id_seq
699     START WITH 1
700     INCREMENT BY 1
701     NO MINVALUE
702     NO MAXVALUE
703     CACHE 1;
704
705
706 --
707 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
708 --
709
710 ALTER SEQUENCE pipeline_instances_id_seq OWNED BY pipeline_instances.id;
711
712
713 --
714 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -; Tablespace: 
715 --
716
717 CREATE TABLE pipeline_templates (
718     id integer NOT NULL,
719     uuid character varying(255),
720     owner_uuid character varying(255),
721     created_at timestamp without time zone NOT NULL,
722     modified_by_client_uuid character varying(255),
723     modified_by_user_uuid character varying(255),
724     modified_at timestamp without time zone,
725     name character varying(255),
726     components text,
727     updated_at timestamp without time zone NOT NULL,
728     description character varying(524288)
729 );
730
731
732 --
733 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
734 --
735
736 CREATE SEQUENCE pipeline_templates_id_seq
737     START WITH 1
738     INCREMENT BY 1
739     NO MINVALUE
740     NO MAXVALUE
741     CACHE 1;
742
743
744 --
745 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
746 --
747
748 ALTER SEQUENCE pipeline_templates_id_seq OWNED BY pipeline_templates.id;
749
750
751 --
752 -- Name: repositories; Type: TABLE; Schema: public; Owner: -; Tablespace: 
753 --
754
755 CREATE TABLE repositories (
756     id integer NOT NULL,
757     uuid character varying(255) NOT NULL,
758     owner_uuid character varying(255) NOT NULL,
759     modified_by_client_uuid character varying(255),
760     modified_by_user_uuid character varying(255),
761     modified_at timestamp without time zone,
762     name character varying(255),
763     created_at timestamp without time zone NOT NULL,
764     updated_at timestamp without time zone NOT NULL
765 );
766
767
768 --
769 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
770 --
771
772 CREATE SEQUENCE repositories_id_seq
773     START WITH 1
774     INCREMENT BY 1
775     NO MINVALUE
776     NO MAXVALUE
777     CACHE 1;
778
779
780 --
781 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
782 --
783
784 ALTER SEQUENCE repositories_id_seq OWNED BY repositories.id;
785
786
787 --
788 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace: 
789 --
790
791 CREATE TABLE schema_migrations (
792     version character varying(255) NOT NULL
793 );
794
795
796 --
797 -- Name: specimens; Type: TABLE; Schema: public; Owner: -; Tablespace: 
798 --
799
800 CREATE TABLE specimens (
801     id integer NOT NULL,
802     uuid character varying(255),
803     owner_uuid character varying(255),
804     created_at timestamp without time zone NOT NULL,
805     modified_by_client_uuid character varying(255),
806     modified_by_user_uuid character varying(255),
807     modified_at timestamp without time zone,
808     material character varying(255),
809     updated_at timestamp without time zone NOT NULL,
810     properties text
811 );
812
813
814 --
815 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
816 --
817
818 CREATE SEQUENCE specimens_id_seq
819     START WITH 1
820     INCREMENT BY 1
821     NO MINVALUE
822     NO MAXVALUE
823     CACHE 1;
824
825
826 --
827 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
828 --
829
830 ALTER SEQUENCE specimens_id_seq OWNED BY specimens.id;
831
832
833 --
834 -- Name: traits; Type: TABLE; Schema: public; Owner: -; Tablespace: 
835 --
836
837 CREATE TABLE traits (
838     id integer NOT NULL,
839     uuid character varying(255) NOT NULL,
840     owner_uuid character varying(255) NOT NULL,
841     modified_by_client_uuid character varying(255),
842     modified_by_user_uuid character varying(255),
843     modified_at timestamp without time zone,
844     name character varying(255),
845     properties text,
846     created_at timestamp without time zone NOT NULL,
847     updated_at timestamp without time zone NOT NULL
848 );
849
850
851 --
852 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
853 --
854
855 CREATE SEQUENCE traits_id_seq
856     START WITH 1
857     INCREMENT BY 1
858     NO MINVALUE
859     NO MAXVALUE
860     CACHE 1;
861
862
863 --
864 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
865 --
866
867 ALTER SEQUENCE traits_id_seq OWNED BY traits.id;
868
869
870 --
871 -- Name: users; Type: TABLE; Schema: public; Owner: -; Tablespace: 
872 --
873
874 CREATE TABLE users (
875     id integer NOT NULL,
876     uuid character varying(255),
877     owner_uuid character varying(255) NOT NULL,
878     created_at timestamp without time zone NOT NULL,
879     modified_by_client_uuid character varying(255),
880     modified_by_user_uuid character varying(255),
881     modified_at timestamp without time zone,
882     email character varying(255),
883     first_name character varying(255),
884     last_name character varying(255),
885     identity_url character varying(255),
886     is_admin boolean,
887     prefs text,
888     updated_at timestamp without time zone NOT NULL,
889     default_owner_uuid character varying(255),
890     is_active boolean DEFAULT false,
891     username character varying(255)
892 );
893
894
895 --
896 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
897 --
898
899 CREATE SEQUENCE users_id_seq
900     START WITH 1
901     INCREMENT BY 1
902     NO MINVALUE
903     NO MAXVALUE
904     CACHE 1;
905
906
907 --
908 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
909 --
910
911 ALTER SEQUENCE users_id_seq OWNED BY users.id;
912
913
914 --
915 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -; Tablespace: 
916 --
917
918 CREATE TABLE virtual_machines (
919     id integer NOT NULL,
920     uuid character varying(255) NOT NULL,
921     owner_uuid character varying(255) NOT NULL,
922     modified_by_client_uuid character varying(255),
923     modified_by_user_uuid character varying(255),
924     modified_at timestamp without time zone,
925     hostname character varying(255),
926     created_at timestamp without time zone NOT NULL,
927     updated_at timestamp without time zone NOT NULL
928 );
929
930
931 --
932 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
933 --
934
935 CREATE SEQUENCE virtual_machines_id_seq
936     START WITH 1
937     INCREMENT BY 1
938     NO MINVALUE
939     NO MAXVALUE
940     CACHE 1;
941
942
943 --
944 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
945 --
946
947 ALTER SEQUENCE virtual_machines_id_seq OWNED BY virtual_machines.id;
948
949
950 --
951 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
952 --
953
954 ALTER TABLE ONLY api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('api_client_authorizations_id_seq'::regclass);
955
956
957 --
958 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
959 --
960
961 ALTER TABLE ONLY api_clients ALTER COLUMN id SET DEFAULT nextval('api_clients_id_seq'::regclass);
962
963
964 --
965 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
966 --
967
968 ALTER TABLE ONLY authorized_keys ALTER COLUMN id SET DEFAULT nextval('authorized_keys_id_seq'::regclass);
969
970
971 --
972 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
973 --
974
975 ALTER TABLE ONLY collections ALTER COLUMN id SET DEFAULT nextval('collections_id_seq'::regclass);
976
977
978 --
979 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
980 --
981
982 ALTER TABLE ONLY commit_ancestors ALTER COLUMN id SET DEFAULT nextval('commit_ancestors_id_seq'::regclass);
983
984
985 --
986 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
987 --
988
989 ALTER TABLE ONLY commits ALTER COLUMN id SET DEFAULT nextval('commits_id_seq'::regclass);
990
991
992 --
993 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
994 --
995
996 ALTER TABLE ONLY groups ALTER COLUMN id SET DEFAULT nextval('groups_id_seq'::regclass);
997
998
999 --
1000 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1001 --
1002
1003 ALTER TABLE ONLY humans ALTER COLUMN id SET DEFAULT nextval('humans_id_seq'::regclass);
1004
1005
1006 --
1007 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1008 --
1009
1010 ALTER TABLE ONLY job_tasks ALTER COLUMN id SET DEFAULT nextval('job_tasks_id_seq'::regclass);
1011
1012
1013 --
1014 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1015 --
1016
1017 ALTER TABLE ONLY jobs ALTER COLUMN id SET DEFAULT nextval('jobs_id_seq'::regclass);
1018
1019
1020 --
1021 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1022 --
1023
1024 ALTER TABLE ONLY keep_disks ALTER COLUMN id SET DEFAULT nextval('keep_disks_id_seq'::regclass);
1025
1026
1027 --
1028 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1029 --
1030
1031 ALTER TABLE ONLY keep_services ALTER COLUMN id SET DEFAULT nextval('keep_services_id_seq'::regclass);
1032
1033
1034 --
1035 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1036 --
1037
1038 ALTER TABLE ONLY links ALTER COLUMN id SET DEFAULT nextval('links_id_seq'::regclass);
1039
1040
1041 --
1042 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1043 --
1044
1045 ALTER TABLE ONLY logs ALTER COLUMN id SET DEFAULT nextval('logs_id_seq'::regclass);
1046
1047
1048 --
1049 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1050 --
1051
1052 ALTER TABLE ONLY nodes ALTER COLUMN id SET DEFAULT nextval('nodes_id_seq'::regclass);
1053
1054
1055 --
1056 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1057 --
1058
1059 ALTER TABLE ONLY pipeline_instances ALTER COLUMN id SET DEFAULT nextval('pipeline_instances_id_seq'::regclass);
1060
1061
1062 --
1063 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1064 --
1065
1066 ALTER TABLE ONLY pipeline_templates ALTER COLUMN id SET DEFAULT nextval('pipeline_templates_id_seq'::regclass);
1067
1068
1069 --
1070 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1071 --
1072
1073 ALTER TABLE ONLY repositories ALTER COLUMN id SET DEFAULT nextval('repositories_id_seq'::regclass);
1074
1075
1076 --
1077 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1078 --
1079
1080 ALTER TABLE ONLY specimens ALTER COLUMN id SET DEFAULT nextval('specimens_id_seq'::regclass);
1081
1082
1083 --
1084 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1085 --
1086
1087 ALTER TABLE ONLY traits ALTER COLUMN id SET DEFAULT nextval('traits_id_seq'::regclass);
1088
1089
1090 --
1091 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1092 --
1093
1094 ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
1095
1096
1097 --
1098 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1099 --
1100
1101 ALTER TABLE ONLY virtual_machines ALTER COLUMN id SET DEFAULT nextval('virtual_machines_id_seq'::regclass);
1102
1103
1104 --
1105 -- Name: api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1106 --
1107
1108 ALTER TABLE ONLY api_client_authorizations
1109     ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1110
1111
1112 --
1113 -- Name: api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1114 --
1115
1116 ALTER TABLE ONLY api_clients
1117     ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1118
1119
1120 --
1121 -- Name: authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1122 --
1123
1124 ALTER TABLE ONLY authorized_keys
1125     ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1126
1127
1128 --
1129 -- Name: collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1130 --
1131
1132 ALTER TABLE ONLY collections
1133     ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1134
1135
1136 --
1137 -- Name: commit_ancestors_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1138 --
1139
1140 ALTER TABLE ONLY commit_ancestors
1141     ADD CONSTRAINT commit_ancestors_pkey PRIMARY KEY (id);
1142
1143
1144 --
1145 -- Name: commits_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1146 --
1147
1148 ALTER TABLE ONLY commits
1149     ADD CONSTRAINT commits_pkey PRIMARY KEY (id);
1150
1151
1152 --
1153 -- Name: groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1154 --
1155
1156 ALTER TABLE ONLY groups
1157     ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1158
1159
1160 --
1161 -- Name: humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1162 --
1163
1164 ALTER TABLE ONLY humans
1165     ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1166
1167
1168 --
1169 -- Name: job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1170 --
1171
1172 ALTER TABLE ONLY job_tasks
1173     ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1174
1175
1176 --
1177 -- Name: jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1178 --
1179
1180 ALTER TABLE ONLY jobs
1181     ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1182
1183
1184 --
1185 -- Name: keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1186 --
1187
1188 ALTER TABLE ONLY keep_disks
1189     ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1190
1191
1192 --
1193 -- Name: keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1194 --
1195
1196 ALTER TABLE ONLY keep_services
1197     ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1198
1199
1200 --
1201 -- Name: links_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1202 --
1203
1204 ALTER TABLE ONLY links
1205     ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1206
1207
1208 --
1209 -- Name: logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1210 --
1211
1212 ALTER TABLE ONLY logs
1213     ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1214
1215
1216 --
1217 -- Name: nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1218 --
1219
1220 ALTER TABLE ONLY nodes
1221     ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1222
1223
1224 --
1225 -- Name: pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1226 --
1227
1228 ALTER TABLE ONLY pipeline_instances
1229     ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1230
1231
1232 --
1233 -- Name: pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1234 --
1235
1236 ALTER TABLE ONLY pipeline_templates
1237     ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1238
1239
1240 --
1241 -- Name: repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1242 --
1243
1244 ALTER TABLE ONLY repositories
1245     ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1246
1247
1248 --
1249 -- Name: specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1250 --
1251
1252 ALTER TABLE ONLY specimens
1253     ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1254
1255
1256 --
1257 -- Name: traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1258 --
1259
1260 ALTER TABLE ONLY traits
1261     ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1262
1263
1264 --
1265 -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1266 --
1267
1268 ALTER TABLE ONLY users
1269     ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1270
1271
1272 --
1273 -- Name: virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1274 --
1275
1276 ALTER TABLE ONLY virtual_machines
1277     ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1278
1279
1280 --
1281 -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1282 --
1283
1284 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);
1285
1286
1287 --
1288 -- Name: api_clients_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1289 --
1290
1291 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);
1292
1293
1294 --
1295 -- Name: authorized_keys_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1296 --
1297
1298 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);
1299
1300
1301 --
1302 -- Name: collection_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1303 --
1304
1305 CREATE UNIQUE INDEX collection_owner_uuid_name_unique ON collections USING btree (owner_uuid, name) WHERE (expires_at IS NULL);
1306
1307
1308 --
1309 -- Name: collections_full_text_search_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1310 --
1311
1312 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)));
1313
1314
1315 --
1316 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1317 --
1318
1319 CREATE INDEX collections_search_index ON collections USING btree (owner_uuid, modified_by_client_uuid, modified_by_user_uuid, portable_data_hash, uuid, name);
1320
1321
1322 --
1323 -- Name: groups_full_text_search_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1324 --
1325
1326 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)));
1327
1328
1329 --
1330 -- Name: groups_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1331 --
1332
1333 CREATE UNIQUE INDEX groups_owner_uuid_name_unique ON groups USING btree (owner_uuid, name);
1334
1335
1336 --
1337 -- Name: groups_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1338 --
1339
1340 CREATE INDEX groups_search_index ON groups USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, group_class);
1341
1342
1343 --
1344 -- Name: humans_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1345 --
1346
1347 CREATE INDEX humans_search_index ON humans USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid);
1348
1349
1350 --
1351 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1352 --
1353
1354 CREATE INDEX index_api_client_authorizations_on_api_client_id ON api_client_authorizations USING btree (api_client_id);
1355
1356
1357 --
1358 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1359 --
1360
1361 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON api_client_authorizations USING btree (api_token);
1362
1363
1364 --
1365 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1366 --
1367
1368 CREATE INDEX index_api_client_authorizations_on_expires_at ON api_client_authorizations USING btree (expires_at);
1369
1370
1371 --
1372 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1373 --
1374
1375 CREATE INDEX index_api_client_authorizations_on_user_id ON api_client_authorizations USING btree (user_id);
1376
1377
1378 --
1379 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1380 --
1381
1382 CREATE INDEX index_api_clients_on_created_at ON api_clients USING btree (created_at);
1383
1384
1385 --
1386 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1387 --
1388
1389 CREATE INDEX index_api_clients_on_modified_at ON api_clients USING btree (modified_at);
1390
1391
1392 --
1393 -- Name: index_api_clients_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1394 --
1395
1396 CREATE INDEX index_api_clients_on_owner_uuid ON api_clients USING btree (owner_uuid);
1397
1398
1399 --
1400 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1401 --
1402
1403 CREATE UNIQUE INDEX index_api_clients_on_uuid ON api_clients USING btree (uuid);
1404
1405
1406 --
1407 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1408 --
1409
1410 CREATE INDEX index_authkeys_on_user_and_expires_at ON authorized_keys USING btree (authorized_user_uuid, expires_at);
1411
1412
1413 --
1414 -- Name: index_authorized_keys_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1415 --
1416
1417 CREATE INDEX index_authorized_keys_on_owner_uuid ON authorized_keys USING btree (owner_uuid);
1418
1419
1420 --
1421 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1422 --
1423
1424 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON authorized_keys USING btree (uuid);
1425
1426
1427 --
1428 -- Name: index_collections_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1429 --
1430
1431 CREATE INDEX index_collections_on_created_at ON collections USING btree (created_at);
1432
1433
1434 --
1435 -- Name: index_collections_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1436 --
1437
1438 CREATE INDEX index_collections_on_modified_at ON collections USING btree (modified_at);
1439
1440
1441 --
1442 -- Name: index_collections_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1443 --
1444
1445 CREATE INDEX index_collections_on_owner_uuid ON collections USING btree (owner_uuid);
1446
1447
1448 --
1449 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1450 --
1451
1452 CREATE UNIQUE INDEX index_collections_on_uuid ON collections USING btree (uuid);
1453
1454
1455 --
1456 -- Name: index_commit_ancestors_on_descendant_and_ancestor; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1457 --
1458
1459 CREATE UNIQUE INDEX index_commit_ancestors_on_descendant_and_ancestor ON commit_ancestors USING btree (descendant, ancestor);
1460
1461
1462 --
1463 -- Name: index_commits_on_repository_name_and_sha1; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1464 --
1465
1466 CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON commits USING btree (repository_name, sha1);
1467
1468
1469 --
1470 -- Name: index_groups_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1471 --
1472
1473 CREATE INDEX index_groups_on_created_at ON groups USING btree (created_at);
1474
1475
1476 --
1477 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1478 --
1479
1480 CREATE INDEX index_groups_on_group_class ON groups USING btree (group_class);
1481
1482
1483 --
1484 -- Name: index_groups_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1485 --
1486
1487 CREATE INDEX index_groups_on_modified_at ON groups USING btree (modified_at);
1488
1489
1490 --
1491 -- Name: index_groups_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1492 --
1493
1494 CREATE INDEX index_groups_on_owner_uuid ON groups USING btree (owner_uuid);
1495
1496
1497 --
1498 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1499 --
1500
1501 CREATE UNIQUE INDEX index_groups_on_uuid ON groups USING btree (uuid);
1502
1503
1504 --
1505 -- Name: index_humans_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1506 --
1507
1508 CREATE INDEX index_humans_on_owner_uuid ON humans USING btree (owner_uuid);
1509
1510
1511 --
1512 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1513 --
1514
1515 CREATE UNIQUE INDEX index_humans_on_uuid ON humans USING btree (uuid);
1516
1517
1518 --
1519 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1520 --
1521
1522 CREATE INDEX index_job_tasks_on_created_at ON job_tasks USING btree (created_at);
1523
1524
1525 --
1526 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1527 --
1528
1529 CREATE INDEX index_job_tasks_on_job_uuid ON job_tasks USING btree (job_uuid);
1530
1531
1532 --
1533 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1534 --
1535
1536 CREATE INDEX index_job_tasks_on_modified_at ON job_tasks USING btree (modified_at);
1537
1538
1539 --
1540 -- Name: index_job_tasks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1541 --
1542
1543 CREATE INDEX index_job_tasks_on_owner_uuid ON job_tasks USING btree (owner_uuid);
1544
1545
1546 --
1547 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1548 --
1549
1550 CREATE INDEX index_job_tasks_on_sequence ON job_tasks USING btree (sequence);
1551
1552
1553 --
1554 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1555 --
1556
1557 CREATE INDEX index_job_tasks_on_success ON job_tasks USING btree (success);
1558
1559
1560 --
1561 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1562 --
1563
1564 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON job_tasks USING btree (uuid);
1565
1566
1567 --
1568 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1569 --
1570
1571 CREATE INDEX index_jobs_on_created_at ON jobs USING btree (created_at);
1572
1573
1574 --
1575 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1576 --
1577
1578 CREATE INDEX index_jobs_on_finished_at ON jobs USING btree (finished_at);
1579
1580
1581 --
1582 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1583 --
1584
1585 CREATE INDEX index_jobs_on_modified_at ON jobs USING btree (modified_at);
1586
1587
1588 --
1589 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1590 --
1591
1592 CREATE INDEX index_jobs_on_output ON jobs USING btree (output);
1593
1594
1595 --
1596 -- Name: index_jobs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1597 --
1598
1599 CREATE INDEX index_jobs_on_owner_uuid ON jobs USING btree (owner_uuid);
1600
1601
1602 --
1603 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1604 --
1605
1606 CREATE INDEX index_jobs_on_script ON jobs USING btree (script);
1607
1608
1609 --
1610 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1611 --
1612
1613 CREATE INDEX index_jobs_on_started_at ON jobs USING btree (started_at);
1614
1615
1616 --
1617 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1618 --
1619
1620 CREATE UNIQUE INDEX index_jobs_on_submit_id ON jobs USING btree (submit_id);
1621
1622
1623 --
1624 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1625 --
1626
1627 CREATE UNIQUE INDEX index_jobs_on_uuid ON jobs USING btree (uuid);
1628
1629
1630 --
1631 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1632 --
1633
1634 CREATE INDEX index_keep_disks_on_filesystem_uuid ON keep_disks USING btree (filesystem_uuid);
1635
1636
1637 --
1638 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1639 --
1640
1641 CREATE INDEX index_keep_disks_on_last_ping_at ON keep_disks USING btree (last_ping_at);
1642
1643
1644 --
1645 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1646 --
1647
1648 CREATE INDEX index_keep_disks_on_node_uuid ON keep_disks USING btree (node_uuid);
1649
1650
1651 --
1652 -- Name: index_keep_disks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1653 --
1654
1655 CREATE INDEX index_keep_disks_on_owner_uuid ON keep_disks USING btree (owner_uuid);
1656
1657
1658 --
1659 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1660 --
1661
1662 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON keep_disks USING btree (uuid);
1663
1664
1665 --
1666 -- Name: index_keep_services_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1667 --
1668
1669 CREATE INDEX index_keep_services_on_owner_uuid ON keep_services USING btree (owner_uuid);
1670
1671
1672 --
1673 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1674 --
1675
1676 CREATE UNIQUE INDEX index_keep_services_on_uuid ON keep_services USING btree (uuid);
1677
1678
1679 --
1680 -- Name: index_links_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1681 --
1682
1683 CREATE INDEX index_links_on_created_at ON links USING btree (created_at);
1684
1685
1686 --
1687 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1688 --
1689
1690 CREATE INDEX index_links_on_head_uuid ON links USING btree (head_uuid);
1691
1692
1693 --
1694 -- Name: index_links_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1695 --
1696
1697 CREATE INDEX index_links_on_modified_at ON links USING btree (modified_at);
1698
1699
1700 --
1701 -- Name: index_links_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1702 --
1703
1704 CREATE INDEX index_links_on_owner_uuid ON links USING btree (owner_uuid);
1705
1706
1707 --
1708 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1709 --
1710
1711 CREATE INDEX index_links_on_tail_uuid ON links USING btree (tail_uuid);
1712
1713
1714 --
1715 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1716 --
1717
1718 CREATE UNIQUE INDEX index_links_on_uuid ON links USING btree (uuid);
1719
1720
1721 --
1722 -- Name: index_logs_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1723 --
1724
1725 CREATE INDEX index_logs_on_created_at ON logs USING btree (created_at);
1726
1727
1728 --
1729 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1730 --
1731
1732 CREATE INDEX index_logs_on_event_at ON logs USING btree (event_at);
1733
1734
1735 --
1736 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1737 --
1738
1739 CREATE INDEX index_logs_on_event_type ON logs USING btree (event_type);
1740
1741
1742 --
1743 -- Name: index_logs_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1744 --
1745
1746 CREATE INDEX index_logs_on_modified_at ON logs USING btree (modified_at);
1747
1748
1749 --
1750 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1751 --
1752
1753 CREATE INDEX index_logs_on_object_uuid ON logs USING btree (object_uuid);
1754
1755
1756 --
1757 -- Name: index_logs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1758 --
1759
1760 CREATE INDEX index_logs_on_owner_uuid ON logs USING btree (owner_uuid);
1761
1762
1763 --
1764 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1765 --
1766
1767 CREATE INDEX index_logs_on_summary ON logs USING btree (summary);
1768
1769
1770 --
1771 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1772 --
1773
1774 CREATE UNIQUE INDEX index_logs_on_uuid ON logs USING btree (uuid);
1775
1776
1777 --
1778 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1779 --
1780
1781 CREATE INDEX index_nodes_on_created_at ON nodes USING btree (created_at);
1782
1783
1784 --
1785 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1786 --
1787
1788 CREATE INDEX index_nodes_on_hostname ON nodes USING btree (hostname);
1789
1790
1791 --
1792 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1793 --
1794
1795 CREATE INDEX index_nodes_on_modified_at ON nodes USING btree (modified_at);
1796
1797
1798 --
1799 -- Name: index_nodes_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1800 --
1801
1802 CREATE INDEX index_nodes_on_owner_uuid ON nodes USING btree (owner_uuid);
1803
1804
1805 --
1806 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1807 --
1808
1809 CREATE UNIQUE INDEX index_nodes_on_slot_number ON nodes USING btree (slot_number);
1810
1811
1812 --
1813 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1814 --
1815
1816 CREATE UNIQUE INDEX index_nodes_on_uuid ON nodes USING btree (uuid);
1817
1818
1819 --
1820 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1821 --
1822
1823 CREATE INDEX index_pipeline_instances_on_created_at ON pipeline_instances USING btree (created_at);
1824
1825
1826 --
1827 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1828 --
1829
1830 CREATE INDEX index_pipeline_instances_on_modified_at ON pipeline_instances USING btree (modified_at);
1831
1832
1833 --
1834 -- Name: index_pipeline_instances_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1835 --
1836
1837 CREATE INDEX index_pipeline_instances_on_owner_uuid ON pipeline_instances USING btree (owner_uuid);
1838
1839
1840 --
1841 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1842 --
1843
1844 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON pipeline_instances USING btree (uuid);
1845
1846
1847 --
1848 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1849 --
1850
1851 CREATE INDEX index_pipeline_templates_on_created_at ON pipeline_templates USING btree (created_at);
1852
1853
1854 --
1855 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1856 --
1857
1858 CREATE INDEX index_pipeline_templates_on_modified_at ON pipeline_templates USING btree (modified_at);
1859
1860
1861 --
1862 -- Name: index_pipeline_templates_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1863 --
1864
1865 CREATE INDEX index_pipeline_templates_on_owner_uuid ON pipeline_templates USING btree (owner_uuid);
1866
1867
1868 --
1869 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1870 --
1871
1872 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON pipeline_templates USING btree (uuid);
1873
1874
1875 --
1876 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1877 --
1878
1879 CREATE UNIQUE INDEX index_repositories_on_name ON repositories USING btree (name);
1880
1881
1882 --
1883 -- Name: index_repositories_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1884 --
1885
1886 CREATE INDEX index_repositories_on_owner_uuid ON repositories USING btree (owner_uuid);
1887
1888
1889 --
1890 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1891 --
1892
1893 CREATE UNIQUE INDEX index_repositories_on_uuid ON repositories USING btree (uuid);
1894
1895
1896 --
1897 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1898 --
1899
1900 CREATE INDEX index_specimens_on_created_at ON specimens USING btree (created_at);
1901
1902
1903 --
1904 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1905 --
1906
1907 CREATE INDEX index_specimens_on_modified_at ON specimens USING btree (modified_at);
1908
1909
1910 --
1911 -- Name: index_specimens_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1912 --
1913
1914 CREATE INDEX index_specimens_on_owner_uuid ON specimens USING btree (owner_uuid);
1915
1916
1917 --
1918 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1919 --
1920
1921 CREATE UNIQUE INDEX index_specimens_on_uuid ON specimens USING btree (uuid);
1922
1923
1924 --
1925 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1926 --
1927
1928 CREATE INDEX index_traits_on_name ON traits USING btree (name);
1929
1930
1931 --
1932 -- Name: index_traits_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1933 --
1934
1935 CREATE INDEX index_traits_on_owner_uuid ON traits USING btree (owner_uuid);
1936
1937
1938 --
1939 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1940 --
1941
1942 CREATE UNIQUE INDEX index_traits_on_uuid ON traits USING btree (uuid);
1943
1944
1945 --
1946 -- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1947 --
1948
1949 CREATE INDEX index_users_on_created_at ON users USING btree (created_at);
1950
1951
1952 --
1953 -- Name: index_users_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1954 --
1955
1956 CREATE INDEX index_users_on_modified_at ON users USING btree (modified_at);
1957
1958
1959 --
1960 -- Name: index_users_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1961 --
1962
1963 CREATE INDEX index_users_on_owner_uuid ON users USING btree (owner_uuid);
1964
1965
1966 --
1967 -- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1968 --
1969
1970 CREATE UNIQUE INDEX index_users_on_username ON users USING btree (username);
1971
1972
1973 --
1974 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1975 --
1976
1977 CREATE UNIQUE INDEX index_users_on_uuid ON users USING btree (uuid);
1978
1979
1980 --
1981 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1982 --
1983
1984 CREATE INDEX index_virtual_machines_on_hostname ON virtual_machines USING btree (hostname);
1985
1986
1987 --
1988 -- Name: index_virtual_machines_on_owner_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1989 --
1990
1991 CREATE INDEX index_virtual_machines_on_owner_uuid ON virtual_machines USING btree (owner_uuid);
1992
1993
1994 --
1995 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1996 --
1997
1998 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON virtual_machines USING btree (uuid);
1999
2000
2001 --
2002 -- Name: job_tasks_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2003 --
2004
2005 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);
2006
2007
2008 --
2009 -- Name: jobs_full_text_search_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2010 --
2011
2012 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)));
2013
2014
2015 --
2016 -- Name: jobs_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2017 --
2018
2019 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);
2020
2021
2022 --
2023 -- Name: keep_disks_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2024 --
2025
2026 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);
2027
2028
2029 --
2030 -- Name: keep_services_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2031 --
2032
2033 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);
2034
2035
2036 --
2037 -- Name: links_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2038 --
2039
2040 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);
2041
2042
2043 --
2044 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2045 --
2046
2047 CREATE UNIQUE INDEX links_tail_name_unique_if_link_class_name ON links USING btree (tail_uuid, name) WHERE ((link_class)::text = 'name'::text);
2048
2049
2050 --
2051 -- Name: logs_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2052 --
2053
2054 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);
2055
2056
2057 --
2058 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2059 --
2060
2061 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);
2062
2063
2064 --
2065 -- Name: pipeline_instances_full_text_search_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2066 --
2067
2068 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)));
2069
2070
2071 --
2072 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2073 --
2074
2075 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);
2076
2077
2078 --
2079 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2080 --
2081
2082 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON pipeline_templates USING btree (owner_uuid, name);
2083
2084
2085 --
2086 -- Name: pipeline_templates_full_text_search_idx; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2087 --
2088
2089 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)));
2090
2091
2092 --
2093 -- Name: pipeline_templates_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2094 --
2095
2096 CREATE INDEX pipeline_templates_search_index ON pipeline_templates USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2097
2098
2099 --
2100 -- Name: repositories_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2101 --
2102
2103 CREATE INDEX repositories_search_index ON repositories USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2104
2105
2106 --
2107 -- Name: specimens_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2108 --
2109
2110 CREATE INDEX specimens_search_index ON specimens USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, material);
2111
2112
2113 --
2114 -- Name: traits_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2115 --
2116
2117 CREATE INDEX traits_search_index ON traits USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2118
2119
2120 --
2121 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2122 --
2123
2124 CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
2125
2126
2127 --
2128 -- Name: users_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2129 --
2130
2131 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);
2132
2133
2134 --
2135 -- Name: virtual_machines_search_index; Type: INDEX; Schema: public; Owner: -; Tablespace: 
2136 --
2137
2138 CREATE INDEX virtual_machines_search_index ON virtual_machines USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname);
2139
2140
2141 --
2142 -- PostgreSQL database dump complete
2143 --
2144
2145 SET search_path TO "$user",public;
2146
2147 INSERT INTO schema_migrations (version) VALUES ('20121016005009');
2148
2149 INSERT INTO schema_migrations (version) VALUES ('20130105203021');
2150
2151 INSERT INTO schema_migrations (version) VALUES ('20130105224358');
2152
2153 INSERT INTO schema_migrations (version) VALUES ('20130105224618');
2154
2155 INSERT INTO schema_migrations (version) VALUES ('20130107181109');
2156
2157 INSERT INTO schema_migrations (version) VALUES ('20130107212832');
2158
2159 INSERT INTO schema_migrations (version) VALUES ('20130109175700');
2160
2161 INSERT INTO schema_migrations (version) VALUES ('20130109220548');
2162
2163 INSERT INTO schema_migrations (version) VALUES ('20130113214204');
2164
2165 INSERT INTO schema_migrations (version) VALUES ('20130116024233');
2166
2167 INSERT INTO schema_migrations (version) VALUES ('20130116215213');
2168
2169 INSERT INTO schema_migrations (version) VALUES ('20130118002239');
2170
2171 INSERT INTO schema_migrations (version) VALUES ('20130122020042');
2172
2173 INSERT INTO schema_migrations (version) VALUES ('20130122201442');
2174
2175 INSERT INTO schema_migrations (version) VALUES ('20130122221616');
2176
2177 INSERT INTO schema_migrations (version) VALUES ('20130123174514');
2178
2179 INSERT INTO schema_migrations (version) VALUES ('20130123180224');
2180
2181 INSERT INTO schema_migrations (version) VALUES ('20130123180228');
2182
2183 INSERT INTO schema_migrations (version) VALUES ('20130125220425');
2184
2185 INSERT INTO schema_migrations (version) VALUES ('20130128202518');
2186
2187 INSERT INTO schema_migrations (version) VALUES ('20130128231343');
2188
2189 INSERT INTO schema_migrations (version) VALUES ('20130130205749');
2190
2191 INSERT INTO schema_migrations (version) VALUES ('20130203104818');
2192
2193 INSERT INTO schema_migrations (version) VALUES ('20130203104824');
2194
2195 INSERT INTO schema_migrations (version) VALUES ('20130203115329');
2196
2197 INSERT INTO schema_migrations (version) VALUES ('20130207195855');
2198
2199 INSERT INTO schema_migrations (version) VALUES ('20130218181504');
2200
2201 INSERT INTO schema_migrations (version) VALUES ('20130226170000');
2202
2203 INSERT INTO schema_migrations (version) VALUES ('20130313175417');
2204
2205 INSERT INTO schema_migrations (version) VALUES ('20130315155820');
2206
2207 INSERT INTO schema_migrations (version) VALUES ('20130315183626');
2208
2209 INSERT INTO schema_migrations (version) VALUES ('20130315213205');
2210
2211 INSERT INTO schema_migrations (version) VALUES ('20130318002138');
2212
2213 INSERT INTO schema_migrations (version) VALUES ('20130319165853');
2214
2215 INSERT INTO schema_migrations (version) VALUES ('20130319180730');
2216
2217 INSERT INTO schema_migrations (version) VALUES ('20130319194637');
2218
2219 INSERT INTO schema_migrations (version) VALUES ('20130319201431');
2220
2221 INSERT INTO schema_migrations (version) VALUES ('20130319235957');
2222
2223 INSERT INTO schema_migrations (version) VALUES ('20130320000107');
2224
2225 INSERT INTO schema_migrations (version) VALUES ('20130326173804');
2226
2227 INSERT INTO schema_migrations (version) VALUES ('20130326182917');
2228
2229 INSERT INTO schema_migrations (version) VALUES ('20130415020241');
2230
2231 INSERT INTO schema_migrations (version) VALUES ('20130425024459');
2232
2233 INSERT INTO schema_migrations (version) VALUES ('20130425214427');
2234
2235 INSERT INTO schema_migrations (version) VALUES ('20130523060112');
2236
2237 INSERT INTO schema_migrations (version) VALUES ('20130523060213');
2238
2239 INSERT INTO schema_migrations (version) VALUES ('20130524042319');
2240
2241 INSERT INTO schema_migrations (version) VALUES ('20130528134100');
2242
2243 INSERT INTO schema_migrations (version) VALUES ('20130606183519');
2244
2245 INSERT INTO schema_migrations (version) VALUES ('20130608053730');
2246
2247 INSERT INTO schema_migrations (version) VALUES ('20130610202538');
2248
2249 INSERT INTO schema_migrations (version) VALUES ('20130611163736');
2250
2251 INSERT INTO schema_migrations (version) VALUES ('20130612042554');
2252
2253 INSERT INTO schema_migrations (version) VALUES ('20130617150007');
2254
2255 INSERT INTO schema_migrations (version) VALUES ('20130626002829');
2256
2257 INSERT INTO schema_migrations (version) VALUES ('20130626022810');
2258
2259 INSERT INTO schema_migrations (version) VALUES ('20130627154537');
2260
2261 INSERT INTO schema_migrations (version) VALUES ('20130627184333');
2262
2263 INSERT INTO schema_migrations (version) VALUES ('20130708163414');
2264
2265 INSERT INTO schema_migrations (version) VALUES ('20130708182912');
2266
2267 INSERT INTO schema_migrations (version) VALUES ('20130708185153');
2268
2269 INSERT INTO schema_migrations (version) VALUES ('20130724153034');
2270
2271 INSERT INTO schema_migrations (version) VALUES ('20131007180607');
2272
2273 INSERT INTO schema_migrations (version) VALUES ('20140117231056');
2274
2275 INSERT INTO schema_migrations (version) VALUES ('20140124222114');
2276
2277 INSERT INTO schema_migrations (version) VALUES ('20140129184311');
2278
2279 INSERT INTO schema_migrations (version) VALUES ('20140317135600');
2280
2281 INSERT INTO schema_migrations (version) VALUES ('20140319160547');
2282
2283 INSERT INTO schema_migrations (version) VALUES ('20140321191343');
2284
2285 INSERT INTO schema_migrations (version) VALUES ('20140324024606');
2286
2287 INSERT INTO schema_migrations (version) VALUES ('20140325175653');
2288
2289 INSERT INTO schema_migrations (version) VALUES ('20140402001908');
2290
2291 INSERT INTO schema_migrations (version) VALUES ('20140407184311');
2292
2293 INSERT INTO schema_migrations (version) VALUES ('20140421140924');
2294
2295 INSERT INTO schema_migrations (version) VALUES ('20140421151939');
2296
2297 INSERT INTO schema_migrations (version) VALUES ('20140421151940');
2298
2299 INSERT INTO schema_migrations (version) VALUES ('20140422011506');
2300
2301 INSERT INTO schema_migrations (version) VALUES ('20140423132913');
2302
2303 INSERT INTO schema_migrations (version) VALUES ('20140423133559');
2304
2305 INSERT INTO schema_migrations (version) VALUES ('20140501165548');
2306
2307 INSERT INTO schema_migrations (version) VALUES ('20140519205916');
2308
2309 INSERT INTO schema_migrations (version) VALUES ('20140527152921');
2310
2311 INSERT INTO schema_migrations (version) VALUES ('20140530200539');
2312
2313 INSERT INTO schema_migrations (version) VALUES ('20140601022548');
2314
2315 INSERT INTO schema_migrations (version) VALUES ('20140602143352');
2316
2317 INSERT INTO schema_migrations (version) VALUES ('20140607150616');
2318
2319 INSERT INTO schema_migrations (version) VALUES ('20140611173003');
2320
2321 INSERT INTO schema_migrations (version) VALUES ('20140627210837');
2322
2323 INSERT INTO schema_migrations (version) VALUES ('20140709172343');
2324
2325 INSERT INTO schema_migrations (version) VALUES ('20140714184006');
2326
2327 INSERT INTO schema_migrations (version) VALUES ('20140811184643');
2328
2329 INSERT INTO schema_migrations (version) VALUES ('20140817035914');
2330
2331 INSERT INTO schema_migrations (version) VALUES ('20140818125735');
2332
2333 INSERT INTO schema_migrations (version) VALUES ('20140826180337');
2334
2335 INSERT INTO schema_migrations (version) VALUES ('20140828141043');
2336
2337 INSERT INTO schema_migrations (version) VALUES ('20140909183946');
2338
2339 INSERT INTO schema_migrations (version) VALUES ('20140911221252');
2340
2341 INSERT INTO schema_migrations (version) VALUES ('20140918141529');
2342
2343 INSERT INTO schema_migrations (version) VALUES ('20140918153541');
2344
2345 INSERT INTO schema_migrations (version) VALUES ('20140918153705');
2346
2347 INSERT INTO schema_migrations (version) VALUES ('20140924091559');
2348
2349 INSERT INTO schema_migrations (version) VALUES ('20141111133038');
2350
2351 INSERT INTO schema_migrations (version) VALUES ('20141208164553');
2352
2353 INSERT INTO schema_migrations (version) VALUES ('20141208174553');
2354
2355 INSERT INTO schema_migrations (version) VALUES ('20141208174653');
2356
2357 INSERT INTO schema_migrations (version) VALUES ('20141208185217');
2358
2359 INSERT INTO schema_migrations (version) VALUES ('20150122175935');
2360
2361 INSERT INTO schema_migrations (version) VALUES ('20150123142953');
2362
2363 INSERT INTO schema_migrations (version) VALUES ('20150203180223');
2364
2365 INSERT INTO schema_migrations (version) VALUES ('20150206210804');
2366
2367 INSERT INTO schema_migrations (version) VALUES ('20150206230342');
2368
2369 INSERT INTO schema_migrations (version) VALUES ('20150216193428');
2370
2371 INSERT INTO schema_migrations (version) VALUES ('20150303210106');
2372
2373 INSERT INTO schema_migrations (version) VALUES ('20150312151136');
2374
2375 INSERT INTO schema_migrations (version) VALUES ('20150317132720');
2376
2377 INSERT INTO schema_migrations (version) VALUES ('20150324152204');
2378
2379 INSERT INTO schema_migrations (version) VALUES ('20150423145759');