check-exist uses default python (oops) refs #15040
[arvados.git] / services / api / db / structure.sql
1 -- Copyright (C) The Arvados Authors. All rights reserved.
2 --
3 -- SPDX-License-Identifier: AGPL-3.0
4
5 SET statement_timeout = 0;
6 SET client_encoding = 'UTF8';
7 SET standard_conforming_strings = on;
8 SELECT pg_catalog.set_config('search_path', '', false);
9 SET check_function_bodies = false;
10 SET client_min_messages = warning;
11
12 --
13 -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
14 --
15
16 CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
17
18
19 --
20 -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
21 --
22
23 -- COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
24
25
26 SET default_tablespace = '';
27
28 SET default_with_oids = false;
29
30 --
31 -- Name: api_client_authorizations; Type: TABLE; Schema: public; Owner: -
32 --
33
34 CREATE TABLE public.api_client_authorizations (
35     id integer NOT NULL,
36     api_token character varying(255) NOT NULL,
37     api_client_id integer NOT NULL,
38     user_id integer NOT NULL,
39     created_by_ip_address character varying(255),
40     last_used_by_ip_address character varying(255),
41     last_used_at timestamp without time zone,
42     expires_at timestamp without time zone,
43     created_at timestamp without time zone NOT NULL,
44     updated_at timestamp without time zone NOT NULL,
45     default_owner_uuid character varying(255),
46     scopes text DEFAULT '["all"]'::text,
47     uuid character varying(255) NOT NULL
48 );
49
50
51 --
52 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
53 --
54
55 CREATE SEQUENCE public.api_client_authorizations_id_seq
56     START WITH 1
57     INCREMENT BY 1
58     NO MINVALUE
59     NO MAXVALUE
60     CACHE 1;
61
62
63 --
64 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
65 --
66
67 ALTER SEQUENCE public.api_client_authorizations_id_seq OWNED BY public.api_client_authorizations.id;
68
69
70 --
71 -- Name: api_clients; Type: TABLE; Schema: public; Owner: -
72 --
73
74 CREATE TABLE public.api_clients (
75     id integer NOT NULL,
76     uuid character varying(255),
77     owner_uuid character varying(255),
78     modified_by_client_uuid character varying(255),
79     modified_by_user_uuid character varying(255),
80     modified_at timestamp without time zone,
81     name character varying(255),
82     url_prefix character varying(255),
83     created_at timestamp without time zone NOT NULL,
84     updated_at timestamp without time zone NOT NULL,
85     is_trusted boolean DEFAULT false
86 );
87
88
89 --
90 -- Name: api_clients_id_seq; Type: SEQUENCE; Schema: public; Owner: -
91 --
92
93 CREATE SEQUENCE public.api_clients_id_seq
94     START WITH 1
95     INCREMENT BY 1
96     NO MINVALUE
97     NO MAXVALUE
98     CACHE 1;
99
100
101 --
102 -- Name: api_clients_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
103 --
104
105 ALTER SEQUENCE public.api_clients_id_seq OWNED BY public.api_clients.id;
106
107
108 --
109 -- Name: authorized_keys; Type: TABLE; Schema: public; Owner: -
110 --
111
112 CREATE TABLE public.authorized_keys (
113     id integer NOT NULL,
114     uuid character varying(255) NOT NULL,
115     owner_uuid character varying(255) NOT NULL,
116     modified_by_client_uuid character varying(255),
117     modified_by_user_uuid character varying(255),
118     modified_at timestamp without time zone,
119     name character varying(255),
120     key_type character varying(255),
121     authorized_user_uuid character varying(255),
122     public_key text,
123     expires_at timestamp without time zone,
124     created_at timestamp without time zone NOT NULL,
125     updated_at timestamp without time zone NOT NULL
126 );
127
128
129 --
130 -- Name: authorized_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: -
131 --
132
133 CREATE SEQUENCE public.authorized_keys_id_seq
134     START WITH 1
135     INCREMENT BY 1
136     NO MINVALUE
137     NO MAXVALUE
138     CACHE 1;
139
140
141 --
142 -- Name: authorized_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
143 --
144
145 ALTER SEQUENCE public.authorized_keys_id_seq OWNED BY public.authorized_keys.id;
146
147
148 --
149 -- Name: collections; Type: TABLE; Schema: public; Owner: -
150 --
151
152 CREATE TABLE public.collections (
153     id integer NOT NULL,
154     owner_uuid character varying(255),
155     created_at timestamp without time zone NOT NULL,
156     modified_by_client_uuid character varying(255),
157     modified_by_user_uuid character varying(255),
158     modified_at timestamp without time zone,
159     portable_data_hash character varying(255),
160     replication_desired integer,
161     replication_confirmed_at timestamp without time zone,
162     replication_confirmed integer,
163     updated_at timestamp without time zone NOT NULL,
164     uuid character varying(255),
165     manifest_text text,
166     name character varying(255),
167     description character varying(524288),
168     properties jsonb,
169     delete_at timestamp without time zone,
170     file_names text,
171     trash_at timestamp without time zone,
172     is_trashed boolean DEFAULT false NOT NULL,
173     storage_classes_desired jsonb DEFAULT '["default"]'::jsonb,
174     storage_classes_confirmed jsonb DEFAULT '[]'::jsonb,
175     storage_classes_confirmed_at timestamp without time zone,
176     current_version_uuid character varying,
177     version integer DEFAULT 1 NOT NULL,
178     preserve_version boolean DEFAULT false,
179     file_count integer DEFAULT 0 NOT NULL,
180     file_size_total bigint DEFAULT 0 NOT NULL
181 );
182
183
184 --
185 -- Name: collections_id_seq; Type: SEQUENCE; Schema: public; Owner: -
186 --
187
188 CREATE SEQUENCE public.collections_id_seq
189     START WITH 1
190     INCREMENT BY 1
191     NO MINVALUE
192     NO MAXVALUE
193     CACHE 1;
194
195
196 --
197 -- Name: collections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
198 --
199
200 ALTER SEQUENCE public.collections_id_seq OWNED BY public.collections.id;
201
202
203 --
204 -- Name: commit_ancestors; Type: TABLE; Schema: public; Owner: -
205 --
206
207 CREATE TABLE public.commit_ancestors (
208     id integer NOT NULL,
209     repository_name character varying(255),
210     descendant character varying(255) NOT NULL,
211     ancestor character varying(255) NOT NULL,
212     "is" boolean DEFAULT false NOT NULL,
213     created_at timestamp without time zone NOT NULL,
214     updated_at timestamp without time zone NOT NULL
215 );
216
217
218 --
219 -- Name: commit_ancestors_id_seq; Type: SEQUENCE; Schema: public; Owner: -
220 --
221
222 CREATE SEQUENCE public.commit_ancestors_id_seq
223     START WITH 1
224     INCREMENT BY 1
225     NO MINVALUE
226     NO MAXVALUE
227     CACHE 1;
228
229
230 --
231 -- Name: commit_ancestors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
232 --
233
234 ALTER SEQUENCE public.commit_ancestors_id_seq OWNED BY public.commit_ancestors.id;
235
236
237 --
238 -- Name: commits; Type: TABLE; Schema: public; Owner: -
239 --
240
241 CREATE TABLE public.commits (
242     id integer NOT NULL,
243     repository_name character varying(255),
244     sha1 character varying(255),
245     message character varying(255),
246     created_at timestamp without time zone NOT NULL,
247     updated_at timestamp without time zone NOT NULL
248 );
249
250
251 --
252 -- Name: commits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
253 --
254
255 CREATE SEQUENCE public.commits_id_seq
256     START WITH 1
257     INCREMENT BY 1
258     NO MINVALUE
259     NO MAXVALUE
260     CACHE 1;
261
262
263 --
264 -- Name: commits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
265 --
266
267 ALTER SEQUENCE public.commits_id_seq OWNED BY public.commits.id;
268
269
270 --
271 -- Name: container_requests; Type: TABLE; Schema: public; Owner: -
272 --
273
274 CREATE TABLE public.container_requests (
275     id integer NOT NULL,
276     uuid character varying(255),
277     owner_uuid character varying(255),
278     created_at timestamp without time zone NOT NULL,
279     modified_at timestamp without time zone,
280     modified_by_client_uuid character varying(255),
281     modified_by_user_uuid character varying(255),
282     name character varying(255),
283     description text,
284     properties jsonb,
285     state character varying(255),
286     requesting_container_uuid character varying(255),
287     container_uuid character varying(255),
288     container_count_max integer,
289     mounts text,
290     runtime_constraints text,
291     container_image character varying(255),
292     environment text,
293     cwd character varying(255),
294     command text,
295     output_path character varying(255),
296     priority integer,
297     expires_at timestamp without time zone,
298     filters text,
299     updated_at timestamp without time zone NOT NULL,
300     container_count integer DEFAULT 0,
301     use_existing boolean DEFAULT true,
302     scheduling_parameters text,
303     output_uuid character varying(255),
304     log_uuid character varying(255),
305     output_name character varying(255) DEFAULT NULL::character varying,
306     output_ttl integer DEFAULT 0 NOT NULL,
307     secret_mounts jsonb DEFAULT '{}'::jsonb,
308     runtime_token text
309 );
310
311
312 --
313 -- Name: container_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
314 --
315
316 CREATE SEQUENCE public.container_requests_id_seq
317     START WITH 1
318     INCREMENT BY 1
319     NO MINVALUE
320     NO MAXVALUE
321     CACHE 1;
322
323
324 --
325 -- Name: container_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
326 --
327
328 ALTER SEQUENCE public.container_requests_id_seq OWNED BY public.container_requests.id;
329
330
331 --
332 -- Name: containers; Type: TABLE; Schema: public; Owner: -
333 --
334
335 CREATE TABLE public.containers (
336     id integer NOT NULL,
337     uuid character varying(255),
338     owner_uuid character varying(255),
339     created_at timestamp without time zone NOT NULL,
340     modified_at timestamp without time zone,
341     modified_by_client_uuid character varying(255),
342     modified_by_user_uuid character varying(255),
343     state character varying(255),
344     started_at timestamp without time zone,
345     finished_at timestamp without time zone,
346     log character varying(255),
347     environment text,
348     cwd character varying(255),
349     command text,
350     output_path character varying(255),
351     mounts text,
352     runtime_constraints text,
353     output character varying(255),
354     container_image character varying(255),
355     progress double precision,
356     priority bigint,
357     updated_at timestamp without time zone NOT NULL,
358     exit_code integer,
359     auth_uuid character varying(255),
360     locked_by_uuid character varying(255),
361     scheduling_parameters text,
362     secret_mounts jsonb DEFAULT '{}'::jsonb,
363     secret_mounts_md5 character varying DEFAULT '99914b932bd37a50b983c5e7c90ae93b'::character varying,
364     runtime_status jsonb DEFAULT '{}'::jsonb,
365     runtime_user_uuid text,
366     runtime_auth_scopes jsonb,
367     runtime_token text,
368     lock_count integer DEFAULT 0 NOT NULL
369 );
370
371
372 --
373 -- Name: containers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
374 --
375
376 CREATE SEQUENCE public.containers_id_seq
377     START WITH 1
378     INCREMENT BY 1
379     NO MINVALUE
380     NO MAXVALUE
381     CACHE 1;
382
383
384 --
385 -- Name: containers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
386 --
387
388 ALTER SEQUENCE public.containers_id_seq OWNED BY public.containers.id;
389
390
391 --
392 -- Name: groups; Type: TABLE; Schema: public; Owner: -
393 --
394
395 CREATE TABLE public.groups (
396     id integer NOT NULL,
397     uuid character varying(255),
398     owner_uuid character varying(255),
399     created_at timestamp without time zone NOT NULL,
400     modified_by_client_uuid character varying(255),
401     modified_by_user_uuid character varying(255),
402     modified_at timestamp without time zone,
403     name character varying(255) NOT NULL,
404     description character varying(524288),
405     updated_at timestamp without time zone NOT NULL,
406     group_class character varying(255),
407     trash_at timestamp without time zone,
408     is_trashed boolean DEFAULT false NOT NULL,
409     delete_at timestamp without time zone,
410     properties jsonb DEFAULT '{}'::jsonb
411 );
412
413
414 --
415 -- Name: groups_id_seq; Type: SEQUENCE; Schema: public; Owner: -
416 --
417
418 CREATE SEQUENCE public.groups_id_seq
419     START WITH 1
420     INCREMENT BY 1
421     NO MINVALUE
422     NO MAXVALUE
423     CACHE 1;
424
425
426 --
427 -- Name: groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
428 --
429
430 ALTER SEQUENCE public.groups_id_seq OWNED BY public.groups.id;
431
432
433 --
434 -- Name: humans; Type: TABLE; Schema: public; Owner: -
435 --
436
437 CREATE TABLE public.humans (
438     id integer NOT NULL,
439     uuid character varying(255) NOT NULL,
440     owner_uuid character varying(255) NOT NULL,
441     modified_by_client_uuid character varying(255),
442     modified_by_user_uuid character varying(255),
443     modified_at timestamp without time zone,
444     properties text,
445     created_at timestamp without time zone NOT NULL,
446     updated_at timestamp without time zone NOT NULL
447 );
448
449
450 --
451 -- Name: humans_id_seq; Type: SEQUENCE; Schema: public; Owner: -
452 --
453
454 CREATE SEQUENCE public.humans_id_seq
455     START WITH 1
456     INCREMENT BY 1
457     NO MINVALUE
458     NO MAXVALUE
459     CACHE 1;
460
461
462 --
463 -- Name: humans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
464 --
465
466 ALTER SEQUENCE public.humans_id_seq OWNED BY public.humans.id;
467
468
469 --
470 -- Name: job_tasks; Type: TABLE; Schema: public; Owner: -
471 --
472
473 CREATE TABLE public.job_tasks (
474     id integer NOT NULL,
475     uuid character varying(255),
476     owner_uuid character varying(255),
477     modified_by_client_uuid character varying(255),
478     modified_by_user_uuid character varying(255),
479     modified_at timestamp without time zone,
480     job_uuid character varying(255),
481     sequence integer,
482     parameters text,
483     output text,
484     progress double precision,
485     success boolean,
486     created_at timestamp without time zone NOT NULL,
487     updated_at timestamp without time zone NOT NULL,
488     created_by_job_task_uuid character varying(255),
489     qsequence bigint,
490     started_at timestamp without time zone,
491     finished_at timestamp without time zone
492 );
493
494
495 --
496 -- Name: job_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
497 --
498
499 CREATE SEQUENCE public.job_tasks_id_seq
500     START WITH 1
501     INCREMENT BY 1
502     NO MINVALUE
503     NO MAXVALUE
504     CACHE 1;
505
506
507 --
508 -- Name: job_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
509 --
510
511 ALTER SEQUENCE public.job_tasks_id_seq OWNED BY public.job_tasks.id;
512
513
514 --
515 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE; Schema: public; Owner: -
516 --
517
518 CREATE SEQUENCE public.job_tasks_qsequence_seq
519     START WITH 1
520     INCREMENT BY 1
521     NO MINVALUE
522     NO MAXVALUE
523     CACHE 1;
524
525
526 --
527 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
528 --
529
530 ALTER SEQUENCE public.job_tasks_qsequence_seq OWNED BY public.job_tasks.qsequence;
531
532
533 --
534 -- Name: jobs; Type: TABLE; Schema: public; Owner: -
535 --
536
537 CREATE TABLE public.jobs (
538     id integer NOT NULL,
539     uuid character varying(255),
540     owner_uuid character varying(255),
541     modified_by_client_uuid character varying(255),
542     modified_by_user_uuid character varying(255),
543     modified_at timestamp without time zone,
544     submit_id character varying(255),
545     script character varying(255),
546     script_version character varying(255),
547     script_parameters text,
548     cancelled_by_client_uuid character varying(255),
549     cancelled_by_user_uuid character varying(255),
550     cancelled_at timestamp without time zone,
551     started_at timestamp without time zone,
552     finished_at timestamp without time zone,
553     running boolean,
554     success boolean,
555     output character varying(255),
556     created_at timestamp without time zone NOT NULL,
557     updated_at timestamp without time zone NOT NULL,
558     is_locked_by_uuid character varying(255),
559     log character varying(255),
560     tasks_summary text,
561     runtime_constraints text,
562     nondeterministic boolean,
563     repository character varying(255),
564     supplied_script_version character varying(255),
565     docker_image_locator character varying(255),
566     priority integer DEFAULT 0 NOT NULL,
567     description character varying(524288),
568     state character varying(255),
569     arvados_sdk_version character varying(255),
570     components text,
571     script_parameters_digest character varying(255)
572 );
573
574
575 --
576 -- Name: jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
577 --
578
579 CREATE SEQUENCE public.jobs_id_seq
580     START WITH 1
581     INCREMENT BY 1
582     NO MINVALUE
583     NO MAXVALUE
584     CACHE 1;
585
586
587 --
588 -- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
589 --
590
591 ALTER SEQUENCE public.jobs_id_seq OWNED BY public.jobs.id;
592
593
594 --
595 -- Name: keep_disks; Type: TABLE; Schema: public; Owner: -
596 --
597
598 CREATE TABLE public.keep_disks (
599     id integer NOT NULL,
600     uuid character varying(255) NOT NULL,
601     owner_uuid character varying(255) NOT NULL,
602     modified_by_client_uuid character varying(255),
603     modified_by_user_uuid character varying(255),
604     modified_at timestamp without time zone,
605     ping_secret character varying(255) NOT NULL,
606     node_uuid character varying(255),
607     filesystem_uuid character varying(255),
608     bytes_total integer,
609     bytes_free integer,
610     is_readable boolean DEFAULT true NOT NULL,
611     is_writable boolean DEFAULT true NOT NULL,
612     last_read_at timestamp without time zone,
613     last_write_at timestamp without time zone,
614     last_ping_at timestamp without time zone,
615     created_at timestamp without time zone NOT NULL,
616     updated_at timestamp without time zone NOT NULL,
617     keep_service_uuid character varying(255)
618 );
619
620
621 --
622 -- Name: keep_disks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
623 --
624
625 CREATE SEQUENCE public.keep_disks_id_seq
626     START WITH 1
627     INCREMENT BY 1
628     NO MINVALUE
629     NO MAXVALUE
630     CACHE 1;
631
632
633 --
634 -- Name: keep_disks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
635 --
636
637 ALTER SEQUENCE public.keep_disks_id_seq OWNED BY public.keep_disks.id;
638
639
640 --
641 -- Name: keep_services; Type: TABLE; Schema: public; Owner: -
642 --
643
644 CREATE TABLE public.keep_services (
645     id integer NOT NULL,
646     uuid character varying(255) NOT NULL,
647     owner_uuid character varying(255) NOT NULL,
648     modified_by_client_uuid character varying(255),
649     modified_by_user_uuid character varying(255),
650     modified_at timestamp without time zone,
651     service_host character varying(255),
652     service_port integer,
653     service_ssl_flag boolean,
654     service_type character varying(255),
655     created_at timestamp without time zone NOT NULL,
656     updated_at timestamp without time zone NOT NULL,
657     read_only boolean DEFAULT false NOT NULL
658 );
659
660
661 --
662 -- Name: keep_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
663 --
664
665 CREATE SEQUENCE public.keep_services_id_seq
666     START WITH 1
667     INCREMENT BY 1
668     NO MINVALUE
669     NO MAXVALUE
670     CACHE 1;
671
672
673 --
674 -- Name: keep_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
675 --
676
677 ALTER SEQUENCE public.keep_services_id_seq OWNED BY public.keep_services.id;
678
679
680 --
681 -- Name: links; Type: TABLE; Schema: public; Owner: -
682 --
683
684 CREATE TABLE public.links (
685     id integer NOT NULL,
686     uuid character varying(255),
687     owner_uuid character varying(255),
688     created_at timestamp without time zone NOT NULL,
689     modified_by_client_uuid character varying(255),
690     modified_by_user_uuid character varying(255),
691     modified_at timestamp without time zone,
692     tail_uuid character varying(255),
693     link_class character varying(255),
694     name character varying(255),
695     head_uuid character varying(255),
696     properties jsonb,
697     updated_at timestamp without time zone NOT NULL
698 );
699
700
701 --
702 -- Name: links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
703 --
704
705 CREATE SEQUENCE public.links_id_seq
706     START WITH 1
707     INCREMENT BY 1
708     NO MINVALUE
709     NO MAXVALUE
710     CACHE 1;
711
712
713 --
714 -- Name: links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
715 --
716
717 ALTER SEQUENCE public.links_id_seq OWNED BY public.links.id;
718
719
720 --
721 -- Name: logs; Type: TABLE; Schema: public; Owner: -
722 --
723
724 CREATE TABLE public.logs (
725     id integer NOT NULL,
726     uuid character varying(255),
727     owner_uuid character varying(255),
728     modified_by_client_uuid character varying(255),
729     modified_by_user_uuid character varying(255),
730     object_uuid character varying(255),
731     event_at timestamp without time zone,
732     event_type character varying(255),
733     summary text,
734     properties text,
735     created_at timestamp without time zone NOT NULL,
736     updated_at timestamp without time zone NOT NULL,
737     modified_at timestamp without time zone,
738     object_owner_uuid character varying(255)
739 );
740
741
742 --
743 -- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
744 --
745
746 CREATE SEQUENCE public.logs_id_seq
747     START WITH 1
748     INCREMENT BY 1
749     NO MINVALUE
750     NO MAXVALUE
751     CACHE 1;
752
753
754 --
755 -- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
756 --
757
758 ALTER SEQUENCE public.logs_id_seq OWNED BY public.logs.id;
759
760
761 --
762 -- Name: users; Type: TABLE; Schema: public; Owner: -
763 --
764
765 CREATE TABLE public.users (
766     id integer NOT NULL,
767     uuid character varying(255),
768     owner_uuid character varying(255) NOT NULL,
769     created_at timestamp without time zone NOT NULL,
770     modified_by_client_uuid character varying(255),
771     modified_by_user_uuid character varying(255),
772     modified_at timestamp without time zone,
773     email character varying(255),
774     first_name character varying(255),
775     last_name character varying(255),
776     identity_url character varying(255),
777     is_admin boolean,
778     prefs text,
779     updated_at timestamp without time zone NOT NULL,
780     default_owner_uuid character varying(255),
781     is_active boolean DEFAULT false,
782     username character varying(255),
783     redirect_to_user_uuid character varying
784 );
785
786
787 --
788 -- Name: materialized_permission_view; Type: MATERIALIZED VIEW; Schema: public; Owner: -
789 --
790
791 CREATE MATERIALIZED VIEW public.materialized_permission_view AS
792  WITH RECURSIVE perm_value(name, val) AS (
793          VALUES ('can_read'::text,(1)::smallint), ('can_login'::text,1), ('can_write'::text,2), ('can_manage'::text,3)
794         ), perm_edges(tail_uuid, head_uuid, val, follow, trashed) AS (
795          SELECT links.tail_uuid,
796             links.head_uuid,
797             pv.val,
798             ((pv.val = 3) OR (groups.uuid IS NOT NULL)) AS follow,
799             (0)::smallint AS trashed,
800             (0)::smallint AS followtrash
801            FROM ((public.links
802              LEFT JOIN perm_value pv ON ((pv.name = (links.name)::text)))
803              LEFT JOIN public.groups ON (((pv.val < 3) AND ((groups.uuid)::text = (links.head_uuid)::text))))
804           WHERE ((links.link_class)::text = 'permission'::text)
805         UNION ALL
806          SELECT groups.owner_uuid,
807             groups.uuid,
808             3,
809             true AS bool,
810                 CASE
811                     WHEN ((groups.trash_at IS NOT NULL) AND (groups.trash_at < clock_timestamp())) THEN 1
812                     ELSE 0
813                 END AS "case",
814             1
815            FROM public.groups
816         ), perm(val, follow, user_uuid, target_uuid, trashed) AS (
817          SELECT (3)::smallint AS val,
818             true AS follow,
819             (users.uuid)::character varying(32) AS user_uuid,
820             (users.uuid)::character varying(32) AS target_uuid,
821             (0)::smallint AS trashed
822            FROM public.users
823         UNION
824          SELECT (LEAST((perm_1.val)::integer, edges.val))::smallint AS val,
825             edges.follow,
826             perm_1.user_uuid,
827             (edges.head_uuid)::character varying(32) AS target_uuid,
828             ((GREATEST((perm_1.trashed)::integer, edges.trashed) * edges.followtrash))::smallint AS trashed
829            FROM (perm perm_1
830              JOIN perm_edges edges ON ((perm_1.follow AND ((edges.tail_uuid)::text = (perm_1.target_uuid)::text))))
831         )
832  SELECT perm.user_uuid,
833     perm.target_uuid,
834     max(perm.val) AS perm_level,
835         CASE perm.follow
836             WHEN true THEN perm.target_uuid
837             ELSE NULL::character varying
838         END AS target_owner_uuid,
839     max(perm.trashed) AS trashed
840    FROM perm
841   GROUP BY perm.user_uuid, perm.target_uuid,
842         CASE perm.follow
843             WHEN true THEN perm.target_uuid
844             ELSE NULL::character varying
845         END
846   WITH NO DATA;
847
848
849 --
850 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
851 --
852
853 CREATE TABLE public.nodes (
854     id integer NOT NULL,
855     uuid character varying(255),
856     owner_uuid character varying(255),
857     created_at timestamp without time zone NOT NULL,
858     modified_by_client_uuid character varying(255),
859     modified_by_user_uuid character varying(255),
860     modified_at timestamp without time zone,
861     slot_number integer,
862     hostname character varying(255),
863     domain character varying(255),
864     ip_address character varying(255),
865     first_ping_at timestamp without time zone,
866     last_ping_at timestamp without time zone,
867     info jsonb,
868     updated_at timestamp without time zone NOT NULL,
869     properties jsonb,
870     job_uuid character varying(255)
871 );
872
873
874 --
875 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
876 --
877
878 CREATE SEQUENCE public.nodes_id_seq
879     START WITH 1
880     INCREMENT BY 1
881     NO MINVALUE
882     NO MAXVALUE
883     CACHE 1;
884
885
886 --
887 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
888 --
889
890 ALTER SEQUENCE public.nodes_id_seq OWNED BY public.nodes.id;
891
892
893 --
894 -- Name: permission_refresh_lock; Type: TABLE; Schema: public; Owner: -
895 --
896
897 CREATE TABLE public.permission_refresh_lock (
898     id integer NOT NULL
899 );
900
901
902 --
903 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE; Schema: public; Owner: -
904 --
905
906 CREATE SEQUENCE public.permission_refresh_lock_id_seq
907     START WITH 1
908     INCREMENT BY 1
909     NO MINVALUE
910     NO MAXVALUE
911     CACHE 1;
912
913
914 --
915 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
916 --
917
918 ALTER SEQUENCE public.permission_refresh_lock_id_seq OWNED BY public.permission_refresh_lock.id;
919
920
921 --
922 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -
923 --
924
925 CREATE TABLE public.pipeline_instances (
926     id integer NOT NULL,
927     uuid character varying(255),
928     owner_uuid character varying(255),
929     created_at timestamp without time zone NOT NULL,
930     modified_by_client_uuid character varying(255),
931     modified_by_user_uuid character varying(255),
932     modified_at timestamp without time zone,
933     pipeline_template_uuid character varying(255),
934     name character varying(255),
935     components text,
936     updated_at timestamp without time zone NOT NULL,
937     properties text,
938     state character varying(255),
939     components_summary text,
940     started_at timestamp without time zone,
941     finished_at timestamp without time zone,
942     description character varying(524288)
943 );
944
945
946 --
947 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
948 --
949
950 CREATE SEQUENCE public.pipeline_instances_id_seq
951     START WITH 1
952     INCREMENT BY 1
953     NO MINVALUE
954     NO MAXVALUE
955     CACHE 1;
956
957
958 --
959 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
960 --
961
962 ALTER SEQUENCE public.pipeline_instances_id_seq OWNED BY public.pipeline_instances.id;
963
964
965 --
966 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -
967 --
968
969 CREATE TABLE public.pipeline_templates (
970     id integer NOT NULL,
971     uuid character varying(255),
972     owner_uuid character varying(255),
973     created_at timestamp without time zone NOT NULL,
974     modified_by_client_uuid character varying(255),
975     modified_by_user_uuid character varying(255),
976     modified_at timestamp without time zone,
977     name character varying(255),
978     components text,
979     updated_at timestamp without time zone NOT NULL,
980     description character varying(524288)
981 );
982
983
984 --
985 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
986 --
987
988 CREATE SEQUENCE public.pipeline_templates_id_seq
989     START WITH 1
990     INCREMENT BY 1
991     NO MINVALUE
992     NO MAXVALUE
993     CACHE 1;
994
995
996 --
997 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
998 --
999
1000 ALTER SEQUENCE public.pipeline_templates_id_seq OWNED BY public.pipeline_templates.id;
1001
1002
1003 --
1004 -- Name: repositories; Type: TABLE; Schema: public; Owner: -
1005 --
1006
1007 CREATE TABLE public.repositories (
1008     id integer NOT NULL,
1009     uuid character varying(255) NOT NULL,
1010     owner_uuid character varying(255) NOT NULL,
1011     modified_by_client_uuid character varying(255),
1012     modified_by_user_uuid character varying(255),
1013     modified_at timestamp without time zone,
1014     name character varying(255),
1015     created_at timestamp without time zone NOT NULL,
1016     updated_at timestamp without time zone NOT NULL
1017 );
1018
1019
1020 --
1021 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1022 --
1023
1024 CREATE SEQUENCE public.repositories_id_seq
1025     START WITH 1
1026     INCREMENT BY 1
1027     NO MINVALUE
1028     NO MAXVALUE
1029     CACHE 1;
1030
1031
1032 --
1033 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1034 --
1035
1036 ALTER SEQUENCE public.repositories_id_seq OWNED BY public.repositories.id;
1037
1038
1039 --
1040 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
1041 --
1042
1043 CREATE TABLE public.schema_migrations (
1044     version character varying(255) NOT NULL
1045 );
1046
1047
1048 --
1049 -- Name: specimens; Type: TABLE; Schema: public; Owner: -
1050 --
1051
1052 CREATE TABLE public.specimens (
1053     id integer NOT NULL,
1054     uuid character varying(255),
1055     owner_uuid character varying(255),
1056     created_at timestamp without time zone NOT NULL,
1057     modified_by_client_uuid character varying(255),
1058     modified_by_user_uuid character varying(255),
1059     modified_at timestamp without time zone,
1060     material character varying(255),
1061     updated_at timestamp without time zone NOT NULL,
1062     properties text
1063 );
1064
1065
1066 --
1067 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1068 --
1069
1070 CREATE SEQUENCE public.specimens_id_seq
1071     START WITH 1
1072     INCREMENT BY 1
1073     NO MINVALUE
1074     NO MAXVALUE
1075     CACHE 1;
1076
1077
1078 --
1079 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1080 --
1081
1082 ALTER SEQUENCE public.specimens_id_seq OWNED BY public.specimens.id;
1083
1084
1085 --
1086 -- Name: traits; Type: TABLE; Schema: public; Owner: -
1087 --
1088
1089 CREATE TABLE public.traits (
1090     id integer NOT NULL,
1091     uuid character varying(255) NOT NULL,
1092     owner_uuid character varying(255) NOT NULL,
1093     modified_by_client_uuid character varying(255),
1094     modified_by_user_uuid character varying(255),
1095     modified_at timestamp without time zone,
1096     name character varying(255),
1097     properties text,
1098     created_at timestamp without time zone NOT NULL,
1099     updated_at timestamp without time zone NOT NULL
1100 );
1101
1102
1103 --
1104 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1105 --
1106
1107 CREATE SEQUENCE public.traits_id_seq
1108     START WITH 1
1109     INCREMENT BY 1
1110     NO MINVALUE
1111     NO MAXVALUE
1112     CACHE 1;
1113
1114
1115 --
1116 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1117 --
1118
1119 ALTER SEQUENCE public.traits_id_seq OWNED BY public.traits.id;
1120
1121
1122 --
1123 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1124 --
1125
1126 CREATE SEQUENCE public.users_id_seq
1127     START WITH 1
1128     INCREMENT BY 1
1129     NO MINVALUE
1130     NO MAXVALUE
1131     CACHE 1;
1132
1133
1134 --
1135 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1136 --
1137
1138 ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
1139
1140
1141 --
1142 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -
1143 --
1144
1145 CREATE TABLE public.virtual_machines (
1146     id integer NOT NULL,
1147     uuid character varying(255) NOT NULL,
1148     owner_uuid character varying(255) NOT NULL,
1149     modified_by_client_uuid character varying(255),
1150     modified_by_user_uuid character varying(255),
1151     modified_at timestamp without time zone,
1152     hostname character varying(255),
1153     created_at timestamp without time zone NOT NULL,
1154     updated_at timestamp without time zone NOT NULL
1155 );
1156
1157
1158 --
1159 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1160 --
1161
1162 CREATE SEQUENCE public.virtual_machines_id_seq
1163     START WITH 1
1164     INCREMENT BY 1
1165     NO MINVALUE
1166     NO MAXVALUE
1167     CACHE 1;
1168
1169
1170 --
1171 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1172 --
1173
1174 ALTER SEQUENCE public.virtual_machines_id_seq OWNED BY public.virtual_machines.id;
1175
1176
1177 --
1178 -- Name: workflows; Type: TABLE; Schema: public; Owner: -
1179 --
1180
1181 CREATE TABLE public.workflows (
1182     id integer NOT NULL,
1183     uuid character varying(255),
1184     owner_uuid character varying(255),
1185     created_at timestamp without time zone NOT NULL,
1186     modified_at timestamp without time zone,
1187     modified_by_client_uuid character varying(255),
1188     modified_by_user_uuid character varying(255),
1189     name character varying(255),
1190     description text,
1191     definition text,
1192     updated_at timestamp without time zone NOT NULL
1193 );
1194
1195
1196 --
1197 -- Name: workflows_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1198 --
1199
1200 CREATE SEQUENCE public.workflows_id_seq
1201     START WITH 1
1202     INCREMENT BY 1
1203     NO MINVALUE
1204     NO MAXVALUE
1205     CACHE 1;
1206
1207
1208 --
1209 -- Name: workflows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1210 --
1211
1212 ALTER SEQUENCE public.workflows_id_seq OWNED BY public.workflows.id;
1213
1214
1215 --
1216 -- Name: api_client_authorizations id; Type: DEFAULT; Schema: public; Owner: -
1217 --
1218
1219 ALTER TABLE ONLY public.api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('public.api_client_authorizations_id_seq'::regclass);
1220
1221
1222 --
1223 -- Name: api_clients id; Type: DEFAULT; Schema: public; Owner: -
1224 --
1225
1226 ALTER TABLE ONLY public.api_clients ALTER COLUMN id SET DEFAULT nextval('public.api_clients_id_seq'::regclass);
1227
1228
1229 --
1230 -- Name: authorized_keys id; Type: DEFAULT; Schema: public; Owner: -
1231 --
1232
1233 ALTER TABLE ONLY public.authorized_keys ALTER COLUMN id SET DEFAULT nextval('public.authorized_keys_id_seq'::regclass);
1234
1235
1236 --
1237 -- Name: collections id; Type: DEFAULT; Schema: public; Owner: -
1238 --
1239
1240 ALTER TABLE ONLY public.collections ALTER COLUMN id SET DEFAULT nextval('public.collections_id_seq'::regclass);
1241
1242
1243 --
1244 -- Name: commit_ancestors id; Type: DEFAULT; Schema: public; Owner: -
1245 --
1246
1247 ALTER TABLE ONLY public.commit_ancestors ALTER COLUMN id SET DEFAULT nextval('public.commit_ancestors_id_seq'::regclass);
1248
1249
1250 --
1251 -- Name: commits id; Type: DEFAULT; Schema: public; Owner: -
1252 --
1253
1254 ALTER TABLE ONLY public.commits ALTER COLUMN id SET DEFAULT nextval('public.commits_id_seq'::regclass);
1255
1256
1257 --
1258 -- Name: container_requests id; Type: DEFAULT; Schema: public; Owner: -
1259 --
1260
1261 ALTER TABLE ONLY public.container_requests ALTER COLUMN id SET DEFAULT nextval('public.container_requests_id_seq'::regclass);
1262
1263
1264 --
1265 -- Name: containers id; Type: DEFAULT; Schema: public; Owner: -
1266 --
1267
1268 ALTER TABLE ONLY public.containers ALTER COLUMN id SET DEFAULT nextval('public.containers_id_seq'::regclass);
1269
1270
1271 --
1272 -- Name: groups id; Type: DEFAULT; Schema: public; Owner: -
1273 --
1274
1275 ALTER TABLE ONLY public.groups ALTER COLUMN id SET DEFAULT nextval('public.groups_id_seq'::regclass);
1276
1277
1278 --
1279 -- Name: humans id; Type: DEFAULT; Schema: public; Owner: -
1280 --
1281
1282 ALTER TABLE ONLY public.humans ALTER COLUMN id SET DEFAULT nextval('public.humans_id_seq'::regclass);
1283
1284
1285 --
1286 -- Name: job_tasks id; Type: DEFAULT; Schema: public; Owner: -
1287 --
1288
1289 ALTER TABLE ONLY public.job_tasks ALTER COLUMN id SET DEFAULT nextval('public.job_tasks_id_seq'::regclass);
1290
1291
1292 --
1293 -- Name: jobs id; Type: DEFAULT; Schema: public; Owner: -
1294 --
1295
1296 ALTER TABLE ONLY public.jobs ALTER COLUMN id SET DEFAULT nextval('public.jobs_id_seq'::regclass);
1297
1298
1299 --
1300 -- Name: keep_disks id; Type: DEFAULT; Schema: public; Owner: -
1301 --
1302
1303 ALTER TABLE ONLY public.keep_disks ALTER COLUMN id SET DEFAULT nextval('public.keep_disks_id_seq'::regclass);
1304
1305
1306 --
1307 -- Name: keep_services id; Type: DEFAULT; Schema: public; Owner: -
1308 --
1309
1310 ALTER TABLE ONLY public.keep_services ALTER COLUMN id SET DEFAULT nextval('public.keep_services_id_seq'::regclass);
1311
1312
1313 --
1314 -- Name: links id; Type: DEFAULT; Schema: public; Owner: -
1315 --
1316
1317 ALTER TABLE ONLY public.links ALTER COLUMN id SET DEFAULT nextval('public.links_id_seq'::regclass);
1318
1319
1320 --
1321 -- Name: logs id; Type: DEFAULT; Schema: public; Owner: -
1322 --
1323
1324 ALTER TABLE ONLY public.logs ALTER COLUMN id SET DEFAULT nextval('public.logs_id_seq'::regclass);
1325
1326
1327 --
1328 -- Name: nodes id; Type: DEFAULT; Schema: public; Owner: -
1329 --
1330
1331 ALTER TABLE ONLY public.nodes ALTER COLUMN id SET DEFAULT nextval('public.nodes_id_seq'::regclass);
1332
1333
1334 --
1335 -- Name: permission_refresh_lock id; Type: DEFAULT; Schema: public; Owner: -
1336 --
1337
1338 ALTER TABLE ONLY public.permission_refresh_lock ALTER COLUMN id SET DEFAULT nextval('public.permission_refresh_lock_id_seq'::regclass);
1339
1340
1341 --
1342 -- Name: pipeline_instances id; Type: DEFAULT; Schema: public; Owner: -
1343 --
1344
1345 ALTER TABLE ONLY public.pipeline_instances ALTER COLUMN id SET DEFAULT nextval('public.pipeline_instances_id_seq'::regclass);
1346
1347
1348 --
1349 -- Name: pipeline_templates id; Type: DEFAULT; Schema: public; Owner: -
1350 --
1351
1352 ALTER TABLE ONLY public.pipeline_templates ALTER COLUMN id SET DEFAULT nextval('public.pipeline_templates_id_seq'::regclass);
1353
1354
1355 --
1356 -- Name: repositories id; Type: DEFAULT; Schema: public; Owner: -
1357 --
1358
1359 ALTER TABLE ONLY public.repositories ALTER COLUMN id SET DEFAULT nextval('public.repositories_id_seq'::regclass);
1360
1361
1362 --
1363 -- Name: specimens id; Type: DEFAULT; Schema: public; Owner: -
1364 --
1365
1366 ALTER TABLE ONLY public.specimens ALTER COLUMN id SET DEFAULT nextval('public.specimens_id_seq'::regclass);
1367
1368
1369 --
1370 -- Name: traits id; Type: DEFAULT; Schema: public; Owner: -
1371 --
1372
1373 ALTER TABLE ONLY public.traits ALTER COLUMN id SET DEFAULT nextval('public.traits_id_seq'::regclass);
1374
1375
1376 --
1377 -- Name: users id; Type: DEFAULT; Schema: public; Owner: -
1378 --
1379
1380 ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
1381
1382
1383 --
1384 -- Name: virtual_machines id; Type: DEFAULT; Schema: public; Owner: -
1385 --
1386
1387 ALTER TABLE ONLY public.virtual_machines ALTER COLUMN id SET DEFAULT nextval('public.virtual_machines_id_seq'::regclass);
1388
1389
1390 --
1391 -- Name: workflows id; Type: DEFAULT; Schema: public; Owner: -
1392 --
1393
1394 ALTER TABLE ONLY public.workflows ALTER COLUMN id SET DEFAULT nextval('public.workflows_id_seq'::regclass);
1395
1396
1397 --
1398 -- Name: api_client_authorizations api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1399 --
1400
1401 ALTER TABLE ONLY public.api_client_authorizations
1402     ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1403
1404
1405 --
1406 -- Name: api_clients api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1407 --
1408
1409 ALTER TABLE ONLY public.api_clients
1410     ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1411
1412
1413 --
1414 -- Name: authorized_keys authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1415 --
1416
1417 ALTER TABLE ONLY public.authorized_keys
1418     ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1419
1420
1421 --
1422 -- Name: collections collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1423 --
1424
1425 ALTER TABLE ONLY public.collections
1426     ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1427
1428
1429 --
1430 -- Name: commit_ancestors commit_ancestors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1431 --
1432
1433 ALTER TABLE ONLY public.commit_ancestors
1434     ADD CONSTRAINT commit_ancestors_pkey PRIMARY KEY (id);
1435
1436
1437 --
1438 -- Name: commits commits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1439 --
1440
1441 ALTER TABLE ONLY public.commits
1442     ADD CONSTRAINT commits_pkey PRIMARY KEY (id);
1443
1444
1445 --
1446 -- Name: container_requests container_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1447 --
1448
1449 ALTER TABLE ONLY public.container_requests
1450     ADD CONSTRAINT container_requests_pkey PRIMARY KEY (id);
1451
1452
1453 --
1454 -- Name: containers containers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1455 --
1456
1457 ALTER TABLE ONLY public.containers
1458     ADD CONSTRAINT containers_pkey PRIMARY KEY (id);
1459
1460
1461 --
1462 -- Name: groups groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1463 --
1464
1465 ALTER TABLE ONLY public.groups
1466     ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1467
1468
1469 --
1470 -- Name: humans humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1471 --
1472
1473 ALTER TABLE ONLY public.humans
1474     ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1475
1476
1477 --
1478 -- Name: job_tasks job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1479 --
1480
1481 ALTER TABLE ONLY public.job_tasks
1482     ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1483
1484
1485 --
1486 -- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1487 --
1488
1489 ALTER TABLE ONLY public.jobs
1490     ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1491
1492
1493 --
1494 -- Name: keep_disks keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1495 --
1496
1497 ALTER TABLE ONLY public.keep_disks
1498     ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1499
1500
1501 --
1502 -- Name: keep_services keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1503 --
1504
1505 ALTER TABLE ONLY public.keep_services
1506     ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1507
1508
1509 --
1510 -- Name: links links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1511 --
1512
1513 ALTER TABLE ONLY public.links
1514     ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1515
1516
1517 --
1518 -- Name: logs logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1519 --
1520
1521 ALTER TABLE ONLY public.logs
1522     ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1523
1524
1525 --
1526 -- Name: nodes nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1527 --
1528
1529 ALTER TABLE ONLY public.nodes
1530     ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1531
1532
1533 --
1534 -- Name: permission_refresh_lock permission_refresh_lock_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1535 --
1536
1537 ALTER TABLE ONLY public.permission_refresh_lock
1538     ADD CONSTRAINT permission_refresh_lock_pkey PRIMARY KEY (id);
1539
1540
1541 --
1542 -- Name: pipeline_instances pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1543 --
1544
1545 ALTER TABLE ONLY public.pipeline_instances
1546     ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1547
1548
1549 --
1550 -- Name: pipeline_templates pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1551 --
1552
1553 ALTER TABLE ONLY public.pipeline_templates
1554     ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1555
1556
1557 --
1558 -- Name: repositories repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1559 --
1560
1561 ALTER TABLE ONLY public.repositories
1562     ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1563
1564
1565 --
1566 -- Name: specimens specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1567 --
1568
1569 ALTER TABLE ONLY public.specimens
1570     ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1571
1572
1573 --
1574 -- Name: traits traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1575 --
1576
1577 ALTER TABLE ONLY public.traits
1578     ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1579
1580
1581 --
1582 -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1583 --
1584
1585 ALTER TABLE ONLY public.users
1586     ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1587
1588
1589 --
1590 -- Name: virtual_machines virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1591 --
1592
1593 ALTER TABLE ONLY public.virtual_machines
1594     ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1595
1596
1597 --
1598 -- Name: workflows workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1599 --
1600
1601 ALTER TABLE ONLY public.workflows
1602     ADD CONSTRAINT workflows_pkey PRIMARY KEY (id);
1603
1604
1605 --
1606 -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -
1607 --
1608
1609 CREATE INDEX api_client_authorizations_search_index ON public.api_client_authorizations USING btree (api_token, created_by_ip_address, last_used_by_ip_address, default_owner_uuid, uuid);
1610
1611
1612 --
1613 -- Name: api_clients_search_index; Type: INDEX; Schema: public; Owner: -
1614 --
1615
1616 CREATE INDEX api_clients_search_index ON public.api_clients USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, url_prefix);
1617
1618
1619 --
1620 -- Name: authorized_keys_search_index; Type: INDEX; Schema: public; Owner: -
1621 --
1622
1623 CREATE INDEX authorized_keys_search_index ON public.authorized_keys USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, key_type, authorized_user_uuid);
1624
1625
1626 --
1627 -- Name: collection_index_on_properties; Type: INDEX; Schema: public; Owner: -
1628 --
1629
1630 CREATE INDEX collection_index_on_properties ON public.collections USING gin (properties);
1631
1632
1633 --
1634 -- Name: collections_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1635 --
1636
1637 CREATE INDEX collections_full_text_search_idx ON public.collections USING gin (to_tsvector('english'::regconfig, substr((((((((((((((((((COALESCE(owner_uuid, ''::character varying))::text || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(portable_data_hash, ''::character varying))::text) || ' '::text) || (COALESCE(uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || COALESCE((properties)::text, ''::text)) || ' '::text) || COALESCE(file_names, ''::text)), 0, 1000000)));
1638
1639
1640 --
1641 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -
1642 --
1643
1644 CREATE INDEX collections_search_index ON public.collections USING btree (owner_uuid, modified_by_client_uuid, modified_by_user_uuid, portable_data_hash, uuid, name, current_version_uuid);
1645
1646
1647 --
1648 -- Name: container_requests_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1649 --
1650
1651 CREATE INDEX container_requests_full_text_search_idx ON public.container_requests USING gin (to_tsvector('english'::regconfig, substr((((((((((((((((((((((((((((((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || COALESCE(description, ''::text)) || ' '::text) || COALESCE((properties)::text, ''::text)) || ' '::text) || (COALESCE(state, ''::character varying))::text) || ' '::text) || (COALESCE(requesting_container_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(container_uuid, ''::character varying))::text) || ' '::text) || COALESCE(runtime_constraints, ''::text)) || ' '::text) || (COALESCE(container_image, ''::character varying))::text) || ' '::text) || COALESCE(environment, ''::text)) || ' '::text) || (COALESCE(cwd, ''::character varying))::text) || ' '::text) || COALESCE(command, ''::text)) || ' '::text) || (COALESCE(output_path, ''::character varying))::text) || ' '::text) || COALESCE(filters, ''::text)) || ' '::text) || COALESCE(scheduling_parameters, ''::text)) || ' '::text) || (COALESCE(output_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(log_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(output_name, ''::character varying))::text), 0, 1000000)));
1652
1653
1654 --
1655 -- Name: container_requests_index_on_properties; Type: INDEX; Schema: public; Owner: -
1656 --
1657
1658 CREATE INDEX container_requests_index_on_properties ON public.container_requests USING gin (properties);
1659
1660
1661 --
1662 -- Name: container_requests_search_index; Type: INDEX; Schema: public; Owner: -
1663 --
1664
1665 CREATE INDEX container_requests_search_index ON public.container_requests USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, state, requesting_container_uuid, container_uuid, container_image, cwd, output_path, output_uuid, log_uuid, output_name);
1666
1667
1668 --
1669 -- Name: containers_search_index; Type: INDEX; Schema: public; Owner: -
1670 --
1671
1672 CREATE INDEX containers_search_index ON public.containers USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, state, log, cwd, output_path, output, container_image, auth_uuid, locked_by_uuid);
1673
1674
1675 --
1676 -- Name: group_index_on_properties; Type: INDEX; Schema: public; Owner: -
1677 --
1678
1679 CREATE INDEX group_index_on_properties ON public.groups USING gin (properties);
1680
1681
1682 --
1683 -- Name: groups_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1684 --
1685
1686 CREATE INDEX groups_full_text_search_idx ON public.groups USING gin (to_tsvector('english'::regconfig, substr((((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || (COALESCE(group_class, ''::character varying))::text) || ' '::text) || COALESCE((properties)::text, ''::text)), 0, 1000000)));
1687
1688
1689 --
1690 -- Name: groups_search_index; Type: INDEX; Schema: public; Owner: -
1691 --
1692
1693 CREATE INDEX groups_search_index ON public.groups USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, group_class);
1694
1695
1696 --
1697 -- Name: humans_search_index; Type: INDEX; Schema: public; Owner: -
1698 --
1699
1700 CREATE INDEX humans_search_index ON public.humans USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid);
1701
1702
1703 --
1704 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -
1705 --
1706
1707 CREATE INDEX index_api_client_authorizations_on_api_client_id ON public.api_client_authorizations USING btree (api_client_id);
1708
1709
1710 --
1711 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -
1712 --
1713
1714 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON public.api_client_authorizations USING btree (api_token);
1715
1716
1717 --
1718 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -
1719 --
1720
1721 CREATE INDEX index_api_client_authorizations_on_expires_at ON public.api_client_authorizations USING btree (expires_at);
1722
1723
1724 --
1725 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -
1726 --
1727
1728 CREATE INDEX index_api_client_authorizations_on_user_id ON public.api_client_authorizations USING btree (user_id);
1729
1730
1731 --
1732 -- Name: index_api_client_authorizations_on_uuid; Type: INDEX; Schema: public; Owner: -
1733 --
1734
1735 CREATE UNIQUE INDEX index_api_client_authorizations_on_uuid ON public.api_client_authorizations USING btree (uuid);
1736
1737
1738 --
1739 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -
1740 --
1741
1742 CREATE INDEX index_api_clients_on_created_at ON public.api_clients USING btree (created_at);
1743
1744
1745 --
1746 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -
1747 --
1748
1749 CREATE INDEX index_api_clients_on_modified_at ON public.api_clients USING btree (modified_at);
1750
1751
1752 --
1753 -- Name: index_api_clients_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1754 --
1755
1756 CREATE INDEX index_api_clients_on_owner_uuid ON public.api_clients USING btree (owner_uuid);
1757
1758
1759 --
1760 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -
1761 --
1762
1763 CREATE UNIQUE INDEX index_api_clients_on_uuid ON public.api_clients USING btree (uuid);
1764
1765
1766 --
1767 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -
1768 --
1769
1770 CREATE INDEX index_authkeys_on_user_and_expires_at ON public.authorized_keys USING btree (authorized_user_uuid, expires_at);
1771
1772
1773 --
1774 -- Name: index_authorized_keys_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1775 --
1776
1777 CREATE INDEX index_authorized_keys_on_owner_uuid ON public.authorized_keys USING btree (owner_uuid);
1778
1779
1780 --
1781 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -
1782 --
1783
1784 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON public.authorized_keys USING btree (uuid);
1785
1786
1787 --
1788 -- Name: index_collections_on_created_at; Type: INDEX; Schema: public; Owner: -
1789 --
1790
1791 CREATE INDEX index_collections_on_created_at ON public.collections USING btree (created_at);
1792
1793
1794 --
1795 -- Name: index_collections_on_current_version_uuid_and_version; Type: INDEX; Schema: public; Owner: -
1796 --
1797
1798 CREATE UNIQUE INDEX index_collections_on_current_version_uuid_and_version ON public.collections USING btree (current_version_uuid, version);
1799
1800
1801 --
1802 -- Name: index_collections_on_delete_at; Type: INDEX; Schema: public; Owner: -
1803 --
1804
1805 CREATE INDEX index_collections_on_delete_at ON public.collections USING btree (delete_at);
1806
1807
1808 --
1809 -- Name: index_collections_on_is_trashed; Type: INDEX; Schema: public; Owner: -
1810 --
1811
1812 CREATE INDEX index_collections_on_is_trashed ON public.collections USING btree (is_trashed);
1813
1814
1815 --
1816 -- Name: index_collections_on_modified_at; Type: INDEX; Schema: public; Owner: -
1817 --
1818
1819 CREATE INDEX index_collections_on_modified_at ON public.collections USING btree (modified_at);
1820
1821
1822 --
1823 -- Name: index_collections_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1824 --
1825
1826 CREATE INDEX index_collections_on_modified_at_uuid ON public.collections USING btree (modified_at DESC, uuid);
1827
1828
1829 --
1830 -- Name: index_collections_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1831 --
1832
1833 CREATE INDEX index_collections_on_owner_uuid ON public.collections USING btree (owner_uuid);
1834
1835
1836 --
1837 -- Name: index_collections_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
1838 --
1839
1840 CREATE UNIQUE INDEX index_collections_on_owner_uuid_and_name ON public.collections USING btree (owner_uuid, name) WHERE ((is_trashed = false) AND ((current_version_uuid)::text = (uuid)::text));
1841
1842
1843 --
1844 -- Name: index_collections_on_portable_data_hash_and_trash_at; Type: INDEX; Schema: public; Owner: -
1845 --
1846
1847 CREATE INDEX index_collections_on_portable_data_hash_and_trash_at ON public.collections USING btree (portable_data_hash, trash_at);
1848
1849
1850 --
1851 -- Name: index_collections_on_trash_at; Type: INDEX; Schema: public; Owner: -
1852 --
1853
1854 CREATE INDEX index_collections_on_trash_at ON public.collections USING btree (trash_at);
1855
1856
1857 --
1858 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -
1859 --
1860
1861 CREATE UNIQUE INDEX index_collections_on_uuid ON public.collections USING btree (uuid);
1862
1863
1864 --
1865 -- Name: index_commit_ancestors_on_descendant_and_ancestor; Type: INDEX; Schema: public; Owner: -
1866 --
1867
1868 CREATE UNIQUE INDEX index_commit_ancestors_on_descendant_and_ancestor ON public.commit_ancestors USING btree (descendant, ancestor);
1869
1870
1871 --
1872 -- Name: index_commits_on_repository_name_and_sha1; Type: INDEX; Schema: public; Owner: -
1873 --
1874
1875 CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON public.commits USING btree (repository_name, sha1);
1876
1877
1878 --
1879 -- Name: index_container_requests_on_container_uuid; Type: INDEX; Schema: public; Owner: -
1880 --
1881
1882 CREATE INDEX index_container_requests_on_container_uuid ON public.container_requests USING btree (container_uuid);
1883
1884
1885 --
1886 -- Name: index_container_requests_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1887 --
1888
1889 CREATE INDEX index_container_requests_on_modified_at_uuid ON public.container_requests USING btree (modified_at DESC, uuid);
1890
1891
1892 --
1893 -- Name: index_container_requests_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1894 --
1895
1896 CREATE INDEX index_container_requests_on_owner_uuid ON public.container_requests USING btree (owner_uuid);
1897
1898
1899 --
1900 -- Name: index_container_requests_on_requesting_container_uuid; Type: INDEX; Schema: public; Owner: -
1901 --
1902
1903 CREATE INDEX index_container_requests_on_requesting_container_uuid ON public.container_requests USING btree (requesting_container_uuid);
1904
1905
1906 --
1907 -- Name: index_container_requests_on_uuid; Type: INDEX; Schema: public; Owner: -
1908 --
1909
1910 CREATE UNIQUE INDEX index_container_requests_on_uuid ON public.container_requests USING btree (uuid);
1911
1912
1913 --
1914 -- Name: index_containers_on_auth_uuid; Type: INDEX; Schema: public; Owner: -
1915 --
1916
1917 CREATE INDEX index_containers_on_auth_uuid ON public.containers USING btree (auth_uuid);
1918
1919
1920 --
1921 -- Name: index_containers_on_locked_by_uuid_and_priority; Type: INDEX; Schema: public; Owner: -
1922 --
1923
1924 CREATE INDEX index_containers_on_locked_by_uuid_and_priority ON public.containers USING btree (locked_by_uuid, priority);
1925
1926
1927 --
1928 -- Name: index_containers_on_locked_by_uuid_and_uuid; Type: INDEX; Schema: public; Owner: -
1929 --
1930
1931 CREATE INDEX index_containers_on_locked_by_uuid_and_uuid ON public.containers USING btree (locked_by_uuid, uuid);
1932
1933
1934 --
1935 -- Name: index_containers_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1936 --
1937
1938 CREATE INDEX index_containers_on_modified_at_uuid ON public.containers USING btree (modified_at DESC, uuid);
1939
1940
1941 --
1942 -- Name: index_containers_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1943 --
1944
1945 CREATE INDEX index_containers_on_owner_uuid ON public.containers USING btree (owner_uuid);
1946
1947
1948 --
1949 -- Name: index_containers_on_queued_state; Type: INDEX; Schema: public; Owner: -
1950 --
1951
1952 CREATE INDEX index_containers_on_queued_state ON public.containers USING btree (state, ((priority > 0)));
1953
1954
1955 --
1956 -- Name: index_containers_on_reuse_columns; Type: INDEX; Schema: public; Owner: -
1957 --
1958
1959 CREATE INDEX index_containers_on_reuse_columns ON public.containers USING btree (md5(command), cwd, md5(environment), output_path, container_image, md5(mounts), secret_mounts_md5, md5(runtime_constraints));
1960
1961
1962 --
1963 -- Name: index_containers_on_runtime_status; Type: INDEX; Schema: public; Owner: -
1964 --
1965
1966 CREATE INDEX index_containers_on_runtime_status ON public.containers USING gin (runtime_status);
1967
1968
1969 --
1970 -- Name: index_containers_on_secret_mounts_md5; Type: INDEX; Schema: public; Owner: -
1971 --
1972
1973 CREATE INDEX index_containers_on_secret_mounts_md5 ON public.containers USING btree (secret_mounts_md5);
1974
1975
1976 --
1977 -- Name: index_containers_on_uuid; Type: INDEX; Schema: public; Owner: -
1978 --
1979
1980 CREATE UNIQUE INDEX index_containers_on_uuid ON public.containers USING btree (uuid);
1981
1982
1983 --
1984 -- Name: index_groups_on_created_at; Type: INDEX; Schema: public; Owner: -
1985 --
1986
1987 CREATE INDEX index_groups_on_created_at ON public.groups USING btree (created_at);
1988
1989
1990 --
1991 -- Name: index_groups_on_delete_at; Type: INDEX; Schema: public; Owner: -
1992 --
1993
1994 CREATE INDEX index_groups_on_delete_at ON public.groups USING btree (delete_at);
1995
1996
1997 --
1998 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -
1999 --
2000
2001 CREATE INDEX index_groups_on_group_class ON public.groups USING btree (group_class);
2002
2003
2004 --
2005 -- Name: index_groups_on_is_trashed; Type: INDEX; Schema: public; Owner: -
2006 --
2007
2008 CREATE INDEX index_groups_on_is_trashed ON public.groups USING btree (is_trashed);
2009
2010
2011 --
2012 -- Name: index_groups_on_modified_at; Type: INDEX; Schema: public; Owner: -
2013 --
2014
2015 CREATE INDEX index_groups_on_modified_at ON public.groups USING btree (modified_at);
2016
2017
2018 --
2019 -- Name: index_groups_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2020 --
2021
2022 CREATE INDEX index_groups_on_modified_at_uuid ON public.groups USING btree (modified_at DESC, uuid);
2023
2024
2025 --
2026 -- Name: index_groups_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2027 --
2028
2029 CREATE INDEX index_groups_on_owner_uuid ON public.groups USING btree (owner_uuid);
2030
2031
2032 --
2033 -- Name: index_groups_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
2034 --
2035
2036 CREATE UNIQUE INDEX index_groups_on_owner_uuid_and_name ON public.groups USING btree (owner_uuid, name) WHERE (is_trashed = false);
2037
2038
2039 --
2040 -- Name: index_groups_on_trash_at; Type: INDEX; Schema: public; Owner: -
2041 --
2042
2043 CREATE INDEX index_groups_on_trash_at ON public.groups USING btree (trash_at);
2044
2045
2046 --
2047 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -
2048 --
2049
2050 CREATE UNIQUE INDEX index_groups_on_uuid ON public.groups USING btree (uuid);
2051
2052
2053 --
2054 -- Name: index_humans_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2055 --
2056
2057 CREATE INDEX index_humans_on_owner_uuid ON public.humans USING btree (owner_uuid);
2058
2059
2060 --
2061 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -
2062 --
2063
2064 CREATE UNIQUE INDEX index_humans_on_uuid ON public.humans USING btree (uuid);
2065
2066
2067 --
2068 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -
2069 --
2070
2071 CREATE INDEX index_job_tasks_on_created_at ON public.job_tasks USING btree (created_at);
2072
2073
2074 --
2075 -- Name: index_job_tasks_on_created_by_job_task_uuid; Type: INDEX; Schema: public; Owner: -
2076 --
2077
2078 CREATE INDEX index_job_tasks_on_created_by_job_task_uuid ON public.job_tasks USING btree (created_by_job_task_uuid);
2079
2080
2081 --
2082 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -
2083 --
2084
2085 CREATE INDEX index_job_tasks_on_job_uuid ON public.job_tasks USING btree (job_uuid);
2086
2087
2088 --
2089 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -
2090 --
2091
2092 CREATE INDEX index_job_tasks_on_modified_at ON public.job_tasks USING btree (modified_at);
2093
2094
2095 --
2096 -- Name: index_job_tasks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2097 --
2098
2099 CREATE INDEX index_job_tasks_on_owner_uuid ON public.job_tasks USING btree (owner_uuid);
2100
2101
2102 --
2103 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -
2104 --
2105
2106 CREATE INDEX index_job_tasks_on_sequence ON public.job_tasks USING btree (sequence);
2107
2108
2109 --
2110 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -
2111 --
2112
2113 CREATE INDEX index_job_tasks_on_success ON public.job_tasks USING btree (success);
2114
2115
2116 --
2117 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -
2118 --
2119
2120 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON public.job_tasks USING btree (uuid);
2121
2122
2123 --
2124 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -
2125 --
2126
2127 CREATE INDEX index_jobs_on_created_at ON public.jobs USING btree (created_at);
2128
2129
2130 --
2131 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -
2132 --
2133
2134 CREATE INDEX index_jobs_on_finished_at ON public.jobs USING btree (finished_at);
2135
2136
2137 --
2138 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2139 --
2140
2141 CREATE INDEX index_jobs_on_modified_at ON public.jobs USING btree (modified_at);
2142
2143
2144 --
2145 -- Name: index_jobs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2146 --
2147
2148 CREATE INDEX index_jobs_on_modified_at_uuid ON public.jobs USING btree (modified_at DESC, uuid);
2149
2150
2151 --
2152 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -
2153 --
2154
2155 CREATE INDEX index_jobs_on_output ON public.jobs USING btree (output);
2156
2157
2158 --
2159 -- Name: index_jobs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2160 --
2161
2162 CREATE INDEX index_jobs_on_owner_uuid ON public.jobs USING btree (owner_uuid);
2163
2164
2165 --
2166 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -
2167 --
2168
2169 CREATE INDEX index_jobs_on_script ON public.jobs USING btree (script);
2170
2171
2172 --
2173 -- Name: index_jobs_on_script_parameters_digest; Type: INDEX; Schema: public; Owner: -
2174 --
2175
2176 CREATE INDEX index_jobs_on_script_parameters_digest ON public.jobs USING btree (script_parameters_digest);
2177
2178
2179 --
2180 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -
2181 --
2182
2183 CREATE INDEX index_jobs_on_started_at ON public.jobs USING btree (started_at);
2184
2185
2186 --
2187 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -
2188 --
2189
2190 CREATE UNIQUE INDEX index_jobs_on_submit_id ON public.jobs USING btree (submit_id);
2191
2192
2193 --
2194 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -
2195 --
2196
2197 CREATE UNIQUE INDEX index_jobs_on_uuid ON public.jobs USING btree (uuid);
2198
2199
2200 --
2201 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -
2202 --
2203
2204 CREATE INDEX index_keep_disks_on_filesystem_uuid ON public.keep_disks USING btree (filesystem_uuid);
2205
2206
2207 --
2208 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -
2209 --
2210
2211 CREATE INDEX index_keep_disks_on_last_ping_at ON public.keep_disks USING btree (last_ping_at);
2212
2213
2214 --
2215 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -
2216 --
2217
2218 CREATE INDEX index_keep_disks_on_node_uuid ON public.keep_disks USING btree (node_uuid);
2219
2220
2221 --
2222 -- Name: index_keep_disks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2223 --
2224
2225 CREATE INDEX index_keep_disks_on_owner_uuid ON public.keep_disks USING btree (owner_uuid);
2226
2227
2228 --
2229 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -
2230 --
2231
2232 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON public.keep_disks USING btree (uuid);
2233
2234
2235 --
2236 -- Name: index_keep_services_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2237 --
2238
2239 CREATE INDEX index_keep_services_on_owner_uuid ON public.keep_services USING btree (owner_uuid);
2240
2241
2242 --
2243 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -
2244 --
2245
2246 CREATE UNIQUE INDEX index_keep_services_on_uuid ON public.keep_services USING btree (uuid);
2247
2248
2249 --
2250 -- Name: index_links_on_created_at; Type: INDEX; Schema: public; Owner: -
2251 --
2252
2253 CREATE INDEX index_links_on_created_at ON public.links USING btree (created_at);
2254
2255
2256 --
2257 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -
2258 --
2259
2260 CREATE INDEX index_links_on_head_uuid ON public.links USING btree (head_uuid);
2261
2262
2263 --
2264 -- Name: index_links_on_modified_at; Type: INDEX; Schema: public; Owner: -
2265 --
2266
2267 CREATE INDEX index_links_on_modified_at ON public.links USING btree (modified_at);
2268
2269
2270 --
2271 -- Name: index_links_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2272 --
2273
2274 CREATE INDEX index_links_on_modified_at_uuid ON public.links USING btree (modified_at DESC, uuid);
2275
2276
2277 --
2278 -- Name: index_links_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2279 --
2280
2281 CREATE INDEX index_links_on_owner_uuid ON public.links USING btree (owner_uuid);
2282
2283
2284 --
2285 -- Name: index_links_on_substring_head_uuid; Type: INDEX; Schema: public; Owner: -
2286 --
2287
2288 CREATE INDEX index_links_on_substring_head_uuid ON public.links USING btree ("substring"((head_uuid)::text, 7, 5));
2289
2290
2291 --
2292 -- Name: index_links_on_substring_tail_uuid; Type: INDEX; Schema: public; Owner: -
2293 --
2294
2295 CREATE INDEX index_links_on_substring_tail_uuid ON public.links USING btree ("substring"((tail_uuid)::text, 7, 5));
2296
2297
2298 --
2299 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -
2300 --
2301
2302 CREATE INDEX index_links_on_tail_uuid ON public.links USING btree (tail_uuid);
2303
2304
2305 --
2306 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -
2307 --
2308
2309 CREATE UNIQUE INDEX index_links_on_uuid ON public.links USING btree (uuid);
2310
2311
2312 --
2313 -- Name: index_logs_on_created_at; Type: INDEX; Schema: public; Owner: -
2314 --
2315
2316 CREATE INDEX index_logs_on_created_at ON public.logs USING btree (created_at);
2317
2318
2319 --
2320 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -
2321 --
2322
2323 CREATE INDEX index_logs_on_event_at ON public.logs USING btree (event_at);
2324
2325
2326 --
2327 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -
2328 --
2329
2330 CREATE INDEX index_logs_on_event_type ON public.logs USING btree (event_type);
2331
2332
2333 --
2334 -- Name: index_logs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2335 --
2336
2337 CREATE INDEX index_logs_on_modified_at ON public.logs USING btree (modified_at);
2338
2339
2340 --
2341 -- Name: index_logs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2342 --
2343
2344 CREATE INDEX index_logs_on_modified_at_uuid ON public.logs USING btree (modified_at DESC, uuid);
2345
2346
2347 --
2348 -- Name: index_logs_on_object_owner_uuid; Type: INDEX; Schema: public; Owner: -
2349 --
2350
2351 CREATE INDEX index_logs_on_object_owner_uuid ON public.logs USING btree (object_owner_uuid);
2352
2353
2354 --
2355 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -
2356 --
2357
2358 CREATE INDEX index_logs_on_object_uuid ON public.logs USING btree (object_uuid);
2359
2360
2361 --
2362 -- Name: index_logs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2363 --
2364
2365 CREATE INDEX index_logs_on_owner_uuid ON public.logs USING btree (owner_uuid);
2366
2367
2368 --
2369 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -
2370 --
2371
2372 CREATE INDEX index_logs_on_summary ON public.logs USING btree (summary);
2373
2374
2375 --
2376 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -
2377 --
2378
2379 CREATE UNIQUE INDEX index_logs_on_uuid ON public.logs USING btree (uuid);
2380
2381
2382 --
2383 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -
2384 --
2385
2386 CREATE INDEX index_nodes_on_created_at ON public.nodes USING btree (created_at);
2387
2388
2389 --
2390 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -
2391 --
2392
2393 CREATE INDEX index_nodes_on_hostname ON public.nodes USING btree (hostname);
2394
2395
2396 --
2397 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -
2398 --
2399
2400 CREATE INDEX index_nodes_on_modified_at ON public.nodes USING btree (modified_at);
2401
2402
2403 --
2404 -- Name: index_nodes_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2405 --
2406
2407 CREATE INDEX index_nodes_on_owner_uuid ON public.nodes USING btree (owner_uuid);
2408
2409
2410 --
2411 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -
2412 --
2413
2414 CREATE UNIQUE INDEX index_nodes_on_slot_number ON public.nodes USING btree (slot_number);
2415
2416
2417 --
2418 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -
2419 --
2420
2421 CREATE UNIQUE INDEX index_nodes_on_uuid ON public.nodes USING btree (uuid);
2422
2423
2424 --
2425 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -
2426 --
2427
2428 CREATE INDEX index_pipeline_instances_on_created_at ON public.pipeline_instances USING btree (created_at);
2429
2430
2431 --
2432 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -
2433 --
2434
2435 CREATE INDEX index_pipeline_instances_on_modified_at ON public.pipeline_instances USING btree (modified_at);
2436
2437
2438 --
2439 -- Name: index_pipeline_instances_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2440 --
2441
2442 CREATE INDEX index_pipeline_instances_on_modified_at_uuid ON public.pipeline_instances USING btree (modified_at DESC, uuid);
2443
2444
2445 --
2446 -- Name: index_pipeline_instances_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2447 --
2448
2449 CREATE INDEX index_pipeline_instances_on_owner_uuid ON public.pipeline_instances USING btree (owner_uuid);
2450
2451
2452 --
2453 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -
2454 --
2455
2456 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON public.pipeline_instances USING btree (uuid);
2457
2458
2459 --
2460 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -
2461 --
2462
2463 CREATE INDEX index_pipeline_templates_on_created_at ON public.pipeline_templates USING btree (created_at);
2464
2465
2466 --
2467 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -
2468 --
2469
2470 CREATE INDEX index_pipeline_templates_on_modified_at ON public.pipeline_templates USING btree (modified_at);
2471
2472
2473 --
2474 -- Name: index_pipeline_templates_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2475 --
2476
2477 CREATE INDEX index_pipeline_templates_on_modified_at_uuid ON public.pipeline_templates USING btree (modified_at DESC, uuid);
2478
2479
2480 --
2481 -- Name: index_pipeline_templates_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2482 --
2483
2484 CREATE INDEX index_pipeline_templates_on_owner_uuid ON public.pipeline_templates USING btree (owner_uuid);
2485
2486
2487 --
2488 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -
2489 --
2490
2491 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON public.pipeline_templates USING btree (uuid);
2492
2493
2494 --
2495 -- Name: index_repositories_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2496 --
2497
2498 CREATE INDEX index_repositories_on_modified_at_uuid ON public.repositories USING btree (modified_at DESC, uuid);
2499
2500
2501 --
2502 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -
2503 --
2504
2505 CREATE UNIQUE INDEX index_repositories_on_name ON public.repositories USING btree (name);
2506
2507
2508 --
2509 -- Name: index_repositories_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2510 --
2511
2512 CREATE INDEX index_repositories_on_owner_uuid ON public.repositories USING btree (owner_uuid);
2513
2514
2515 --
2516 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -
2517 --
2518
2519 CREATE UNIQUE INDEX index_repositories_on_uuid ON public.repositories USING btree (uuid);
2520
2521
2522 --
2523 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -
2524 --
2525
2526 CREATE INDEX index_specimens_on_created_at ON public.specimens USING btree (created_at);
2527
2528
2529 --
2530 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -
2531 --
2532
2533 CREATE INDEX index_specimens_on_modified_at ON public.specimens USING btree (modified_at);
2534
2535
2536 --
2537 -- Name: index_specimens_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2538 --
2539
2540 CREATE INDEX index_specimens_on_owner_uuid ON public.specimens USING btree (owner_uuid);
2541
2542
2543 --
2544 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -
2545 --
2546
2547 CREATE UNIQUE INDEX index_specimens_on_uuid ON public.specimens USING btree (uuid);
2548
2549
2550 --
2551 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -
2552 --
2553
2554 CREATE INDEX index_traits_on_name ON public.traits USING btree (name);
2555
2556
2557 --
2558 -- Name: index_traits_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2559 --
2560
2561 CREATE INDEX index_traits_on_owner_uuid ON public.traits USING btree (owner_uuid);
2562
2563
2564 --
2565 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -
2566 --
2567
2568 CREATE UNIQUE INDEX index_traits_on_uuid ON public.traits USING btree (uuid);
2569
2570
2571 --
2572 -- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: -
2573 --
2574
2575 CREATE INDEX index_users_on_created_at ON public.users USING btree (created_at);
2576
2577
2578 --
2579 -- Name: index_users_on_modified_at; Type: INDEX; Schema: public; Owner: -
2580 --
2581
2582 CREATE INDEX index_users_on_modified_at ON public.users USING btree (modified_at);
2583
2584
2585 --
2586 -- Name: index_users_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2587 --
2588
2589 CREATE INDEX index_users_on_modified_at_uuid ON public.users USING btree (modified_at DESC, uuid);
2590
2591
2592 --
2593 -- Name: index_users_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2594 --
2595
2596 CREATE INDEX index_users_on_owner_uuid ON public.users USING btree (owner_uuid);
2597
2598
2599 --
2600 -- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: -
2601 --
2602
2603 CREATE UNIQUE INDEX index_users_on_username ON public.users USING btree (username);
2604
2605
2606 --
2607 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -
2608 --
2609
2610 CREATE UNIQUE INDEX index_users_on_uuid ON public.users USING btree (uuid);
2611
2612
2613 --
2614 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -
2615 --
2616
2617 CREATE INDEX index_virtual_machines_on_hostname ON public.virtual_machines USING btree (hostname);
2618
2619
2620 --
2621 -- Name: index_virtual_machines_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2622 --
2623
2624 CREATE INDEX index_virtual_machines_on_modified_at_uuid ON public.virtual_machines USING btree (modified_at DESC, uuid);
2625
2626
2627 --
2628 -- Name: index_virtual_machines_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2629 --
2630
2631 CREATE INDEX index_virtual_machines_on_owner_uuid ON public.virtual_machines USING btree (owner_uuid);
2632
2633
2634 --
2635 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -
2636 --
2637
2638 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON public.virtual_machines USING btree (uuid);
2639
2640
2641 --
2642 -- Name: index_workflows_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2643 --
2644
2645 CREATE INDEX index_workflows_on_modified_at_uuid ON public.workflows USING btree (modified_at DESC, uuid);
2646
2647
2648 --
2649 -- Name: index_workflows_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2650 --
2651
2652 CREATE INDEX index_workflows_on_owner_uuid ON public.workflows USING btree (owner_uuid);
2653
2654
2655 --
2656 -- Name: index_workflows_on_uuid; Type: INDEX; Schema: public; Owner: -
2657 --
2658
2659 CREATE UNIQUE INDEX index_workflows_on_uuid ON public.workflows USING btree (uuid);
2660
2661
2662 --
2663 -- Name: job_tasks_search_index; Type: INDEX; Schema: public; Owner: -
2664 --
2665
2666 CREATE INDEX job_tasks_search_index ON public.job_tasks USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, job_uuid, created_by_job_task_uuid);
2667
2668
2669 --
2670 -- Name: jobs_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2671 --
2672
2673 CREATE INDEX jobs_full_text_search_idx ON public.jobs USING gin (to_tsvector('english'::regconfig, substr((((((((((((((((((((((((((((((((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(submit_id, ''::character varying))::text) || ' '::text) || (COALESCE(script, ''::character varying))::text) || ' '::text) || (COALESCE(script_version, ''::character varying))::text) || ' '::text) || COALESCE(script_parameters, ''::text)) || ' '::text) || (COALESCE(cancelled_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(cancelled_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(output, ''::character varying))::text) || ' '::text) || (COALESCE(is_locked_by_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(log, ''::character varying))::text) || ' '::text) || COALESCE(tasks_summary, ''::text)) || ' '::text) || COALESCE(runtime_constraints, ''::text)) || ' '::text) || (COALESCE(repository, ''::character varying))::text) || ' '::text) || (COALESCE(supplied_script_version, ''::character varying))::text) || ' '::text) || (COALESCE(docker_image_locator, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || (COALESCE(state, ''::character varying))::text) || ' '::text) || (COALESCE(arvados_sdk_version, ''::character varying))::text) || ' '::text) || COALESCE(components, ''::text)), 0, 1000000)));
2674
2675
2676 --
2677 -- Name: jobs_search_index; Type: INDEX; Schema: public; Owner: -
2678 --
2679
2680 CREATE INDEX jobs_search_index ON public.jobs USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, submit_id, script, script_version, cancelled_by_client_uuid, cancelled_by_user_uuid, output, is_locked_by_uuid, log, repository, supplied_script_version, docker_image_locator, state, arvados_sdk_version);
2681
2682
2683 --
2684 -- Name: keep_disks_search_index; Type: INDEX; Schema: public; Owner: -
2685 --
2686
2687 CREATE INDEX keep_disks_search_index ON public.keep_disks USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, ping_secret, node_uuid, filesystem_uuid, keep_service_uuid);
2688
2689
2690 --
2691 -- Name: keep_services_search_index; Type: INDEX; Schema: public; Owner: -
2692 --
2693
2694 CREATE INDEX keep_services_search_index ON public.keep_services USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, service_host, service_type);
2695
2696
2697 --
2698 -- Name: links_index_on_properties; Type: INDEX; Schema: public; Owner: -
2699 --
2700
2701 CREATE INDEX links_index_on_properties ON public.links USING gin (properties);
2702
2703
2704 --
2705 -- Name: links_search_index; Type: INDEX; Schema: public; Owner: -
2706 --
2707
2708 CREATE INDEX links_search_index ON public.links USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, tail_uuid, link_class, name, head_uuid);
2709
2710
2711 --
2712 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -
2713 --
2714
2715 CREATE UNIQUE INDEX links_tail_name_unique_if_link_class_name ON public.links USING btree (tail_uuid, name) WHERE ((link_class)::text = 'name'::text);
2716
2717
2718 --
2719 -- Name: logs_search_index; Type: INDEX; Schema: public; Owner: -
2720 --
2721
2722 CREATE INDEX logs_search_index ON public.logs USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, object_uuid, event_type, object_owner_uuid);
2723
2724
2725 --
2726 -- Name: nodes_index_on_info; Type: INDEX; Schema: public; Owner: -
2727 --
2728
2729 CREATE INDEX nodes_index_on_info ON public.nodes USING gin (info);
2730
2731
2732 --
2733 -- Name: nodes_index_on_properties; Type: INDEX; Schema: public; Owner: -
2734 --
2735
2736 CREATE INDEX nodes_index_on_properties ON public.nodes USING gin (properties);
2737
2738
2739 --
2740 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -
2741 --
2742
2743 CREATE INDEX nodes_search_index ON public.nodes USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname, domain, ip_address, job_uuid);
2744
2745
2746 --
2747 -- Name: permission_target_trashed; Type: INDEX; Schema: public; Owner: -
2748 --
2749
2750 CREATE INDEX permission_target_trashed ON public.materialized_permission_view USING btree (trashed, target_uuid);
2751
2752
2753 --
2754 -- Name: permission_target_user_trashed_level; Type: INDEX; Schema: public; Owner: -
2755 --
2756
2757 CREATE INDEX permission_target_user_trashed_level ON public.materialized_permission_view USING btree (user_uuid, trashed, perm_level);
2758
2759
2760 --
2761 -- Name: pipeline_instances_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2762 --
2763
2764 CREATE INDEX pipeline_instances_full_text_search_idx ON public.pipeline_instances USING gin (to_tsvector('english'::regconfig, substr((((((((((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(pipeline_template_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || COALESCE(components, ''::text)) || ' '::text) || COALESCE(properties, ''::text)) || ' '::text) || (COALESCE(state, ''::character varying))::text) || ' '::text) || COALESCE(components_summary, ''::text)) || ' '::text) || (COALESCE(description, ''::character varying))::text), 0, 1000000)));
2765
2766
2767 --
2768 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -
2769 --
2770
2771 CREATE INDEX pipeline_instances_search_index ON public.pipeline_instances USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, pipeline_template_uuid, name, state);
2772
2773
2774 --
2775 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -
2776 --
2777
2778 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON public.pipeline_templates USING btree (owner_uuid, name);
2779
2780
2781 --
2782 -- Name: pipeline_templates_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2783 --
2784
2785 CREATE INDEX pipeline_templates_full_text_search_idx ON public.pipeline_templates USING gin (to_tsvector('english'::regconfig, substr((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || COALESCE(components, ''::text)) || ' '::text) || (COALESCE(description, ''::character varying))::text), 0, 1000000)));
2786
2787
2788 --
2789 -- Name: pipeline_templates_search_index; Type: INDEX; Schema: public; Owner: -
2790 --
2791
2792 CREATE INDEX pipeline_templates_search_index ON public.pipeline_templates USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2793
2794
2795 --
2796 -- Name: repositories_search_index; Type: INDEX; Schema: public; Owner: -
2797 --
2798
2799 CREATE INDEX repositories_search_index ON public.repositories USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2800
2801
2802 --
2803 -- Name: specimens_search_index; Type: INDEX; Schema: public; Owner: -
2804 --
2805
2806 CREATE INDEX specimens_search_index ON public.specimens USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, material);
2807
2808
2809 --
2810 -- Name: traits_search_index; Type: INDEX; Schema: public; Owner: -
2811 --
2812
2813 CREATE INDEX traits_search_index ON public.traits USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2814
2815
2816 --
2817 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
2818 --
2819
2820 CREATE UNIQUE INDEX unique_schema_migrations ON public.schema_migrations USING btree (version);
2821
2822
2823 --
2824 -- Name: users_search_index; Type: INDEX; Schema: public; Owner: -
2825 --
2826
2827 CREATE INDEX users_search_index ON public.users USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, email, first_name, last_name, identity_url, default_owner_uuid, username, redirect_to_user_uuid);
2828
2829
2830 --
2831 -- Name: virtual_machines_search_index; Type: INDEX; Schema: public; Owner: -
2832 --
2833
2834 CREATE INDEX virtual_machines_search_index ON public.virtual_machines USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname);
2835
2836
2837 --
2838 -- Name: workflows_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2839 --
2840
2841 CREATE INDEX workflows_full_text_search_idx ON public.workflows USING gin (to_tsvector('english'::regconfig, substr((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || COALESCE(description, ''::text)), 0, 1000000)));
2842
2843
2844 --
2845 -- Name: workflows_search_idx; Type: INDEX; Schema: public; Owner: -
2846 --
2847
2848 CREATE INDEX workflows_search_idx ON public.workflows USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2849
2850
2851 --
2852 -- PostgreSQL database dump complete
2853 --
2854
2855 SET search_path TO "$user", public;
2856
2857 INSERT INTO schema_migrations (version) VALUES ('20121016005009');
2858
2859 INSERT INTO schema_migrations (version) VALUES ('20130105203021');
2860
2861 INSERT INTO schema_migrations (version) VALUES ('20130105224358');
2862
2863 INSERT INTO schema_migrations (version) VALUES ('20130105224618');
2864
2865 INSERT INTO schema_migrations (version) VALUES ('20130107181109');
2866
2867 INSERT INTO schema_migrations (version) VALUES ('20130107212832');
2868
2869 INSERT INTO schema_migrations (version) VALUES ('20130109175700');
2870
2871 INSERT INTO schema_migrations (version) VALUES ('20130109220548');
2872
2873 INSERT INTO schema_migrations (version) VALUES ('20130113214204');
2874
2875 INSERT INTO schema_migrations (version) VALUES ('20130116024233');
2876
2877 INSERT INTO schema_migrations (version) VALUES ('20130116215213');
2878
2879 INSERT INTO schema_migrations (version) VALUES ('20130118002239');
2880
2881 INSERT INTO schema_migrations (version) VALUES ('20130122020042');
2882
2883 INSERT INTO schema_migrations (version) VALUES ('20130122201442');
2884
2885 INSERT INTO schema_migrations (version) VALUES ('20130122221616');
2886
2887 INSERT INTO schema_migrations (version) VALUES ('20130123174514');
2888
2889 INSERT INTO schema_migrations (version) VALUES ('20130123180224');
2890
2891 INSERT INTO schema_migrations (version) VALUES ('20130123180228');
2892
2893 INSERT INTO schema_migrations (version) VALUES ('20130125220425');
2894
2895 INSERT INTO schema_migrations (version) VALUES ('20130128202518');
2896
2897 INSERT INTO schema_migrations (version) VALUES ('20130128231343');
2898
2899 INSERT INTO schema_migrations (version) VALUES ('20130130205749');
2900
2901 INSERT INTO schema_migrations (version) VALUES ('20130203104818');
2902
2903 INSERT INTO schema_migrations (version) VALUES ('20130203104824');
2904
2905 INSERT INTO schema_migrations (version) VALUES ('20130203115329');
2906
2907 INSERT INTO schema_migrations (version) VALUES ('20130207195855');
2908
2909 INSERT INTO schema_migrations (version) VALUES ('20130218181504');
2910
2911 INSERT INTO schema_migrations (version) VALUES ('20130226170000');
2912
2913 INSERT INTO schema_migrations (version) VALUES ('20130313175417');
2914
2915 INSERT INTO schema_migrations (version) VALUES ('20130315155820');
2916
2917 INSERT INTO schema_migrations (version) VALUES ('20130315183626');
2918
2919 INSERT INTO schema_migrations (version) VALUES ('20130315213205');
2920
2921 INSERT INTO schema_migrations (version) VALUES ('20130318002138');
2922
2923 INSERT INTO schema_migrations (version) VALUES ('20130319165853');
2924
2925 INSERT INTO schema_migrations (version) VALUES ('20130319180730');
2926
2927 INSERT INTO schema_migrations (version) VALUES ('20130319194637');
2928
2929 INSERT INTO schema_migrations (version) VALUES ('20130319201431');
2930
2931 INSERT INTO schema_migrations (version) VALUES ('20130319235957');
2932
2933 INSERT INTO schema_migrations (version) VALUES ('20130320000107');
2934
2935 INSERT INTO schema_migrations (version) VALUES ('20130326173804');
2936
2937 INSERT INTO schema_migrations (version) VALUES ('20130326182917');
2938
2939 INSERT INTO schema_migrations (version) VALUES ('20130415020241');
2940
2941 INSERT INTO schema_migrations (version) VALUES ('20130425024459');
2942
2943 INSERT INTO schema_migrations (version) VALUES ('20130425214427');
2944
2945 INSERT INTO schema_migrations (version) VALUES ('20130523060112');
2946
2947 INSERT INTO schema_migrations (version) VALUES ('20130523060213');
2948
2949 INSERT INTO schema_migrations (version) VALUES ('20130524042319');
2950
2951 INSERT INTO schema_migrations (version) VALUES ('20130528134100');
2952
2953 INSERT INTO schema_migrations (version) VALUES ('20130606183519');
2954
2955 INSERT INTO schema_migrations (version) VALUES ('20130608053730');
2956
2957 INSERT INTO schema_migrations (version) VALUES ('20130610202538');
2958
2959 INSERT INTO schema_migrations (version) VALUES ('20130611163736');
2960
2961 INSERT INTO schema_migrations (version) VALUES ('20130612042554');
2962
2963 INSERT INTO schema_migrations (version) VALUES ('20130617150007');
2964
2965 INSERT INTO schema_migrations (version) VALUES ('20130626002829');
2966
2967 INSERT INTO schema_migrations (version) VALUES ('20130626022810');
2968
2969 INSERT INTO schema_migrations (version) VALUES ('20130627154537');
2970
2971 INSERT INTO schema_migrations (version) VALUES ('20130627184333');
2972
2973 INSERT INTO schema_migrations (version) VALUES ('20130708163414');
2974
2975 INSERT INTO schema_migrations (version) VALUES ('20130708182912');
2976
2977 INSERT INTO schema_migrations (version) VALUES ('20130708185153');
2978
2979 INSERT INTO schema_migrations (version) VALUES ('20130724153034');
2980
2981 INSERT INTO schema_migrations (version) VALUES ('20131007180607');
2982
2983 INSERT INTO schema_migrations (version) VALUES ('20140117231056');
2984
2985 INSERT INTO schema_migrations (version) VALUES ('20140124222114');
2986
2987 INSERT INTO schema_migrations (version) VALUES ('20140129184311');
2988
2989 INSERT INTO schema_migrations (version) VALUES ('20140317135600');
2990
2991 INSERT INTO schema_migrations (version) VALUES ('20140319160547');
2992
2993 INSERT INTO schema_migrations (version) VALUES ('20140321191343');
2994
2995 INSERT INTO schema_migrations (version) VALUES ('20140324024606');
2996
2997 INSERT INTO schema_migrations (version) VALUES ('20140325175653');
2998
2999 INSERT INTO schema_migrations (version) VALUES ('20140402001908');
3000
3001 INSERT INTO schema_migrations (version) VALUES ('20140407184311');
3002
3003 INSERT INTO schema_migrations (version) VALUES ('20140421140924');
3004
3005 INSERT INTO schema_migrations (version) VALUES ('20140421151939');
3006
3007 INSERT INTO schema_migrations (version) VALUES ('20140421151940');
3008
3009 INSERT INTO schema_migrations (version) VALUES ('20140422011506');
3010
3011 INSERT INTO schema_migrations (version) VALUES ('20140423132913');
3012
3013 INSERT INTO schema_migrations (version) VALUES ('20140423133559');
3014
3015 INSERT INTO schema_migrations (version) VALUES ('20140501165548');
3016
3017 INSERT INTO schema_migrations (version) VALUES ('20140519205916');
3018
3019 INSERT INTO schema_migrations (version) VALUES ('20140527152921');
3020
3021 INSERT INTO schema_migrations (version) VALUES ('20140530200539');
3022
3023 INSERT INTO schema_migrations (version) VALUES ('20140601022548');
3024
3025 INSERT INTO schema_migrations (version) VALUES ('20140602143352');
3026
3027 INSERT INTO schema_migrations (version) VALUES ('20140607150616');
3028
3029 INSERT INTO schema_migrations (version) VALUES ('20140611173003');
3030
3031 INSERT INTO schema_migrations (version) VALUES ('20140627210837');
3032
3033 INSERT INTO schema_migrations (version) VALUES ('20140709172343');
3034
3035 INSERT INTO schema_migrations (version) VALUES ('20140714184006');
3036
3037 INSERT INTO schema_migrations (version) VALUES ('20140811184643');
3038
3039 INSERT INTO schema_migrations (version) VALUES ('20140817035914');
3040
3041 INSERT INTO schema_migrations (version) VALUES ('20140818125735');
3042
3043 INSERT INTO schema_migrations (version) VALUES ('20140826180337');
3044
3045 INSERT INTO schema_migrations (version) VALUES ('20140828141043');
3046
3047 INSERT INTO schema_migrations (version) VALUES ('20140909183946');
3048
3049 INSERT INTO schema_migrations (version) VALUES ('20140911221252');
3050
3051 INSERT INTO schema_migrations (version) VALUES ('20140918141529');
3052
3053 INSERT INTO schema_migrations (version) VALUES ('20140918153541');
3054
3055 INSERT INTO schema_migrations (version) VALUES ('20140918153705');
3056
3057 INSERT INTO schema_migrations (version) VALUES ('20140924091559');
3058
3059 INSERT INTO schema_migrations (version) VALUES ('20141111133038');
3060
3061 INSERT INTO schema_migrations (version) VALUES ('20141208164553');
3062
3063 INSERT INTO schema_migrations (version) VALUES ('20141208174553');
3064
3065 INSERT INTO schema_migrations (version) VALUES ('20141208174653');
3066
3067 INSERT INTO schema_migrations (version) VALUES ('20141208185217');
3068
3069 INSERT INTO schema_migrations (version) VALUES ('20150122175935');
3070
3071 INSERT INTO schema_migrations (version) VALUES ('20150123142953');
3072
3073 INSERT INTO schema_migrations (version) VALUES ('20150203180223');
3074
3075 INSERT INTO schema_migrations (version) VALUES ('20150206210804');
3076
3077 INSERT INTO schema_migrations (version) VALUES ('20150206230342');
3078
3079 INSERT INTO schema_migrations (version) VALUES ('20150216193428');
3080
3081 INSERT INTO schema_migrations (version) VALUES ('20150303210106');
3082
3083 INSERT INTO schema_migrations (version) VALUES ('20150312151136');
3084
3085 INSERT INTO schema_migrations (version) VALUES ('20150317132720');
3086
3087 INSERT INTO schema_migrations (version) VALUES ('20150324152204');
3088
3089 INSERT INTO schema_migrations (version) VALUES ('20150423145759');
3090
3091 INSERT INTO schema_migrations (version) VALUES ('20150512193020');
3092
3093 INSERT INTO schema_migrations (version) VALUES ('20150526180251');
3094
3095 INSERT INTO schema_migrations (version) VALUES ('20151202151426');
3096
3097 INSERT INTO schema_migrations (version) VALUES ('20151215134304');
3098
3099 INSERT INTO schema_migrations (version) VALUES ('20151229214707');
3100
3101 INSERT INTO schema_migrations (version) VALUES ('20160208210629');
3102
3103 INSERT INTO schema_migrations (version) VALUES ('20160209155729');
3104
3105 INSERT INTO schema_migrations (version) VALUES ('20160324144017');
3106
3107 INSERT INTO schema_migrations (version) VALUES ('20160506175108');
3108
3109 INSERT INTO schema_migrations (version) VALUES ('20160509143250');
3110
3111 INSERT INTO schema_migrations (version) VALUES ('20160808151559');
3112
3113 INSERT INTO schema_migrations (version) VALUES ('20160819195557');
3114
3115 INSERT INTO schema_migrations (version) VALUES ('20160819195725');
3116
3117 INSERT INTO schema_migrations (version) VALUES ('20160901210110');
3118
3119 INSERT INTO schema_migrations (version) VALUES ('20160909181442');
3120
3121 INSERT INTO schema_migrations (version) VALUES ('20160926194129');
3122
3123 INSERT INTO schema_migrations (version) VALUES ('20161019171346');
3124
3125 INSERT INTO schema_migrations (version) VALUES ('20161111143147');
3126
3127 INSERT INTO schema_migrations (version) VALUES ('20161115171221');
3128
3129 INSERT INTO schema_migrations (version) VALUES ('20161115174218');
3130
3131 INSERT INTO schema_migrations (version) VALUES ('20161213172944');
3132
3133 INSERT INTO schema_migrations (version) VALUES ('20161222153434');
3134
3135 INSERT INTO schema_migrations (version) VALUES ('20161223090712');
3136
3137 INSERT INTO schema_migrations (version) VALUES ('20170102153111');
3138
3139 INSERT INTO schema_migrations (version) VALUES ('20170105160301');
3140
3141 INSERT INTO schema_migrations (version) VALUES ('20170105160302');
3142
3143 INSERT INTO schema_migrations (version) VALUES ('20170216170823');
3144
3145 INSERT INTO schema_migrations (version) VALUES ('20170301225558');
3146
3147 INSERT INTO schema_migrations (version) VALUES ('20170319063406');
3148
3149 INSERT INTO schema_migrations (version) VALUES ('20170328215436');
3150
3151 INSERT INTO schema_migrations (version) VALUES ('20170330012505');
3152
3153 INSERT INTO schema_migrations (version) VALUES ('20170419173031');
3154
3155 INSERT INTO schema_migrations (version) VALUES ('20170419173712');
3156
3157 INSERT INTO schema_migrations (version) VALUES ('20170419175801');
3158
3159 INSERT INTO schema_migrations (version) VALUES ('20170628185847');
3160
3161 INSERT INTO schema_migrations (version) VALUES ('20170704160233');
3162
3163 INSERT INTO schema_migrations (version) VALUES ('20170706141334');
3164
3165 INSERT INTO schema_migrations (version) VALUES ('20170824202826');
3166
3167 INSERT INTO schema_migrations (version) VALUES ('20170906224040');
3168
3169 INSERT INTO schema_migrations (version) VALUES ('20171027183824');
3170
3171 INSERT INTO schema_migrations (version) VALUES ('20171208203841');
3172
3173 INSERT INTO schema_migrations (version) VALUES ('20171212153352');
3174
3175 INSERT INTO schema_migrations (version) VALUES ('20180216203422');
3176
3177 INSERT INTO schema_migrations (version) VALUES ('20180228220311');
3178
3179 INSERT INTO schema_migrations (version) VALUES ('20180313180114');
3180
3181 INSERT INTO schema_migrations (version) VALUES ('20180501182859');
3182
3183 INSERT INTO schema_migrations (version) VALUES ('20180514135529');
3184
3185 INSERT INTO schema_migrations (version) VALUES ('20180607175050');
3186
3187 INSERT INTO schema_migrations (version) VALUES ('20180608123145');
3188
3189 INSERT INTO schema_migrations (version) VALUES ('20180806133039');
3190
3191 INSERT INTO schema_migrations (version) VALUES ('20180820130357');
3192
3193 INSERT INTO schema_migrations (version) VALUES ('20180820132617');
3194
3195 INSERT INTO schema_migrations (version) VALUES ('20180820135808');
3196
3197 INSERT INTO schema_migrations (version) VALUES ('20180824152014');
3198
3199 INSERT INTO schema_migrations (version) VALUES ('20180824155207');
3200
3201 INSERT INTO schema_migrations (version) VALUES ('20180904110712');
3202
3203 INSERT INTO schema_migrations (version) VALUES ('20180913175443');
3204
3205 INSERT INTO schema_migrations (version) VALUES ('20180915155335');
3206
3207 INSERT INTO schema_migrations (version) VALUES ('20180917200000');
3208
3209 INSERT INTO schema_migrations (version) VALUES ('20180917205609');
3210
3211 INSERT INTO schema_migrations (version) VALUES ('20180919001158');
3212
3213 INSERT INTO schema_migrations (version) VALUES ('20181001175023');
3214
3215 INSERT INTO schema_migrations (version) VALUES ('20181004131141');
3216
3217 INSERT INTO schema_migrations (version) VALUES ('20181005192222');
3218
3219 INSERT INTO schema_migrations (version) VALUES ('20181011184200');
3220
3221 INSERT INTO schema_migrations (version) VALUES ('20181213183234');
3222
3223 INSERT INTO schema_migrations (version) VALUES ('20190214214814');
3224
3225 INSERT INTO schema_migrations (version) VALUES ('20190322174136');
3226