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