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