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