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