3822: Updated Gemfile
[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     redundancy integer,
163     redundancy_confirmed_by_client_uuid character varying(255),
164     redundancy_confirmed_at timestamp without time zone,
165     redundancy_confirmed_as 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(255),
171     properties text,
172     expires_at date
173 );
174
175
176 --
177 -- Name: collections_id_seq; Type: SEQUENCE; Schema: public; Owner: -
178 --
179
180 CREATE SEQUENCE collections_id_seq
181     START WITH 1
182     INCREMENT BY 1
183     NO MINVALUE
184     NO MAXVALUE
185     CACHE 1;
186
187
188 --
189 -- Name: collections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
190 --
191
192 ALTER SEQUENCE collections_id_seq OWNED BY collections.id;
193
194
195 --
196 -- Name: commit_ancestors; Type: TABLE; Schema: public; Owner: -; Tablespace: 
197 --
198
199 CREATE TABLE commit_ancestors (
200     id integer NOT NULL,
201     repository_name character varying(255),
202     descendant character varying(255) NOT NULL,
203     ancestor character varying(255) NOT NULL,
204     "is" boolean DEFAULT false NOT NULL,
205     created_at timestamp without time zone NOT NULL,
206     updated_at timestamp without time zone NOT NULL
207 );
208
209
210 --
211 -- Name: commit_ancestors_id_seq; Type: SEQUENCE; Schema: public; Owner: -
212 --
213
214 CREATE SEQUENCE commit_ancestors_id_seq
215     START WITH 1
216     INCREMENT BY 1
217     NO MINVALUE
218     NO MAXVALUE
219     CACHE 1;
220
221
222 --
223 -- Name: commit_ancestors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
224 --
225
226 ALTER SEQUENCE commit_ancestors_id_seq OWNED BY commit_ancestors.id;
227
228
229 --
230 -- Name: commits; Type: TABLE; Schema: public; Owner: -; Tablespace: 
231 --
232
233 CREATE TABLE commits (
234     id integer NOT NULL,
235     repository_name character varying(255),
236     sha1 character varying(255),
237     message character varying(255),
238     created_at timestamp without time zone NOT NULL,
239     updated_at timestamp without time zone NOT NULL
240 );
241
242
243 --
244 -- Name: commits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
245 --
246
247 CREATE SEQUENCE commits_id_seq
248     START WITH 1
249     INCREMENT BY 1
250     NO MINVALUE
251     NO MAXVALUE
252     CACHE 1;
253
254
255 --
256 -- Name: commits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
257 --
258
259 ALTER SEQUENCE commits_id_seq OWNED BY commits.id;
260
261
262 --
263 -- Name: groups; Type: TABLE; Schema: public; Owner: -; Tablespace: 
264 --
265
266 CREATE TABLE groups (
267     id integer NOT NULL,
268     uuid character varying(255),
269     owner_uuid character varying(255),
270     created_at timestamp without time zone NOT NULL,
271     modified_by_client_uuid character varying(255),
272     modified_by_user_uuid character varying(255),
273     modified_at timestamp without time zone,
274     name character varying(255) NOT NULL,
275     description text,
276     updated_at timestamp without time zone NOT NULL,
277     group_class character varying(255)
278 );
279
280
281 --
282 -- Name: groups_id_seq; Type: SEQUENCE; Schema: public; Owner: -
283 --
284
285 CREATE SEQUENCE groups_id_seq
286     START WITH 1
287     INCREMENT BY 1
288     NO MINVALUE
289     NO MAXVALUE
290     CACHE 1;
291
292
293 --
294 -- Name: groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
295 --
296
297 ALTER SEQUENCE groups_id_seq OWNED BY groups.id;
298
299
300 --
301 -- Name: humans; Type: TABLE; Schema: public; Owner: -; Tablespace: 
302 --
303
304 CREATE TABLE humans (
305     id integer NOT NULL,
306     uuid character varying(255) NOT NULL,
307     owner_uuid character varying(255) NOT NULL,
308     modified_by_client_uuid character varying(255),
309     modified_by_user_uuid character varying(255),
310     modified_at timestamp without time zone,
311     properties text,
312     created_at timestamp without time zone NOT NULL,
313     updated_at timestamp without time zone NOT NULL
314 );
315
316
317 --
318 -- Name: humans_id_seq; Type: SEQUENCE; Schema: public; Owner: -
319 --
320
321 CREATE SEQUENCE humans_id_seq
322     START WITH 1
323     INCREMENT BY 1
324     NO MINVALUE
325     NO MAXVALUE
326     CACHE 1;
327
328
329 --
330 -- Name: humans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
331 --
332
333 ALTER SEQUENCE humans_id_seq OWNED BY humans.id;
334
335
336 --
337 -- Name: job_tasks; Type: TABLE; Schema: public; Owner: -; Tablespace: 
338 --
339
340 CREATE TABLE job_tasks (
341     id integer NOT NULL,
342     uuid character varying(255),
343     owner_uuid character varying(255),
344     modified_by_client_uuid character varying(255),
345     modified_by_user_uuid character varying(255),
346     modified_at timestamp without time zone,
347     job_uuid character varying(255),
348     sequence integer,
349     parameters text,
350     output text,
351     progress double precision,
352     success boolean,
353     created_at timestamp without time zone NOT NULL,
354     updated_at timestamp without time zone NOT NULL,
355     created_by_job_task_uuid character varying(255),
356     qsequence bigint
357 );
358
359
360 --
361 -- Name: job_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
362 --
363
364 CREATE SEQUENCE job_tasks_id_seq
365     START WITH 1
366     INCREMENT BY 1
367     NO MINVALUE
368     NO MAXVALUE
369     CACHE 1;
370
371
372 --
373 -- Name: job_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
374 --
375
376 ALTER SEQUENCE job_tasks_id_seq OWNED BY job_tasks.id;
377
378
379 --
380 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE; Schema: public; Owner: -
381 --
382
383 CREATE SEQUENCE job_tasks_qsequence_seq
384     START WITH 1
385     INCREMENT BY 1
386     NO MINVALUE
387     NO MAXVALUE
388     CACHE 1;
389
390
391 --
392 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
393 --
394
395 ALTER SEQUENCE job_tasks_qsequence_seq OWNED BY job_tasks.qsequence;
396
397
398 --
399 -- Name: jobs; Type: TABLE; Schema: public; Owner: -; Tablespace: 
400 --
401
402 CREATE TABLE jobs (
403     id integer NOT NULL,
404     uuid character varying(255),
405     owner_uuid character varying(255),
406     modified_by_client_uuid character varying(255),
407     modified_by_user_uuid character varying(255),
408     modified_at timestamp without time zone,
409     submit_id character varying(255),
410     script character varying(255),
411     script_version character varying(255),
412     script_parameters text,
413     cancelled_by_client_uuid character varying(255),
414     cancelled_by_user_uuid character varying(255),
415     cancelled_at timestamp without time zone,
416     started_at timestamp without time zone,
417     finished_at timestamp without time zone,
418     running boolean,
419     success boolean,
420     output character varying(255),
421     created_at timestamp without time zone NOT NULL,
422     updated_at timestamp without time zone NOT NULL,
423     priority character varying(255),
424     is_locked_by_uuid character varying(255),
425     log character varying(255),
426     tasks_summary text,
427     runtime_constraints text,
428     nondeterministic boolean,
429     repository character varying(255),
430     supplied_script_version character varying(255),
431     docker_image_locator character varying(255),
432     name character varying(255),
433     description text
434 );
435
436
437 --
438 -- Name: jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
439 --
440
441 CREATE SEQUENCE jobs_id_seq
442     START WITH 1
443     INCREMENT BY 1
444     NO MINVALUE
445     NO MAXVALUE
446     CACHE 1;
447
448
449 --
450 -- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
451 --
452
453 ALTER SEQUENCE jobs_id_seq OWNED BY jobs.id;
454
455
456 --
457 -- Name: keep_disks; Type: TABLE; Schema: public; Owner: -; Tablespace: 
458 --
459
460 CREATE TABLE keep_disks (
461     id integer NOT NULL,
462     uuid character varying(255) NOT NULL,
463     owner_uuid character varying(255) NOT NULL,
464     modified_by_client_uuid character varying(255),
465     modified_by_user_uuid character varying(255),
466     modified_at timestamp without time zone,
467     ping_secret character varying(255) NOT NULL,
468     node_uuid character varying(255),
469     filesystem_uuid character varying(255),
470     bytes_total integer,
471     bytes_free integer,
472     is_readable boolean DEFAULT true NOT NULL,
473     is_writable boolean DEFAULT true NOT NULL,
474     last_read_at timestamp without time zone,
475     last_write_at timestamp without time zone,
476     last_ping_at timestamp without time zone,
477     created_at timestamp without time zone NOT NULL,
478     updated_at timestamp without time zone NOT NULL,
479     keep_service_uuid character varying(255)
480 );
481
482
483 --
484 -- Name: keep_disks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
485 --
486
487 CREATE SEQUENCE keep_disks_id_seq
488     START WITH 1
489     INCREMENT BY 1
490     NO MINVALUE
491     NO MAXVALUE
492     CACHE 1;
493
494
495 --
496 -- Name: keep_disks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
497 --
498
499 ALTER SEQUENCE keep_disks_id_seq OWNED BY keep_disks.id;
500
501
502 --
503 -- Name: keep_services; Type: TABLE; Schema: public; Owner: -; Tablespace: 
504 --
505
506 CREATE TABLE keep_services (
507     id integer NOT NULL,
508     uuid character varying(255) NOT NULL,
509     owner_uuid character varying(255) NOT NULL,
510     modified_by_client_uuid character varying(255),
511     modified_by_user_uuid character varying(255),
512     modified_at timestamp without time zone,
513     service_host character varying(255),
514     service_port integer,
515     service_ssl_flag boolean,
516     service_type character varying(255),
517     created_at timestamp without time zone NOT NULL,
518     updated_at timestamp without time zone NOT NULL
519 );
520
521
522 --
523 -- Name: keep_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
524 --
525
526 CREATE SEQUENCE keep_services_id_seq
527     START WITH 1
528     INCREMENT BY 1
529     NO MINVALUE
530     NO MAXVALUE
531     CACHE 1;
532
533
534 --
535 -- Name: keep_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
536 --
537
538 ALTER SEQUENCE keep_services_id_seq OWNED BY keep_services.id;
539
540
541 --
542 -- Name: links; Type: TABLE; Schema: public; Owner: -; Tablespace: 
543 --
544
545 CREATE TABLE links (
546     id integer NOT NULL,
547     uuid character varying(255),
548     owner_uuid character varying(255),
549     created_at timestamp without time zone NOT NULL,
550     modified_by_client_uuid character varying(255),
551     modified_by_user_uuid character varying(255),
552     modified_at timestamp without time zone,
553     tail_uuid character varying(255),
554     link_class character varying(255),
555     name character varying(255),
556     head_uuid character varying(255),
557     properties text,
558     updated_at timestamp without time zone NOT NULL
559 );
560
561
562 --
563 -- Name: links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
564 --
565
566 CREATE SEQUENCE links_id_seq
567     START WITH 1
568     INCREMENT BY 1
569     NO MINVALUE
570     NO MAXVALUE
571     CACHE 1;
572
573
574 --
575 -- Name: links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
576 --
577
578 ALTER SEQUENCE links_id_seq OWNED BY links.id;
579
580
581 --
582 -- Name: logs; Type: TABLE; Schema: public; Owner: -; Tablespace: 
583 --
584
585 CREATE TABLE logs (
586     id integer NOT NULL,
587     uuid character varying(255),
588     owner_uuid character varying(255),
589     modified_by_client_uuid character varying(255),
590     modified_by_user_uuid character varying(255),
591     object_uuid character varying(255),
592     event_at timestamp without time zone,
593     event_type character varying(255),
594     summary text,
595     properties text,
596     created_at timestamp without time zone NOT NULL,
597     updated_at timestamp without time zone NOT NULL,
598     modified_at timestamp without time zone,
599     object_owner_uuid character varying(255)
600 );
601
602
603 --
604 -- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
605 --
606
607 CREATE SEQUENCE logs_id_seq
608     START WITH 1
609     INCREMENT BY 1
610     NO MINVALUE
611     NO MAXVALUE
612     CACHE 1;
613
614
615 --
616 -- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
617 --
618
619 ALTER SEQUENCE logs_id_seq OWNED BY logs.id;
620
621
622 --
623 -- Name: nodes; Type: TABLE; Schema: public; Owner: -; Tablespace: 
624 --
625
626 CREATE TABLE nodes (
627     id integer NOT NULL,
628     uuid character varying(255),
629     owner_uuid character varying(255),
630     created_at timestamp without time zone NOT NULL,
631     modified_by_client_uuid character varying(255),
632     modified_by_user_uuid character varying(255),
633     modified_at timestamp without time zone,
634     slot_number integer,
635     hostname character varying(255),
636     domain character varying(255),
637     ip_address character varying(255),
638     first_ping_at timestamp without time zone,
639     last_ping_at timestamp without time zone,
640     info text,
641     updated_at timestamp without time zone NOT NULL
642 );
643
644
645 --
646 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
647 --
648
649 CREATE SEQUENCE nodes_id_seq
650     START WITH 1
651     INCREMENT BY 1
652     NO MINVALUE
653     NO MAXVALUE
654     CACHE 1;
655
656
657 --
658 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
659 --
660
661 ALTER SEQUENCE nodes_id_seq OWNED BY nodes.id;
662
663
664 --
665 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -; Tablespace: 
666 --
667
668 CREATE TABLE pipeline_instances (
669     id integer NOT NULL,
670     uuid character varying(255),
671     owner_uuid character varying(255),
672     created_at timestamp without time zone NOT NULL,
673     modified_by_client_uuid character varying(255),
674     modified_by_user_uuid character varying(255),
675     modified_at timestamp without time zone,
676     pipeline_template_uuid character varying(255),
677     name character varying(255),
678     components text,
679     updated_at timestamp without time zone NOT NULL,
680     properties text,
681     state character varying(255),
682     components_summary text,
683     description text
684 );
685
686
687 --
688 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
689 --
690
691 CREATE SEQUENCE pipeline_instances_id_seq
692     START WITH 1
693     INCREMENT BY 1
694     NO MINVALUE
695     NO MAXVALUE
696     CACHE 1;
697
698
699 --
700 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
701 --
702
703 ALTER SEQUENCE pipeline_instances_id_seq OWNED BY pipeline_instances.id;
704
705
706 --
707 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -; Tablespace: 
708 --
709
710 CREATE TABLE pipeline_templates (
711     id integer NOT NULL,
712     uuid character varying(255),
713     owner_uuid character varying(255),
714     created_at timestamp without time zone NOT NULL,
715     modified_by_client_uuid character varying(255),
716     modified_by_user_uuid character varying(255),
717     modified_at timestamp without time zone,
718     name character varying(255),
719     components text,
720     updated_at timestamp without time zone NOT NULL,
721     description text
722 );
723
724
725 --
726 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
727 --
728
729 CREATE SEQUENCE pipeline_templates_id_seq
730     START WITH 1
731     INCREMENT BY 1
732     NO MINVALUE
733     NO MAXVALUE
734     CACHE 1;
735
736
737 --
738 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
739 --
740
741 ALTER SEQUENCE pipeline_templates_id_seq OWNED BY pipeline_templates.id;
742
743
744 --
745 -- Name: repositories; Type: TABLE; Schema: public; Owner: -; Tablespace: 
746 --
747
748 CREATE TABLE repositories (
749     id integer NOT NULL,
750     uuid character varying(255) NOT NULL,
751     owner_uuid character varying(255) NOT NULL,
752     modified_by_client_uuid character varying(255),
753     modified_by_user_uuid character varying(255),
754     modified_at timestamp without time zone,
755     name character varying(255),
756     fetch_url character varying(255),
757     push_url character varying(255),
758     created_at timestamp without time zone NOT NULL,
759     updated_at timestamp without time zone NOT NULL
760 );
761
762
763 --
764 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
765 --
766
767 CREATE SEQUENCE repositories_id_seq
768     START WITH 1
769     INCREMENT BY 1
770     NO MINVALUE
771     NO MAXVALUE
772     CACHE 1;
773
774
775 --
776 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
777 --
778
779 ALTER SEQUENCE repositories_id_seq OWNED BY repositories.id;
780
781
782 --
783 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace: 
784 --
785
786 CREATE TABLE schema_migrations (
787     version character varying(255) NOT NULL
788 );
789
790
791 --
792 -- Name: specimens; Type: TABLE; Schema: public; Owner: -; Tablespace: 
793 --
794
795 CREATE TABLE specimens (
796     id integer NOT NULL,
797     uuid character varying(255),
798     owner_uuid character varying(255),
799     created_at timestamp without time zone NOT NULL,
800     modified_by_client_uuid character varying(255),
801     modified_by_user_uuid character varying(255),
802     modified_at timestamp without time zone,
803     material character varying(255),
804     updated_at timestamp without time zone NOT NULL,
805     properties text
806 );
807
808
809 --
810 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
811 --
812
813 CREATE SEQUENCE specimens_id_seq
814     START WITH 1
815     INCREMENT BY 1
816     NO MINVALUE
817     NO MAXVALUE
818     CACHE 1;
819
820
821 --
822 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
823 --
824
825 ALTER SEQUENCE specimens_id_seq OWNED BY specimens.id;
826
827
828 --
829 -- Name: traits; Type: TABLE; Schema: public; Owner: -; Tablespace: 
830 --
831
832 CREATE TABLE traits (
833     id integer NOT NULL,
834     uuid character varying(255) NOT NULL,
835     owner_uuid character varying(255) NOT NULL,
836     modified_by_client_uuid character varying(255),
837     modified_by_user_uuid character varying(255),
838     modified_at timestamp without time zone,
839     name character varying(255),
840     properties text,
841     created_at timestamp without time zone NOT NULL,
842     updated_at timestamp without time zone NOT NULL
843 );
844
845
846 --
847 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
848 --
849
850 CREATE SEQUENCE traits_id_seq
851     START WITH 1
852     INCREMENT BY 1
853     NO MINVALUE
854     NO MAXVALUE
855     CACHE 1;
856
857
858 --
859 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
860 --
861
862 ALTER SEQUENCE traits_id_seq OWNED BY traits.id;
863
864
865 --
866 -- Name: users; Type: TABLE; Schema: public; Owner: -; Tablespace: 
867 --
868
869 CREATE TABLE users (
870     id integer NOT NULL,
871     uuid character varying(255),
872     owner_uuid character varying(255),
873     created_at timestamp without time zone NOT NULL,
874     modified_by_client_uuid character varying(255),
875     modified_by_user_uuid character varying(255),
876     modified_at timestamp without time zone,
877     email character varying(255),
878     first_name character varying(255),
879     last_name character varying(255),
880     identity_url character varying(255),
881     is_admin boolean,
882     prefs text,
883     updated_at timestamp without time zone NOT NULL,
884     default_owner_uuid character varying(255),
885     is_active boolean DEFAULT false
886 );
887
888
889 --
890 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
891 --
892
893 CREATE SEQUENCE users_id_seq
894     START WITH 1
895     INCREMENT BY 1
896     NO MINVALUE
897     NO MAXVALUE
898     CACHE 1;
899
900
901 --
902 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
903 --
904
905 ALTER SEQUENCE users_id_seq OWNED BY users.id;
906
907
908 --
909 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -; Tablespace: 
910 --
911
912 CREATE TABLE virtual_machines (
913     id integer NOT NULL,
914     uuid character varying(255) NOT NULL,
915     owner_uuid character varying(255) NOT NULL,
916     modified_by_client_uuid character varying(255),
917     modified_by_user_uuid character varying(255),
918     modified_at timestamp without time zone,
919     hostname character varying(255),
920     created_at timestamp without time zone NOT NULL,
921     updated_at timestamp without time zone NOT NULL
922 );
923
924
925 --
926 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
927 --
928
929 CREATE SEQUENCE virtual_machines_id_seq
930     START WITH 1
931     INCREMENT BY 1
932     NO MINVALUE
933     NO MAXVALUE
934     CACHE 1;
935
936
937 --
938 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
939 --
940
941 ALTER SEQUENCE virtual_machines_id_seq OWNED BY virtual_machines.id;
942
943
944 --
945 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
946 --
947
948 ALTER TABLE ONLY api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('api_client_authorizations_id_seq'::regclass);
949
950
951 --
952 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
953 --
954
955 ALTER TABLE ONLY api_clients ALTER COLUMN id SET DEFAULT nextval('api_clients_id_seq'::regclass);
956
957
958 --
959 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
960 --
961
962 ALTER TABLE ONLY authorized_keys ALTER COLUMN id SET DEFAULT nextval('authorized_keys_id_seq'::regclass);
963
964
965 --
966 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
967 --
968
969 ALTER TABLE ONLY collections ALTER COLUMN id SET DEFAULT nextval('collections_id_seq'::regclass);
970
971
972 --
973 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
974 --
975
976 ALTER TABLE ONLY commit_ancestors ALTER COLUMN id SET DEFAULT nextval('commit_ancestors_id_seq'::regclass);
977
978
979 --
980 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
981 --
982
983 ALTER TABLE ONLY commits ALTER COLUMN id SET DEFAULT nextval('commits_id_seq'::regclass);
984
985
986 --
987 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
988 --
989
990 ALTER TABLE ONLY groups ALTER COLUMN id SET DEFAULT nextval('groups_id_seq'::regclass);
991
992
993 --
994 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
995 --
996
997 ALTER TABLE ONLY humans ALTER COLUMN id SET DEFAULT nextval('humans_id_seq'::regclass);
998
999
1000 --
1001 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1002 --
1003
1004 ALTER TABLE ONLY job_tasks ALTER COLUMN id SET DEFAULT nextval('job_tasks_id_seq'::regclass);
1005
1006
1007 --
1008 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1009 --
1010
1011 ALTER TABLE ONLY jobs ALTER COLUMN id SET DEFAULT nextval('jobs_id_seq'::regclass);
1012
1013
1014 --
1015 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1016 --
1017
1018 ALTER TABLE ONLY keep_disks ALTER COLUMN id SET DEFAULT nextval('keep_disks_id_seq'::regclass);
1019
1020
1021 --
1022 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1023 --
1024
1025 ALTER TABLE ONLY keep_services ALTER COLUMN id SET DEFAULT nextval('keep_services_id_seq'::regclass);
1026
1027
1028 --
1029 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1030 --
1031
1032 ALTER TABLE ONLY links ALTER COLUMN id SET DEFAULT nextval('links_id_seq'::regclass);
1033
1034
1035 --
1036 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1037 --
1038
1039 ALTER TABLE ONLY logs ALTER COLUMN id SET DEFAULT nextval('logs_id_seq'::regclass);
1040
1041
1042 --
1043 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1044 --
1045
1046 ALTER TABLE ONLY nodes ALTER COLUMN id SET DEFAULT nextval('nodes_id_seq'::regclass);
1047
1048
1049 --
1050 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1051 --
1052
1053 ALTER TABLE ONLY pipeline_instances ALTER COLUMN id SET DEFAULT nextval('pipeline_instances_id_seq'::regclass);
1054
1055
1056 --
1057 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1058 --
1059
1060 ALTER TABLE ONLY pipeline_templates ALTER COLUMN id SET DEFAULT nextval('pipeline_templates_id_seq'::regclass);
1061
1062
1063 --
1064 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1065 --
1066
1067 ALTER TABLE ONLY repositories ALTER COLUMN id SET DEFAULT nextval('repositories_id_seq'::regclass);
1068
1069
1070 --
1071 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1072 --
1073
1074 ALTER TABLE ONLY specimens ALTER COLUMN id SET DEFAULT nextval('specimens_id_seq'::regclass);
1075
1076
1077 --
1078 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1079 --
1080
1081 ALTER TABLE ONLY traits ALTER COLUMN id SET DEFAULT nextval('traits_id_seq'::regclass);
1082
1083
1084 --
1085 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1086 --
1087
1088 ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
1089
1090
1091 --
1092 -- Name: id; Type: DEFAULT; Schema: public; Owner: -
1093 --
1094
1095 ALTER TABLE ONLY virtual_machines ALTER COLUMN id SET DEFAULT nextval('virtual_machines_id_seq'::regclass);
1096
1097
1098 --
1099 -- Name: api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1100 --
1101
1102 ALTER TABLE ONLY api_client_authorizations
1103     ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1104
1105
1106 --
1107 -- Name: api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1108 --
1109
1110 ALTER TABLE ONLY api_clients
1111     ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1112
1113
1114 --
1115 -- Name: authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1116 --
1117
1118 ALTER TABLE ONLY authorized_keys
1119     ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1120
1121
1122 --
1123 -- Name: collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1124 --
1125
1126 ALTER TABLE ONLY collections
1127     ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1128
1129
1130 --
1131 -- Name: commit_ancestors_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1132 --
1133
1134 ALTER TABLE ONLY commit_ancestors
1135     ADD CONSTRAINT commit_ancestors_pkey PRIMARY KEY (id);
1136
1137
1138 --
1139 -- Name: commits_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1140 --
1141
1142 ALTER TABLE ONLY commits
1143     ADD CONSTRAINT commits_pkey PRIMARY KEY (id);
1144
1145
1146 --
1147 -- Name: groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1148 --
1149
1150 ALTER TABLE ONLY groups
1151     ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1152
1153
1154 --
1155 -- Name: humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1156 --
1157
1158 ALTER TABLE ONLY humans
1159     ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1160
1161
1162 --
1163 -- Name: job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1164 --
1165
1166 ALTER TABLE ONLY job_tasks
1167     ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1168
1169
1170 --
1171 -- Name: jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1172 --
1173
1174 ALTER TABLE ONLY jobs
1175     ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1176
1177
1178 --
1179 -- Name: keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1180 --
1181
1182 ALTER TABLE ONLY keep_disks
1183     ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1184
1185
1186 --
1187 -- Name: keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1188 --
1189
1190 ALTER TABLE ONLY keep_services
1191     ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1192
1193
1194 --
1195 -- Name: links_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1196 --
1197
1198 ALTER TABLE ONLY links
1199     ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1200
1201
1202 --
1203 -- Name: logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1204 --
1205
1206 ALTER TABLE ONLY logs
1207     ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1208
1209
1210 --
1211 -- Name: nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1212 --
1213
1214 ALTER TABLE ONLY nodes
1215     ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1216
1217
1218 --
1219 -- Name: pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1220 --
1221
1222 ALTER TABLE ONLY pipeline_instances
1223     ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1224
1225
1226 --
1227 -- Name: pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1228 --
1229
1230 ALTER TABLE ONLY pipeline_templates
1231     ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1232
1233
1234 --
1235 -- Name: repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1236 --
1237
1238 ALTER TABLE ONLY repositories
1239     ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1240
1241
1242 --
1243 -- Name: specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1244 --
1245
1246 ALTER TABLE ONLY specimens
1247     ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1248
1249
1250 --
1251 -- Name: traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1252 --
1253
1254 ALTER TABLE ONLY traits
1255     ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1256
1257
1258 --
1259 -- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1260 --
1261
1262 ALTER TABLE ONLY users
1263     ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1264
1265
1266 --
1267 -- Name: virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: 
1268 --
1269
1270 ALTER TABLE ONLY virtual_machines
1271     ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1272
1273
1274 --
1275 -- Name: collection_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1276 --
1277
1278 CREATE UNIQUE INDEX collection_owner_uuid_name_unique ON collections USING btree (owner_uuid, name);
1279
1280
1281 --
1282 -- Name: groups_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1283 --
1284
1285 CREATE UNIQUE INDEX groups_owner_uuid_name_unique ON groups USING btree (owner_uuid, name);
1286
1287
1288 --
1289 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1290 --
1291
1292 CREATE INDEX index_api_client_authorizations_on_api_client_id ON api_client_authorizations USING btree (api_client_id);
1293
1294
1295 --
1296 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1297 --
1298
1299 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON api_client_authorizations USING btree (api_token);
1300
1301
1302 --
1303 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1304 --
1305
1306 CREATE INDEX index_api_client_authorizations_on_expires_at ON api_client_authorizations USING btree (expires_at);
1307
1308
1309 --
1310 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1311 --
1312
1313 CREATE INDEX index_api_client_authorizations_on_user_id ON api_client_authorizations USING btree (user_id);
1314
1315
1316 --
1317 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1318 --
1319
1320 CREATE INDEX index_api_clients_on_created_at ON api_clients USING btree (created_at);
1321
1322
1323 --
1324 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1325 --
1326
1327 CREATE INDEX index_api_clients_on_modified_at ON api_clients USING btree (modified_at);
1328
1329
1330 --
1331 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1332 --
1333
1334 CREATE UNIQUE INDEX index_api_clients_on_uuid ON api_clients USING btree (uuid);
1335
1336
1337 --
1338 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1339 --
1340
1341 CREATE INDEX index_authkeys_on_user_and_expires_at ON authorized_keys USING btree (authorized_user_uuid, expires_at);
1342
1343
1344 --
1345 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1346 --
1347
1348 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON authorized_keys USING btree (uuid);
1349
1350
1351 --
1352 -- Name: index_collections_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1353 --
1354
1355 CREATE INDEX index_collections_on_created_at ON collections USING btree (created_at);
1356
1357
1358 --
1359 -- Name: index_collections_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1360 --
1361
1362 CREATE INDEX index_collections_on_modified_at ON collections USING btree (modified_at);
1363
1364
1365 --
1366 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1367 --
1368
1369 CREATE UNIQUE INDEX index_collections_on_uuid ON collections USING btree (uuid);
1370
1371
1372 --
1373 -- Name: index_commit_ancestors_on_descendant_and_ancestor; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1374 --
1375
1376 CREATE UNIQUE INDEX index_commit_ancestors_on_descendant_and_ancestor ON commit_ancestors USING btree (descendant, ancestor);
1377
1378
1379 --
1380 -- Name: index_commits_on_repository_name_and_sha1; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1381 --
1382
1383 CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON commits USING btree (repository_name, sha1);
1384
1385
1386 --
1387 -- Name: index_groups_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1388 --
1389
1390 CREATE INDEX index_groups_on_created_at ON groups USING btree (created_at);
1391
1392
1393 --
1394 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1395 --
1396
1397 CREATE INDEX index_groups_on_group_class ON groups USING btree (group_class);
1398
1399
1400 --
1401 -- Name: index_groups_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1402 --
1403
1404 CREATE INDEX index_groups_on_modified_at ON groups USING btree (modified_at);
1405
1406
1407 --
1408 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1409 --
1410
1411 CREATE UNIQUE INDEX index_groups_on_uuid ON groups USING btree (uuid);
1412
1413
1414 --
1415 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1416 --
1417
1418 CREATE UNIQUE INDEX index_humans_on_uuid ON humans USING btree (uuid);
1419
1420
1421 --
1422 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1423 --
1424
1425 CREATE INDEX index_job_tasks_on_created_at ON job_tasks USING btree (created_at);
1426
1427
1428 --
1429 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1430 --
1431
1432 CREATE INDEX index_job_tasks_on_job_uuid ON job_tasks USING btree (job_uuid);
1433
1434
1435 --
1436 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1437 --
1438
1439 CREATE INDEX index_job_tasks_on_modified_at ON job_tasks USING btree (modified_at);
1440
1441
1442 --
1443 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1444 --
1445
1446 CREATE INDEX index_job_tasks_on_sequence ON job_tasks USING btree (sequence);
1447
1448
1449 --
1450 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1451 --
1452
1453 CREATE INDEX index_job_tasks_on_success ON job_tasks USING btree (success);
1454
1455
1456 --
1457 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1458 --
1459
1460 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON job_tasks USING btree (uuid);
1461
1462
1463 --
1464 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1465 --
1466
1467 CREATE INDEX index_jobs_on_created_at ON jobs USING btree (created_at);
1468
1469
1470 --
1471 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1472 --
1473
1474 CREATE INDEX index_jobs_on_finished_at ON jobs USING btree (finished_at);
1475
1476
1477 --
1478 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1479 --
1480
1481 CREATE INDEX index_jobs_on_modified_at ON jobs USING btree (modified_at);
1482
1483
1484 --
1485 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1486 --
1487
1488 CREATE INDEX index_jobs_on_output ON jobs USING btree (output);
1489
1490
1491 --
1492 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1493 --
1494
1495 CREATE INDEX index_jobs_on_script ON jobs USING btree (script);
1496
1497
1498 --
1499 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1500 --
1501
1502 CREATE INDEX index_jobs_on_started_at ON jobs USING btree (started_at);
1503
1504
1505 --
1506 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1507 --
1508
1509 CREATE UNIQUE INDEX index_jobs_on_submit_id ON jobs USING btree (submit_id);
1510
1511
1512 --
1513 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1514 --
1515
1516 CREATE UNIQUE INDEX index_jobs_on_uuid ON jobs USING btree (uuid);
1517
1518
1519 --
1520 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1521 --
1522
1523 CREATE INDEX index_keep_disks_on_filesystem_uuid ON keep_disks USING btree (filesystem_uuid);
1524
1525
1526 --
1527 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1528 --
1529
1530 CREATE INDEX index_keep_disks_on_last_ping_at ON keep_disks USING btree (last_ping_at);
1531
1532
1533 --
1534 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1535 --
1536
1537 CREATE INDEX index_keep_disks_on_node_uuid ON keep_disks USING btree (node_uuid);
1538
1539
1540 --
1541 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1542 --
1543
1544 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON keep_disks USING btree (uuid);
1545
1546
1547 --
1548 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1549 --
1550
1551 CREATE UNIQUE INDEX index_keep_services_on_uuid ON keep_services USING btree (uuid);
1552
1553
1554 --
1555 -- Name: index_links_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1556 --
1557
1558 CREATE INDEX index_links_on_created_at ON links USING btree (created_at);
1559
1560
1561 --
1562 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1563 --
1564
1565 CREATE INDEX index_links_on_head_uuid ON links USING btree (head_uuid);
1566
1567
1568 --
1569 -- Name: index_links_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1570 --
1571
1572 CREATE INDEX index_links_on_modified_at ON links USING btree (modified_at);
1573
1574
1575 --
1576 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1577 --
1578
1579 CREATE INDEX index_links_on_tail_uuid ON links USING btree (tail_uuid);
1580
1581
1582 --
1583 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1584 --
1585
1586 CREATE UNIQUE INDEX index_links_on_uuid ON links USING btree (uuid);
1587
1588
1589 --
1590 -- Name: index_logs_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1591 --
1592
1593 CREATE INDEX index_logs_on_created_at ON logs USING btree (created_at);
1594
1595
1596 --
1597 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1598 --
1599
1600 CREATE INDEX index_logs_on_event_at ON logs USING btree (event_at);
1601
1602
1603 --
1604 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1605 --
1606
1607 CREATE INDEX index_logs_on_event_type ON logs USING btree (event_type);
1608
1609
1610 --
1611 -- Name: index_logs_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1612 --
1613
1614 CREATE INDEX index_logs_on_modified_at ON logs USING btree (modified_at);
1615
1616
1617 --
1618 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1619 --
1620
1621 CREATE INDEX index_logs_on_object_uuid ON logs USING btree (object_uuid);
1622
1623
1624 --
1625 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1626 --
1627
1628 CREATE INDEX index_logs_on_summary ON logs USING btree (summary);
1629
1630
1631 --
1632 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1633 --
1634
1635 CREATE UNIQUE INDEX index_logs_on_uuid ON logs USING btree (uuid);
1636
1637
1638 --
1639 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1640 --
1641
1642 CREATE INDEX index_nodes_on_created_at ON nodes USING btree (created_at);
1643
1644
1645 --
1646 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1647 --
1648
1649 CREATE INDEX index_nodes_on_hostname ON nodes USING btree (hostname);
1650
1651
1652 --
1653 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1654 --
1655
1656 CREATE INDEX index_nodes_on_modified_at ON nodes USING btree (modified_at);
1657
1658
1659 --
1660 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1661 --
1662
1663 CREATE UNIQUE INDEX index_nodes_on_slot_number ON nodes USING btree (slot_number);
1664
1665
1666 --
1667 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1668 --
1669
1670 CREATE UNIQUE INDEX index_nodes_on_uuid ON nodes USING btree (uuid);
1671
1672
1673 --
1674 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1675 --
1676
1677 CREATE INDEX index_pipeline_instances_on_created_at ON pipeline_instances USING btree (created_at);
1678
1679
1680 --
1681 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1682 --
1683
1684 CREATE INDEX index_pipeline_instances_on_modified_at ON pipeline_instances USING btree (modified_at);
1685
1686
1687 --
1688 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1689 --
1690
1691 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON pipeline_instances USING btree (uuid);
1692
1693
1694 --
1695 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1696 --
1697
1698 CREATE INDEX index_pipeline_templates_on_created_at ON pipeline_templates USING btree (created_at);
1699
1700
1701 --
1702 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1703 --
1704
1705 CREATE INDEX index_pipeline_templates_on_modified_at ON pipeline_templates USING btree (modified_at);
1706
1707
1708 --
1709 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1710 --
1711
1712 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON pipeline_templates USING btree (uuid);
1713
1714
1715 --
1716 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1717 --
1718
1719 CREATE UNIQUE INDEX index_repositories_on_name ON repositories USING btree (name);
1720
1721
1722 --
1723 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1724 --
1725
1726 CREATE UNIQUE INDEX index_repositories_on_uuid ON repositories USING btree (uuid);
1727
1728
1729 --
1730 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1731 --
1732
1733 CREATE INDEX index_specimens_on_created_at ON specimens USING btree (created_at);
1734
1735
1736 --
1737 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1738 --
1739
1740 CREATE INDEX index_specimens_on_modified_at ON specimens USING btree (modified_at);
1741
1742
1743 --
1744 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1745 --
1746
1747 CREATE UNIQUE INDEX index_specimens_on_uuid ON specimens USING btree (uuid);
1748
1749
1750 --
1751 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1752 --
1753
1754 CREATE INDEX index_traits_on_name ON traits USING btree (name);
1755
1756
1757 --
1758 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1759 --
1760
1761 CREATE UNIQUE INDEX index_traits_on_uuid ON traits USING btree (uuid);
1762
1763
1764 --
1765 -- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1766 --
1767
1768 CREATE INDEX index_users_on_created_at ON users USING btree (created_at);
1769
1770
1771 --
1772 -- Name: index_users_on_modified_at; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1773 --
1774
1775 CREATE INDEX index_users_on_modified_at ON users USING btree (modified_at);
1776
1777
1778 --
1779 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1780 --
1781
1782 CREATE UNIQUE INDEX index_users_on_uuid ON users USING btree (uuid);
1783
1784
1785 --
1786 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1787 --
1788
1789 CREATE INDEX index_virtual_machines_on_hostname ON virtual_machines USING btree (hostname);
1790
1791
1792 --
1793 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1794 --
1795
1796 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON virtual_machines USING btree (uuid);
1797
1798
1799 --
1800 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1801 --
1802
1803 CREATE UNIQUE INDEX links_tail_name_unique_if_link_class_name ON links USING btree (tail_uuid, name) WHERE ((link_class)::text = 'name'::text);
1804
1805
1806 --
1807 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1808 --
1809
1810 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON pipeline_templates USING btree (owner_uuid, name);
1811
1812
1813 --
1814 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace: 
1815 --
1816
1817 CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
1818
1819
1820 --
1821 -- PostgreSQL database dump complete
1822 --
1823
1824 SET search_path TO "$user",public;
1825
1826 INSERT INTO schema_migrations (version) VALUES ('20121016005009');
1827
1828 INSERT INTO schema_migrations (version) VALUES ('20130105203021');
1829
1830 INSERT INTO schema_migrations (version) VALUES ('20130105224358');
1831
1832 INSERT INTO schema_migrations (version) VALUES ('20130105224618');
1833
1834 INSERT INTO schema_migrations (version) VALUES ('20130107181109');
1835
1836 INSERT INTO schema_migrations (version) VALUES ('20130107212832');
1837
1838 INSERT INTO schema_migrations (version) VALUES ('20130109175700');
1839
1840 INSERT INTO schema_migrations (version) VALUES ('20130109220548');
1841
1842 INSERT INTO schema_migrations (version) VALUES ('20130113214204');
1843
1844 INSERT INTO schema_migrations (version) VALUES ('20130116024233');
1845
1846 INSERT INTO schema_migrations (version) VALUES ('20130116215213');
1847
1848 INSERT INTO schema_migrations (version) VALUES ('20130118002239');
1849
1850 INSERT INTO schema_migrations (version) VALUES ('20130122020042');
1851
1852 INSERT INTO schema_migrations (version) VALUES ('20130122201442');
1853
1854 INSERT INTO schema_migrations (version) VALUES ('20130122221616');
1855
1856 INSERT INTO schema_migrations (version) VALUES ('20130123174514');
1857
1858 INSERT INTO schema_migrations (version) VALUES ('20130123180224');
1859
1860 INSERT INTO schema_migrations (version) VALUES ('20130123180228');
1861
1862 INSERT INTO schema_migrations (version) VALUES ('20130125220425');
1863
1864 INSERT INTO schema_migrations (version) VALUES ('20130128202518');
1865
1866 INSERT INTO schema_migrations (version) VALUES ('20130128231343');
1867
1868 INSERT INTO schema_migrations (version) VALUES ('20130130205749');
1869
1870 INSERT INTO schema_migrations (version) VALUES ('20130203104818');
1871
1872 INSERT INTO schema_migrations (version) VALUES ('20130203104824');
1873
1874 INSERT INTO schema_migrations (version) VALUES ('20130203115329');
1875
1876 INSERT INTO schema_migrations (version) VALUES ('20130207195855');
1877
1878 INSERT INTO schema_migrations (version) VALUES ('20130218181504');
1879
1880 INSERT INTO schema_migrations (version) VALUES ('20130226170000');
1881
1882 INSERT INTO schema_migrations (version) VALUES ('20130313175417');
1883
1884 INSERT INTO schema_migrations (version) VALUES ('20130315155820');
1885
1886 INSERT INTO schema_migrations (version) VALUES ('20130315183626');
1887
1888 INSERT INTO schema_migrations (version) VALUES ('20130315213205');
1889
1890 INSERT INTO schema_migrations (version) VALUES ('20130318002138');
1891
1892 INSERT INTO schema_migrations (version) VALUES ('20130319165853');
1893
1894 INSERT INTO schema_migrations (version) VALUES ('20130319180730');
1895
1896 INSERT INTO schema_migrations (version) VALUES ('20130319194637');
1897
1898 INSERT INTO schema_migrations (version) VALUES ('20130319201431');
1899
1900 INSERT INTO schema_migrations (version) VALUES ('20130319235957');
1901
1902 INSERT INTO schema_migrations (version) VALUES ('20130320000107');
1903
1904 INSERT INTO schema_migrations (version) VALUES ('20130326173804');
1905
1906 INSERT INTO schema_migrations (version) VALUES ('20130326182917');
1907
1908 INSERT INTO schema_migrations (version) VALUES ('20130415020241');
1909
1910 INSERT INTO schema_migrations (version) VALUES ('20130425024459');
1911
1912 INSERT INTO schema_migrations (version) VALUES ('20130425214427');
1913
1914 INSERT INTO schema_migrations (version) VALUES ('20130523060112');
1915
1916 INSERT INTO schema_migrations (version) VALUES ('20130523060213');
1917
1918 INSERT INTO schema_migrations (version) VALUES ('20130524042319');
1919
1920 INSERT INTO schema_migrations (version) VALUES ('20130528134100');
1921
1922 INSERT INTO schema_migrations (version) VALUES ('20130606183519');
1923
1924 INSERT INTO schema_migrations (version) VALUES ('20130608053730');
1925
1926 INSERT INTO schema_migrations (version) VALUES ('20130610202538');
1927
1928 INSERT INTO schema_migrations (version) VALUES ('20130611163736');
1929
1930 INSERT INTO schema_migrations (version) VALUES ('20130612042554');
1931
1932 INSERT INTO schema_migrations (version) VALUES ('20130617150007');
1933
1934 INSERT INTO schema_migrations (version) VALUES ('20130626002829');
1935
1936 INSERT INTO schema_migrations (version) VALUES ('20130626022810');
1937
1938 INSERT INTO schema_migrations (version) VALUES ('20130627154537');
1939
1940 INSERT INTO schema_migrations (version) VALUES ('20130627184333');
1941
1942 INSERT INTO schema_migrations (version) VALUES ('20130708163414');
1943
1944 INSERT INTO schema_migrations (version) VALUES ('20130708182912');
1945
1946 INSERT INTO schema_migrations (version) VALUES ('20130708185153');
1947
1948 INSERT INTO schema_migrations (version) VALUES ('20130724153034');
1949
1950 INSERT INTO schema_migrations (version) VALUES ('20131007180607');
1951
1952 INSERT INTO schema_migrations (version) VALUES ('20140117231056');
1953
1954 INSERT INTO schema_migrations (version) VALUES ('20140124222114');
1955
1956 INSERT INTO schema_migrations (version) VALUES ('20140129184311');
1957
1958 INSERT INTO schema_migrations (version) VALUES ('20140317135600');
1959
1960 INSERT INTO schema_migrations (version) VALUES ('20140319160547');
1961
1962 INSERT INTO schema_migrations (version) VALUES ('20140321191343');
1963
1964 INSERT INTO schema_migrations (version) VALUES ('20140324024606');
1965
1966 INSERT INTO schema_migrations (version) VALUES ('20140325175653');
1967
1968 INSERT INTO schema_migrations (version) VALUES ('20140402001908');
1969
1970 INSERT INTO schema_migrations (version) VALUES ('20140407184311');
1971
1972 INSERT INTO schema_migrations (version) VALUES ('20140421140924');
1973
1974 INSERT INTO schema_migrations (version) VALUES ('20140421151939');
1975
1976 INSERT INTO schema_migrations (version) VALUES ('20140421151940');
1977
1978 INSERT INTO schema_migrations (version) VALUES ('20140422011506');
1979
1980 INSERT INTO schema_migrations (version) VALUES ('20140423132913');
1981
1982 INSERT INTO schema_migrations (version) VALUES ('20140423133559');
1983
1984 INSERT INTO schema_migrations (version) VALUES ('20140501165548');
1985
1986 INSERT INTO schema_migrations (version) VALUES ('20140519205916');
1987
1988 INSERT INTO schema_migrations (version) VALUES ('20140527152921');
1989
1990 INSERT INTO schema_migrations (version) VALUES ('20140530200539');
1991
1992 INSERT INTO schema_migrations (version) VALUES ('20140601022548');
1993
1994 INSERT INTO schema_migrations (version) VALUES ('20140602143352');
1995
1996 INSERT INTO schema_migrations (version) VALUES ('20140607150616');
1997
1998 INSERT INTO schema_migrations (version) VALUES ('20140611173003');
1999
2000 INSERT INTO schema_migrations (version) VALUES ('20140627210837');
2001
2002 INSERT INTO schema_migrations (version) VALUES ('20140709172343');
2003
2004 INSERT INTO schema_migrations (version) VALUES ('20140714184006');
2005
2006 INSERT INTO schema_migrations (version) VALUES ('20140811184643');
2007
2008 INSERT INTO schema_migrations (version) VALUES ('20140815171049');
2009
2010 INSERT INTO schema_migrations (version) VALUES ('20140817035914');
2011
2012 INSERT INTO schema_migrations (version) VALUES ('20140818125735');
2013
2014 INSERT INTO schema_migrations (version) VALUES ('20140826180337');