1 -- Copyright (C) The Arvados Authors. All rights reserved.
3 -- SPDX-License-Identifier: AGPL-3.0
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;
13 -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
16 CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
20 -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
23 -- COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
26 SET default_tablespace = '';
28 SET default_with_oids = false;
31 -- Name: api_client_authorizations; Type: TABLE; Schema: public; Owner: -
34 CREATE TABLE public.api_client_authorizations (
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
52 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
55 CREATE SEQUENCE public.api_client_authorizations_id_seq
64 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
67 ALTER SEQUENCE public.api_client_authorizations_id_seq OWNED BY public.api_client_authorizations.id;
71 -- Name: api_clients; Type: TABLE; Schema: public; Owner: -
74 CREATE TABLE public.api_clients (
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
90 -- Name: api_clients_id_seq; Type: SEQUENCE; Schema: public; Owner: -
93 CREATE SEQUENCE public.api_clients_id_seq
102 -- Name: api_clients_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
105 ALTER SEQUENCE public.api_clients_id_seq OWNED BY public.api_clients.id;
109 -- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: -
112 CREATE TABLE public.ar_internal_metadata (
113 key character varying NOT NULL,
114 value character varying,
115 created_at timestamp without time zone NOT NULL,
116 updated_at timestamp without time zone NOT NULL
121 -- Name: authorized_keys; Type: TABLE; Schema: public; Owner: -
124 CREATE TABLE public.authorized_keys (
126 uuid character varying(255) NOT NULL,
127 owner_uuid character varying(255) NOT NULL,
128 modified_by_client_uuid character varying(255),
129 modified_by_user_uuid character varying(255),
130 modified_at timestamp without time zone,
131 name character varying(255),
132 key_type character varying(255),
133 authorized_user_uuid character varying(255),
135 expires_at timestamp without time zone,
136 created_at timestamp without time zone NOT NULL,
137 updated_at timestamp without time zone NOT NULL
142 -- Name: authorized_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: -
145 CREATE SEQUENCE public.authorized_keys_id_seq
154 -- Name: authorized_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
157 ALTER SEQUENCE public.authorized_keys_id_seq OWNED BY public.authorized_keys.id;
161 -- Name: collections; Type: TABLE; Schema: public; Owner: -
164 CREATE TABLE public.collections (
166 owner_uuid character varying(255),
167 created_at timestamp without time zone NOT NULL,
168 modified_by_client_uuid character varying(255),
169 modified_by_user_uuid character varying(255),
170 modified_at timestamp without time zone,
171 portable_data_hash character varying(255),
172 replication_desired integer,
173 replication_confirmed_at timestamp without time zone,
174 replication_confirmed integer,
175 updated_at timestamp without time zone NOT NULL,
176 uuid character varying(255),
178 name character varying(255),
179 description character varying(524288),
181 delete_at timestamp without time zone,
183 trash_at timestamp without time zone,
184 is_trashed boolean DEFAULT false NOT NULL,
185 storage_classes_desired jsonb DEFAULT '["default"]'::jsonb,
186 storage_classes_confirmed jsonb DEFAULT '[]'::jsonb,
187 storage_classes_confirmed_at timestamp without time zone,
188 current_version_uuid character varying,
189 version integer DEFAULT 1 NOT NULL,
190 preserve_version boolean DEFAULT false,
191 file_count integer DEFAULT 0 NOT NULL,
192 file_size_total bigint DEFAULT 0 NOT NULL
197 -- Name: collections_id_seq; Type: SEQUENCE; Schema: public; Owner: -
200 CREATE SEQUENCE public.collections_id_seq
209 -- Name: collections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
212 ALTER SEQUENCE public.collections_id_seq OWNED BY public.collections.id;
216 -- Name: commit_ancestors; Type: TABLE; Schema: public; Owner: -
219 CREATE TABLE public.commit_ancestors (
221 repository_name character varying(255),
222 descendant character varying(255) NOT NULL,
223 ancestor character varying(255) NOT NULL,
224 "is" boolean DEFAULT false NOT NULL,
225 created_at timestamp without time zone NOT NULL,
226 updated_at timestamp without time zone NOT NULL
231 -- Name: commit_ancestors_id_seq; Type: SEQUENCE; Schema: public; Owner: -
234 CREATE SEQUENCE public.commit_ancestors_id_seq
243 -- Name: commit_ancestors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
246 ALTER SEQUENCE public.commit_ancestors_id_seq OWNED BY public.commit_ancestors.id;
250 -- Name: commits; Type: TABLE; Schema: public; Owner: -
253 CREATE TABLE public.commits (
255 repository_name character varying(255),
256 sha1 character varying(255),
257 message character varying(255),
258 created_at timestamp without time zone NOT NULL,
259 updated_at timestamp without time zone NOT NULL
264 -- Name: commits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
267 CREATE SEQUENCE public.commits_id_seq
276 -- Name: commits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
279 ALTER SEQUENCE public.commits_id_seq OWNED BY public.commits.id;
283 -- Name: container_requests; Type: TABLE; Schema: public; Owner: -
286 CREATE TABLE public.container_requests (
288 uuid character varying(255),
289 owner_uuid character varying(255),
290 created_at timestamp without time zone NOT NULL,
291 modified_at timestamp without time zone,
292 modified_by_client_uuid character varying(255),
293 modified_by_user_uuid character varying(255),
294 name character varying(255),
297 state character varying(255),
298 requesting_container_uuid character varying(255),
299 container_uuid character varying(255),
300 container_count_max integer,
302 runtime_constraints text,
303 container_image character varying(255),
305 cwd character varying(255),
307 output_path character varying(255),
309 expires_at timestamp without time zone,
311 updated_at timestamp without time zone NOT NULL,
312 container_count integer DEFAULT 0,
313 use_existing boolean DEFAULT true,
314 scheduling_parameters text,
315 output_uuid character varying(255),
316 log_uuid character varying(255),
317 output_name character varying(255) DEFAULT NULL::character varying,
318 output_ttl integer DEFAULT 0 NOT NULL,
319 secret_mounts jsonb DEFAULT '{}'::jsonb,
325 -- Name: container_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
328 CREATE SEQUENCE public.container_requests_id_seq
337 -- Name: container_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
340 ALTER SEQUENCE public.container_requests_id_seq OWNED BY public.container_requests.id;
344 -- Name: containers; Type: TABLE; Schema: public; Owner: -
347 CREATE TABLE public.containers (
349 uuid character varying(255),
350 owner_uuid character varying(255),
351 created_at timestamp without time zone NOT NULL,
352 modified_at timestamp without time zone,
353 modified_by_client_uuid character varying(255),
354 modified_by_user_uuid character varying(255),
355 state character varying(255),
356 started_at timestamp without time zone,
357 finished_at timestamp without time zone,
358 log character varying(255),
360 cwd character varying(255),
362 output_path character varying(255),
364 runtime_constraints text,
365 output character varying(255),
366 container_image character varying(255),
367 progress double precision,
369 updated_at timestamp without time zone NOT NULL,
371 auth_uuid character varying(255),
372 locked_by_uuid character varying(255),
373 scheduling_parameters text,
374 secret_mounts jsonb DEFAULT '{}'::jsonb,
375 secret_mounts_md5 character varying DEFAULT '99914b932bd37a50b983c5e7c90ae93b'::character varying,
376 runtime_status jsonb DEFAULT '{}'::jsonb,
377 runtime_user_uuid text,
378 runtime_auth_scopes jsonb,
380 lock_count integer DEFAULT 0 NOT NULL
385 -- Name: containers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
388 CREATE SEQUENCE public.containers_id_seq
397 -- Name: containers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
400 ALTER SEQUENCE public.containers_id_seq OWNED BY public.containers.id;
404 -- Name: groups; Type: TABLE; Schema: public; Owner: -
407 CREATE TABLE public.groups (
409 uuid character varying(255),
410 owner_uuid character varying(255),
411 created_at timestamp without time zone NOT NULL,
412 modified_by_client_uuid character varying(255),
413 modified_by_user_uuid character varying(255),
414 modified_at timestamp without time zone,
415 name character varying(255) NOT NULL,
416 description character varying(524288),
417 updated_at timestamp without time zone NOT NULL,
418 group_class character varying(255),
419 trash_at timestamp without time zone,
420 is_trashed boolean DEFAULT false NOT NULL,
421 delete_at timestamp without time zone,
422 properties jsonb DEFAULT '{}'::jsonb
427 -- Name: groups_id_seq; Type: SEQUENCE; Schema: public; Owner: -
430 CREATE SEQUENCE public.groups_id_seq
439 -- Name: groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
442 ALTER SEQUENCE public.groups_id_seq OWNED BY public.groups.id;
446 -- Name: humans; Type: TABLE; Schema: public; Owner: -
449 CREATE TABLE public.humans (
451 uuid character varying(255) NOT NULL,
452 owner_uuid character varying(255) NOT NULL,
453 modified_by_client_uuid character varying(255),
454 modified_by_user_uuid character varying(255),
455 modified_at timestamp without time zone,
457 created_at timestamp without time zone NOT NULL,
458 updated_at timestamp without time zone NOT NULL
463 -- Name: humans_id_seq; Type: SEQUENCE; Schema: public; Owner: -
466 CREATE SEQUENCE public.humans_id_seq
475 -- Name: humans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
478 ALTER SEQUENCE public.humans_id_seq OWNED BY public.humans.id;
482 -- Name: job_tasks; Type: TABLE; Schema: public; Owner: -
485 CREATE TABLE public.job_tasks (
487 uuid character varying(255),
488 owner_uuid character varying(255),
489 modified_by_client_uuid character varying(255),
490 modified_by_user_uuid character varying(255),
491 modified_at timestamp without time zone,
492 job_uuid character varying(255),
496 progress double precision,
498 created_at timestamp without time zone NOT NULL,
499 updated_at timestamp without time zone NOT NULL,
500 created_by_job_task_uuid character varying(255),
502 started_at timestamp without time zone,
503 finished_at timestamp without time zone
508 -- Name: job_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
511 CREATE SEQUENCE public.job_tasks_id_seq
520 -- Name: job_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
523 ALTER SEQUENCE public.job_tasks_id_seq OWNED BY public.job_tasks.id;
527 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE; Schema: public; Owner: -
530 CREATE SEQUENCE public.job_tasks_qsequence_seq
539 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
542 ALTER SEQUENCE public.job_tasks_qsequence_seq OWNED BY public.job_tasks.qsequence;
546 -- Name: jobs; Type: TABLE; Schema: public; Owner: -
549 CREATE TABLE public.jobs (
551 uuid character varying(255),
552 owner_uuid character varying(255),
553 modified_by_client_uuid character varying(255),
554 modified_by_user_uuid character varying(255),
555 modified_at timestamp without time zone,
556 submit_id character varying(255),
557 script character varying(255),
558 script_version character varying(255),
559 script_parameters text,
560 cancelled_by_client_uuid character varying(255),
561 cancelled_by_user_uuid character varying(255),
562 cancelled_at timestamp without time zone,
563 started_at timestamp without time zone,
564 finished_at timestamp without time zone,
567 output character varying(255),
568 created_at timestamp without time zone NOT NULL,
569 updated_at timestamp without time zone NOT NULL,
570 is_locked_by_uuid character varying(255),
571 log character varying(255),
573 runtime_constraints text,
574 nondeterministic boolean,
575 repository character varying(255),
576 supplied_script_version character varying(255),
577 docker_image_locator character varying(255),
578 priority integer DEFAULT 0 NOT NULL,
579 description character varying(524288),
580 state character varying(255),
581 arvados_sdk_version character varying(255),
583 script_parameters_digest character varying(255)
588 -- Name: jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
591 CREATE SEQUENCE public.jobs_id_seq
600 -- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
603 ALTER SEQUENCE public.jobs_id_seq OWNED BY public.jobs.id;
607 -- Name: keep_disks; Type: TABLE; Schema: public; Owner: -
610 CREATE TABLE public.keep_disks (
612 uuid character varying(255) NOT NULL,
613 owner_uuid character varying(255) NOT NULL,
614 modified_by_client_uuid character varying(255),
615 modified_by_user_uuid character varying(255),
616 modified_at timestamp without time zone,
617 ping_secret character varying(255) NOT NULL,
618 node_uuid character varying(255),
619 filesystem_uuid character varying(255),
622 is_readable boolean DEFAULT true NOT NULL,
623 is_writable boolean DEFAULT true NOT NULL,
624 last_read_at timestamp without time zone,
625 last_write_at timestamp without time zone,
626 last_ping_at timestamp without time zone,
627 created_at timestamp without time zone NOT NULL,
628 updated_at timestamp without time zone NOT NULL,
629 keep_service_uuid character varying(255)
634 -- Name: keep_disks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
637 CREATE SEQUENCE public.keep_disks_id_seq
646 -- Name: keep_disks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
649 ALTER SEQUENCE public.keep_disks_id_seq OWNED BY public.keep_disks.id;
653 -- Name: keep_services; Type: TABLE; Schema: public; Owner: -
656 CREATE TABLE public.keep_services (
658 uuid character varying(255) NOT NULL,
659 owner_uuid character varying(255) NOT NULL,
660 modified_by_client_uuid character varying(255),
661 modified_by_user_uuid character varying(255),
662 modified_at timestamp without time zone,
663 service_host character varying(255),
664 service_port integer,
665 service_ssl_flag boolean,
666 service_type character varying(255),
667 created_at timestamp without time zone NOT NULL,
668 updated_at timestamp without time zone NOT NULL,
669 read_only boolean DEFAULT false NOT NULL
674 -- Name: keep_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
677 CREATE SEQUENCE public.keep_services_id_seq
686 -- Name: keep_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
689 ALTER SEQUENCE public.keep_services_id_seq OWNED BY public.keep_services.id;
693 -- Name: links; Type: TABLE; Schema: public; Owner: -
696 CREATE TABLE public.links (
698 uuid character varying(255),
699 owner_uuid character varying(255),
700 created_at timestamp without time zone NOT NULL,
701 modified_by_client_uuid character varying(255),
702 modified_by_user_uuid character varying(255),
703 modified_at timestamp without time zone,
704 tail_uuid character varying(255),
705 link_class character varying(255),
706 name character varying(255),
707 head_uuid character varying(255),
709 updated_at timestamp without time zone NOT NULL
714 -- Name: links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
717 CREATE SEQUENCE public.links_id_seq
726 -- Name: links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
729 ALTER SEQUENCE public.links_id_seq OWNED BY public.links.id;
733 -- Name: logs; Type: TABLE; Schema: public; Owner: -
736 CREATE TABLE public.logs (
738 uuid character varying(255),
739 owner_uuid character varying(255),
740 modified_by_client_uuid character varying(255),
741 modified_by_user_uuid character varying(255),
742 object_uuid character varying(255),
743 event_at timestamp without time zone,
744 event_type character varying(255),
747 created_at timestamp without time zone NOT NULL,
748 updated_at timestamp without time zone NOT NULL,
749 modified_at timestamp without time zone,
750 object_owner_uuid character varying(255)
755 -- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
758 CREATE SEQUENCE public.logs_id_seq
767 -- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
770 ALTER SEQUENCE public.logs_id_seq OWNED BY public.logs.id;
774 -- Name: users; Type: TABLE; Schema: public; Owner: -
777 CREATE TABLE public.users (
779 uuid character varying(255),
780 owner_uuid character varying(255) NOT NULL,
781 created_at timestamp without time zone NOT NULL,
782 modified_by_client_uuid character varying(255),
783 modified_by_user_uuid character varying(255),
784 modified_at timestamp without time zone,
785 email character varying(255),
786 first_name character varying(255),
787 last_name character varying(255),
788 identity_url character varying(255),
791 updated_at timestamp without time zone NOT NULL,
792 default_owner_uuid character varying(255),
793 is_active boolean DEFAULT false,
794 username character varying(255),
795 redirect_to_user_uuid character varying
800 -- Name: materialized_permission_view; Type: MATERIALIZED VIEW; Schema: public; Owner: -
803 CREATE MATERIALIZED VIEW public.materialized_permission_view AS
804 WITH RECURSIVE perm_value(name, val) AS (
805 VALUES ('can_read'::text,(1)::smallint), ('can_login'::text,1), ('can_write'::text,2), ('can_manage'::text,3)
806 ), perm_edges(tail_uuid, head_uuid, val, follow, trashed) AS (
807 SELECT links.tail_uuid,
810 ((pv.val = 3) OR (groups.uuid IS NOT NULL)) AS follow,
811 (0)::smallint AS trashed,
812 (0)::smallint AS followtrash
814 LEFT JOIN perm_value pv ON ((pv.name = (links.name)::text)))
815 LEFT JOIN public.groups ON (((pv.val < 3) AND ((groups.uuid)::text = (links.head_uuid)::text))))
816 WHERE ((links.link_class)::text = 'permission'::text)
818 SELECT groups.owner_uuid,
823 WHEN ((groups.trash_at IS NOT NULL) AND (groups.trash_at < clock_timestamp())) THEN 1
828 ), perm(val, follow, user_uuid, target_uuid, trashed) AS (
829 SELECT (3)::smallint AS val,
831 (users.uuid)::character varying(32) AS user_uuid,
832 (users.uuid)::character varying(32) AS target_uuid,
833 (0)::smallint AS trashed
836 SELECT (LEAST((perm_1.val)::integer, edges.val))::smallint AS val,
839 (edges.head_uuid)::character varying(32) AS target_uuid,
840 ((GREATEST((perm_1.trashed)::integer, edges.trashed) * edges.followtrash))::smallint AS trashed
842 JOIN perm_edges edges ON ((perm_1.follow AND ((edges.tail_uuid)::text = (perm_1.target_uuid)::text))))
844 SELECT perm.user_uuid,
846 max(perm.val) AS perm_level,
848 WHEN true THEN perm.target_uuid
849 ELSE NULL::character varying
850 END AS target_owner_uuid,
851 max(perm.trashed) AS trashed
853 GROUP BY perm.user_uuid, perm.target_uuid,
855 WHEN true THEN perm.target_uuid
856 ELSE NULL::character varying
862 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
865 CREATE TABLE public.nodes (
867 uuid character varying(255),
868 owner_uuid character varying(255),
869 created_at timestamp without time zone NOT NULL,
870 modified_by_client_uuid character varying(255),
871 modified_by_user_uuid character varying(255),
872 modified_at timestamp without time zone,
874 hostname character varying(255),
875 domain character varying(255),
876 ip_address character varying(255),
877 first_ping_at timestamp without time zone,
878 last_ping_at timestamp without time zone,
880 updated_at timestamp without time zone NOT NULL,
882 job_uuid character varying(255)
887 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
890 CREATE SEQUENCE public.nodes_id_seq
899 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
902 ALTER SEQUENCE public.nodes_id_seq OWNED BY public.nodes.id;
906 -- Name: permission_refresh_lock; Type: TABLE; Schema: public; Owner: -
909 CREATE TABLE public.permission_refresh_lock (
915 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE; Schema: public; Owner: -
918 CREATE SEQUENCE public.permission_refresh_lock_id_seq
927 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
930 ALTER SEQUENCE public.permission_refresh_lock_id_seq OWNED BY public.permission_refresh_lock.id;
934 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -
937 CREATE TABLE public.pipeline_instances (
939 uuid character varying(255),
940 owner_uuid character varying(255),
941 created_at timestamp without time zone NOT NULL,
942 modified_by_client_uuid character varying(255),
943 modified_by_user_uuid character varying(255),
944 modified_at timestamp without time zone,
945 pipeline_template_uuid character varying(255),
946 name character varying(255),
948 updated_at timestamp without time zone NOT NULL,
950 state character varying(255),
951 components_summary text,
952 started_at timestamp without time zone,
953 finished_at timestamp without time zone,
954 description character varying(524288)
959 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
962 CREATE SEQUENCE public.pipeline_instances_id_seq
971 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
974 ALTER SEQUENCE public.pipeline_instances_id_seq OWNED BY public.pipeline_instances.id;
978 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -
981 CREATE TABLE public.pipeline_templates (
983 uuid character varying(255),
984 owner_uuid character varying(255),
985 created_at timestamp without time zone NOT NULL,
986 modified_by_client_uuid character varying(255),
987 modified_by_user_uuid character varying(255),
988 modified_at timestamp without time zone,
989 name character varying(255),
991 updated_at timestamp without time zone NOT NULL,
992 description character varying(524288)
997 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1000 CREATE SEQUENCE public.pipeline_templates_id_seq
1009 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1012 ALTER SEQUENCE public.pipeline_templates_id_seq OWNED BY public.pipeline_templates.id;
1016 -- Name: repositories; Type: TABLE; Schema: public; Owner: -
1019 CREATE TABLE public.repositories (
1020 id integer NOT NULL,
1021 uuid character varying(255) NOT NULL,
1022 owner_uuid character varying(255) NOT NULL,
1023 modified_by_client_uuid character varying(255),
1024 modified_by_user_uuid character varying(255),
1025 modified_at timestamp without time zone,
1026 name character varying(255),
1027 created_at timestamp without time zone NOT NULL,
1028 updated_at timestamp without time zone NOT NULL
1033 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1036 CREATE SEQUENCE public.repositories_id_seq
1045 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1048 ALTER SEQUENCE public.repositories_id_seq OWNED BY public.repositories.id;
1052 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
1055 CREATE TABLE public.schema_migrations (
1056 version character varying(255) NOT NULL
1061 -- Name: specimens; Type: TABLE; Schema: public; Owner: -
1064 CREATE TABLE public.specimens (
1065 id integer NOT NULL,
1066 uuid character varying(255),
1067 owner_uuid character varying(255),
1068 created_at timestamp without time zone NOT NULL,
1069 modified_by_client_uuid character varying(255),
1070 modified_by_user_uuid character varying(255),
1071 modified_at timestamp without time zone,
1072 material character varying(255),
1073 updated_at timestamp without time zone NOT NULL,
1079 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1082 CREATE SEQUENCE public.specimens_id_seq
1091 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1094 ALTER SEQUENCE public.specimens_id_seq OWNED BY public.specimens.id;
1098 -- Name: traits; Type: TABLE; Schema: public; Owner: -
1101 CREATE TABLE public.traits (
1102 id integer NOT NULL,
1103 uuid character varying(255) NOT NULL,
1104 owner_uuid character varying(255) NOT NULL,
1105 modified_by_client_uuid character varying(255),
1106 modified_by_user_uuid character varying(255),
1107 modified_at timestamp without time zone,
1108 name character varying(255),
1110 created_at timestamp without time zone NOT NULL,
1111 updated_at timestamp without time zone NOT NULL
1116 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1119 CREATE SEQUENCE public.traits_id_seq
1128 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1131 ALTER SEQUENCE public.traits_id_seq OWNED BY public.traits.id;
1135 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1138 CREATE SEQUENCE public.users_id_seq
1147 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1150 ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
1154 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -
1157 CREATE TABLE public.virtual_machines (
1158 id integer NOT NULL,
1159 uuid character varying(255) NOT NULL,
1160 owner_uuid character varying(255) NOT NULL,
1161 modified_by_client_uuid character varying(255),
1162 modified_by_user_uuid character varying(255),
1163 modified_at timestamp without time zone,
1164 hostname character varying(255),
1165 created_at timestamp without time zone NOT NULL,
1166 updated_at timestamp without time zone NOT NULL
1171 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1174 CREATE SEQUENCE public.virtual_machines_id_seq
1183 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1186 ALTER SEQUENCE public.virtual_machines_id_seq OWNED BY public.virtual_machines.id;
1190 -- Name: workflows; Type: TABLE; Schema: public; Owner: -
1193 CREATE TABLE public.workflows (
1194 id integer NOT NULL,
1195 uuid character varying(255),
1196 owner_uuid character varying(255),
1197 created_at timestamp without time zone NOT NULL,
1198 modified_at timestamp without time zone,
1199 modified_by_client_uuid character varying(255),
1200 modified_by_user_uuid character varying(255),
1201 name character varying(255),
1204 updated_at timestamp without time zone NOT NULL
1209 -- Name: workflows_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1212 CREATE SEQUENCE public.workflows_id_seq
1221 -- Name: workflows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1224 ALTER SEQUENCE public.workflows_id_seq OWNED BY public.workflows.id;
1228 -- Name: api_client_authorizations id; Type: DEFAULT; Schema: public; Owner: -
1231 ALTER TABLE ONLY public.api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('public.api_client_authorizations_id_seq'::regclass);
1235 -- Name: api_clients id; Type: DEFAULT; Schema: public; Owner: -
1238 ALTER TABLE ONLY public.api_clients ALTER COLUMN id SET DEFAULT nextval('public.api_clients_id_seq'::regclass);
1242 -- Name: authorized_keys id; Type: DEFAULT; Schema: public; Owner: -
1245 ALTER TABLE ONLY public.authorized_keys ALTER COLUMN id SET DEFAULT nextval('public.authorized_keys_id_seq'::regclass);
1249 -- Name: collections id; Type: DEFAULT; Schema: public; Owner: -
1252 ALTER TABLE ONLY public.collections ALTER COLUMN id SET DEFAULT nextval('public.collections_id_seq'::regclass);
1256 -- Name: commit_ancestors id; Type: DEFAULT; Schema: public; Owner: -
1259 ALTER TABLE ONLY public.commit_ancestors ALTER COLUMN id SET DEFAULT nextval('public.commit_ancestors_id_seq'::regclass);
1263 -- Name: commits id; Type: DEFAULT; Schema: public; Owner: -
1266 ALTER TABLE ONLY public.commits ALTER COLUMN id SET DEFAULT nextval('public.commits_id_seq'::regclass);
1270 -- Name: container_requests id; Type: DEFAULT; Schema: public; Owner: -
1273 ALTER TABLE ONLY public.container_requests ALTER COLUMN id SET DEFAULT nextval('public.container_requests_id_seq'::regclass);
1277 -- Name: containers id; Type: DEFAULT; Schema: public; Owner: -
1280 ALTER TABLE ONLY public.containers ALTER COLUMN id SET DEFAULT nextval('public.containers_id_seq'::regclass);
1284 -- Name: groups id; Type: DEFAULT; Schema: public; Owner: -
1287 ALTER TABLE ONLY public.groups ALTER COLUMN id SET DEFAULT nextval('public.groups_id_seq'::regclass);
1291 -- Name: humans id; Type: DEFAULT; Schema: public; Owner: -
1294 ALTER TABLE ONLY public.humans ALTER COLUMN id SET DEFAULT nextval('public.humans_id_seq'::regclass);
1298 -- Name: job_tasks id; Type: DEFAULT; Schema: public; Owner: -
1301 ALTER TABLE ONLY public.job_tasks ALTER COLUMN id SET DEFAULT nextval('public.job_tasks_id_seq'::regclass);
1305 -- Name: jobs id; Type: DEFAULT; Schema: public; Owner: -
1308 ALTER TABLE ONLY public.jobs ALTER COLUMN id SET DEFAULT nextval('public.jobs_id_seq'::regclass);
1312 -- Name: keep_disks id; Type: DEFAULT; Schema: public; Owner: -
1315 ALTER TABLE ONLY public.keep_disks ALTER COLUMN id SET DEFAULT nextval('public.keep_disks_id_seq'::regclass);
1319 -- Name: keep_services id; Type: DEFAULT; Schema: public; Owner: -
1322 ALTER TABLE ONLY public.keep_services ALTER COLUMN id SET DEFAULT nextval('public.keep_services_id_seq'::regclass);
1326 -- Name: links id; Type: DEFAULT; Schema: public; Owner: -
1329 ALTER TABLE ONLY public.links ALTER COLUMN id SET DEFAULT nextval('public.links_id_seq'::regclass);
1333 -- Name: logs id; Type: DEFAULT; Schema: public; Owner: -
1336 ALTER TABLE ONLY public.logs ALTER COLUMN id SET DEFAULT nextval('public.logs_id_seq'::regclass);
1340 -- Name: nodes id; Type: DEFAULT; Schema: public; Owner: -
1343 ALTER TABLE ONLY public.nodes ALTER COLUMN id SET DEFAULT nextval('public.nodes_id_seq'::regclass);
1347 -- Name: permission_refresh_lock id; Type: DEFAULT; Schema: public; Owner: -
1350 ALTER TABLE ONLY public.permission_refresh_lock ALTER COLUMN id SET DEFAULT nextval('public.permission_refresh_lock_id_seq'::regclass);
1354 -- Name: pipeline_instances id; Type: DEFAULT; Schema: public; Owner: -
1357 ALTER TABLE ONLY public.pipeline_instances ALTER COLUMN id SET DEFAULT nextval('public.pipeline_instances_id_seq'::regclass);
1361 -- Name: pipeline_templates id; Type: DEFAULT; Schema: public; Owner: -
1364 ALTER TABLE ONLY public.pipeline_templates ALTER COLUMN id SET DEFAULT nextval('public.pipeline_templates_id_seq'::regclass);
1368 -- Name: repositories id; Type: DEFAULT; Schema: public; Owner: -
1371 ALTER TABLE ONLY public.repositories ALTER COLUMN id SET DEFAULT nextval('public.repositories_id_seq'::regclass);
1375 -- Name: specimens id; Type: DEFAULT; Schema: public; Owner: -
1378 ALTER TABLE ONLY public.specimens ALTER COLUMN id SET DEFAULT nextval('public.specimens_id_seq'::regclass);
1382 -- Name: traits id; Type: DEFAULT; Schema: public; Owner: -
1385 ALTER TABLE ONLY public.traits ALTER COLUMN id SET DEFAULT nextval('public.traits_id_seq'::regclass);
1389 -- Name: users id; Type: DEFAULT; Schema: public; Owner: -
1392 ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
1396 -- Name: virtual_machines id; Type: DEFAULT; Schema: public; Owner: -
1399 ALTER TABLE ONLY public.virtual_machines ALTER COLUMN id SET DEFAULT nextval('public.virtual_machines_id_seq'::regclass);
1403 -- Name: workflows id; Type: DEFAULT; Schema: public; Owner: -
1406 ALTER TABLE ONLY public.workflows ALTER COLUMN id SET DEFAULT nextval('public.workflows_id_seq'::regclass);
1410 -- Name: api_client_authorizations api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1413 ALTER TABLE ONLY public.api_client_authorizations
1414 ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1418 -- Name: api_clients api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1421 ALTER TABLE ONLY public.api_clients
1422 ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1426 -- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1429 ALTER TABLE ONLY public.ar_internal_metadata
1430 ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key);
1434 -- Name: authorized_keys authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1437 ALTER TABLE ONLY public.authorized_keys
1438 ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1442 -- Name: collections collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1445 ALTER TABLE ONLY public.collections
1446 ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1450 -- Name: commit_ancestors commit_ancestors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1453 ALTER TABLE ONLY public.commit_ancestors
1454 ADD CONSTRAINT commit_ancestors_pkey PRIMARY KEY (id);
1458 -- Name: commits commits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1461 ALTER TABLE ONLY public.commits
1462 ADD CONSTRAINT commits_pkey PRIMARY KEY (id);
1466 -- Name: container_requests container_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1469 ALTER TABLE ONLY public.container_requests
1470 ADD CONSTRAINT container_requests_pkey PRIMARY KEY (id);
1474 -- Name: containers containers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1477 ALTER TABLE ONLY public.containers
1478 ADD CONSTRAINT containers_pkey PRIMARY KEY (id);
1482 -- Name: groups groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1485 ALTER TABLE ONLY public.groups
1486 ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1490 -- Name: humans humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1493 ALTER TABLE ONLY public.humans
1494 ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1498 -- Name: job_tasks job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1501 ALTER TABLE ONLY public.job_tasks
1502 ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1506 -- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1509 ALTER TABLE ONLY public.jobs
1510 ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1514 -- Name: keep_disks keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1517 ALTER TABLE ONLY public.keep_disks
1518 ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1522 -- Name: keep_services keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1525 ALTER TABLE ONLY public.keep_services
1526 ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1530 -- Name: links links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1533 ALTER TABLE ONLY public.links
1534 ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1538 -- Name: logs logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1541 ALTER TABLE ONLY public.logs
1542 ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1546 -- Name: nodes nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1549 ALTER TABLE ONLY public.nodes
1550 ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1554 -- Name: permission_refresh_lock permission_refresh_lock_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1557 ALTER TABLE ONLY public.permission_refresh_lock
1558 ADD CONSTRAINT permission_refresh_lock_pkey PRIMARY KEY (id);
1562 -- Name: pipeline_instances pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1565 ALTER TABLE ONLY public.pipeline_instances
1566 ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1570 -- Name: pipeline_templates pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1573 ALTER TABLE ONLY public.pipeline_templates
1574 ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1578 -- Name: repositories repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1581 ALTER TABLE ONLY public.repositories
1582 ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1586 -- Name: specimens specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1589 ALTER TABLE ONLY public.specimens
1590 ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1594 -- Name: traits traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1597 ALTER TABLE ONLY public.traits
1598 ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1602 -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1605 ALTER TABLE ONLY public.users
1606 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1610 -- Name: virtual_machines virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1613 ALTER TABLE ONLY public.virtual_machines
1614 ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1618 -- Name: workflows workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1621 ALTER TABLE ONLY public.workflows
1622 ADD CONSTRAINT workflows_pkey PRIMARY KEY (id);
1626 -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -
1629 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);
1633 -- Name: api_clients_search_index; Type: INDEX; Schema: public; Owner: -
1636 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);
1640 -- Name: authorized_keys_search_index; Type: INDEX; Schema: public; Owner: -
1643 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);
1647 -- Name: collection_index_on_properties; Type: INDEX; Schema: public; Owner: -
1650 CREATE INDEX collection_index_on_properties ON public.collections USING gin (properties);
1654 -- Name: collections_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1657 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)));
1661 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -
1664 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);
1668 -- Name: container_requests_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1671 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)));
1675 -- Name: container_requests_index_on_properties; Type: INDEX; Schema: public; Owner: -
1678 CREATE INDEX container_requests_index_on_properties ON public.container_requests USING gin (properties);
1682 -- Name: container_requests_search_index; Type: INDEX; Schema: public; Owner: -
1685 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);
1689 -- Name: containers_search_index; Type: INDEX; Schema: public; Owner: -
1692 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);
1696 -- Name: group_index_on_properties; Type: INDEX; Schema: public; Owner: -
1699 CREATE INDEX group_index_on_properties ON public.groups USING gin (properties);
1703 -- Name: groups_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1706 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)));
1710 -- Name: groups_search_index; Type: INDEX; Schema: public; Owner: -
1713 CREATE INDEX groups_search_index ON public.groups USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, group_class);
1717 -- Name: humans_search_index; Type: INDEX; Schema: public; Owner: -
1720 CREATE INDEX humans_search_index ON public.humans USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid);
1724 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -
1727 CREATE INDEX index_api_client_authorizations_on_api_client_id ON public.api_client_authorizations USING btree (api_client_id);
1731 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -
1734 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON public.api_client_authorizations USING btree (api_token);
1738 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -
1741 CREATE INDEX index_api_client_authorizations_on_expires_at ON public.api_client_authorizations USING btree (expires_at);
1745 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -
1748 CREATE INDEX index_api_client_authorizations_on_user_id ON public.api_client_authorizations USING btree (user_id);
1752 -- Name: index_api_client_authorizations_on_uuid; Type: INDEX; Schema: public; Owner: -
1755 CREATE UNIQUE INDEX index_api_client_authorizations_on_uuid ON public.api_client_authorizations USING btree (uuid);
1759 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -
1762 CREATE INDEX index_api_clients_on_created_at ON public.api_clients USING btree (created_at);
1766 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -
1769 CREATE INDEX index_api_clients_on_modified_at ON public.api_clients USING btree (modified_at);
1773 -- Name: index_api_clients_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1776 CREATE INDEX index_api_clients_on_owner_uuid ON public.api_clients USING btree (owner_uuid);
1780 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -
1783 CREATE UNIQUE INDEX index_api_clients_on_uuid ON public.api_clients USING btree (uuid);
1787 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -
1790 CREATE INDEX index_authkeys_on_user_and_expires_at ON public.authorized_keys USING btree (authorized_user_uuid, expires_at);
1794 -- Name: index_authorized_keys_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1797 CREATE INDEX index_authorized_keys_on_owner_uuid ON public.authorized_keys USING btree (owner_uuid);
1801 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -
1804 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON public.authorized_keys USING btree (uuid);
1808 -- Name: index_collections_on_created_at; Type: INDEX; Schema: public; Owner: -
1811 CREATE INDEX index_collections_on_created_at ON public.collections USING btree (created_at);
1815 -- Name: index_collections_on_current_version_uuid_and_version; Type: INDEX; Schema: public; Owner: -
1818 CREATE UNIQUE INDEX index_collections_on_current_version_uuid_and_version ON public.collections USING btree (current_version_uuid, version);
1822 -- Name: index_collections_on_delete_at; Type: INDEX; Schema: public; Owner: -
1825 CREATE INDEX index_collections_on_delete_at ON public.collections USING btree (delete_at);
1829 -- Name: index_collections_on_is_trashed; Type: INDEX; Schema: public; Owner: -
1832 CREATE INDEX index_collections_on_is_trashed ON public.collections USING btree (is_trashed);
1836 -- Name: index_collections_on_modified_at; Type: INDEX; Schema: public; Owner: -
1839 CREATE INDEX index_collections_on_modified_at ON public.collections USING btree (modified_at);
1843 -- Name: index_collections_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1846 CREATE INDEX index_collections_on_modified_at_uuid ON public.collections USING btree (modified_at DESC, uuid);
1850 -- Name: index_collections_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1853 CREATE INDEX index_collections_on_owner_uuid ON public.collections USING btree (owner_uuid);
1857 -- Name: index_collections_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
1860 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));
1864 -- Name: index_collections_on_portable_data_hash_and_trash_at; Type: INDEX; Schema: public; Owner: -
1867 CREATE INDEX index_collections_on_portable_data_hash_and_trash_at ON public.collections USING btree (portable_data_hash, trash_at);
1871 -- Name: index_collections_on_trash_at; Type: INDEX; Schema: public; Owner: -
1874 CREATE INDEX index_collections_on_trash_at ON public.collections USING btree (trash_at);
1878 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -
1881 CREATE UNIQUE INDEX index_collections_on_uuid ON public.collections USING btree (uuid);
1885 -- Name: index_commit_ancestors_on_descendant_and_ancestor; Type: INDEX; Schema: public; Owner: -
1888 CREATE UNIQUE INDEX index_commit_ancestors_on_descendant_and_ancestor ON public.commit_ancestors USING btree (descendant, ancestor);
1892 -- Name: index_commits_on_repository_name_and_sha1; Type: INDEX; Schema: public; Owner: -
1895 CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON public.commits USING btree (repository_name, sha1);
1899 -- Name: index_container_requests_on_container_uuid; Type: INDEX; Schema: public; Owner: -
1902 CREATE INDEX index_container_requests_on_container_uuid ON public.container_requests USING btree (container_uuid);
1906 -- Name: index_container_requests_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1909 CREATE INDEX index_container_requests_on_modified_at_uuid ON public.container_requests USING btree (modified_at DESC, uuid);
1913 -- Name: index_container_requests_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1916 CREATE INDEX index_container_requests_on_owner_uuid ON public.container_requests USING btree (owner_uuid);
1920 -- Name: index_container_requests_on_requesting_container_uuid; Type: INDEX; Schema: public; Owner: -
1923 CREATE INDEX index_container_requests_on_requesting_container_uuid ON public.container_requests USING btree (requesting_container_uuid);
1927 -- Name: index_container_requests_on_uuid; Type: INDEX; Schema: public; Owner: -
1930 CREATE UNIQUE INDEX index_container_requests_on_uuid ON public.container_requests USING btree (uuid);
1934 -- Name: index_containers_on_auth_uuid; Type: INDEX; Schema: public; Owner: -
1937 CREATE INDEX index_containers_on_auth_uuid ON public.containers USING btree (auth_uuid);
1941 -- Name: index_containers_on_locked_by_uuid_and_priority; Type: INDEX; Schema: public; Owner: -
1944 CREATE INDEX index_containers_on_locked_by_uuid_and_priority ON public.containers USING btree (locked_by_uuid, priority);
1948 -- Name: index_containers_on_locked_by_uuid_and_uuid; Type: INDEX; Schema: public; Owner: -
1951 CREATE INDEX index_containers_on_locked_by_uuid_and_uuid ON public.containers USING btree (locked_by_uuid, uuid);
1955 -- Name: index_containers_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1958 CREATE INDEX index_containers_on_modified_at_uuid ON public.containers USING btree (modified_at DESC, uuid);
1962 -- Name: index_containers_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1965 CREATE INDEX index_containers_on_owner_uuid ON public.containers USING btree (owner_uuid);
1969 -- Name: index_containers_on_queued_state; Type: INDEX; Schema: public; Owner: -
1972 CREATE INDEX index_containers_on_queued_state ON public.containers USING btree (state, ((priority > 0)));
1976 -- Name: index_containers_on_reuse_columns; Type: INDEX; Schema: public; Owner: -
1979 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));
1983 -- Name: index_containers_on_runtime_status; Type: INDEX; Schema: public; Owner: -
1986 CREATE INDEX index_containers_on_runtime_status ON public.containers USING gin (runtime_status);
1990 -- Name: index_containers_on_secret_mounts_md5; Type: INDEX; Schema: public; Owner: -
1993 CREATE INDEX index_containers_on_secret_mounts_md5 ON public.containers USING btree (secret_mounts_md5);
1997 -- Name: index_containers_on_uuid; Type: INDEX; Schema: public; Owner: -
2000 CREATE UNIQUE INDEX index_containers_on_uuid ON public.containers USING btree (uuid);
2004 -- Name: index_groups_on_created_at; Type: INDEX; Schema: public; Owner: -
2007 CREATE INDEX index_groups_on_created_at ON public.groups USING btree (created_at);
2011 -- Name: index_groups_on_delete_at; Type: INDEX; Schema: public; Owner: -
2014 CREATE INDEX index_groups_on_delete_at ON public.groups USING btree (delete_at);
2018 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -
2021 CREATE INDEX index_groups_on_group_class ON public.groups USING btree (group_class);
2025 -- Name: index_groups_on_is_trashed; Type: INDEX; Schema: public; Owner: -
2028 CREATE INDEX index_groups_on_is_trashed ON public.groups USING btree (is_trashed);
2032 -- Name: index_groups_on_modified_at; Type: INDEX; Schema: public; Owner: -
2035 CREATE INDEX index_groups_on_modified_at ON public.groups USING btree (modified_at);
2039 -- Name: index_groups_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2042 CREATE INDEX index_groups_on_modified_at_uuid ON public.groups USING btree (modified_at DESC, uuid);
2046 -- Name: index_groups_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2049 CREATE INDEX index_groups_on_owner_uuid ON public.groups USING btree (owner_uuid);
2053 -- Name: index_groups_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
2056 CREATE UNIQUE INDEX index_groups_on_owner_uuid_and_name ON public.groups USING btree (owner_uuid, name) WHERE (is_trashed = false);
2060 -- Name: index_groups_on_trash_at; Type: INDEX; Schema: public; Owner: -
2063 CREATE INDEX index_groups_on_trash_at ON public.groups USING btree (trash_at);
2067 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -
2070 CREATE UNIQUE INDEX index_groups_on_uuid ON public.groups USING btree (uuid);
2074 -- Name: index_humans_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2077 CREATE INDEX index_humans_on_owner_uuid ON public.humans USING btree (owner_uuid);
2081 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -
2084 CREATE UNIQUE INDEX index_humans_on_uuid ON public.humans USING btree (uuid);
2088 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -
2091 CREATE INDEX index_job_tasks_on_created_at ON public.job_tasks USING btree (created_at);
2095 -- Name: index_job_tasks_on_created_by_job_task_uuid; Type: INDEX; Schema: public; Owner: -
2098 CREATE INDEX index_job_tasks_on_created_by_job_task_uuid ON public.job_tasks USING btree (created_by_job_task_uuid);
2102 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -
2105 CREATE INDEX index_job_tasks_on_job_uuid ON public.job_tasks USING btree (job_uuid);
2109 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -
2112 CREATE INDEX index_job_tasks_on_modified_at ON public.job_tasks USING btree (modified_at);
2116 -- Name: index_job_tasks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2119 CREATE INDEX index_job_tasks_on_owner_uuid ON public.job_tasks USING btree (owner_uuid);
2123 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -
2126 CREATE INDEX index_job_tasks_on_sequence ON public.job_tasks USING btree (sequence);
2130 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -
2133 CREATE INDEX index_job_tasks_on_success ON public.job_tasks USING btree (success);
2137 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -
2140 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON public.job_tasks USING btree (uuid);
2144 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -
2147 CREATE INDEX index_jobs_on_created_at ON public.jobs USING btree (created_at);
2151 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -
2154 CREATE INDEX index_jobs_on_finished_at ON public.jobs USING btree (finished_at);
2158 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2161 CREATE INDEX index_jobs_on_modified_at ON public.jobs USING btree (modified_at);
2165 -- Name: index_jobs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2168 CREATE INDEX index_jobs_on_modified_at_uuid ON public.jobs USING btree (modified_at DESC, uuid);
2172 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -
2175 CREATE INDEX index_jobs_on_output ON public.jobs USING btree (output);
2179 -- Name: index_jobs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2182 CREATE INDEX index_jobs_on_owner_uuid ON public.jobs USING btree (owner_uuid);
2186 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -
2189 CREATE INDEX index_jobs_on_script ON public.jobs USING btree (script);
2193 -- Name: index_jobs_on_script_parameters_digest; Type: INDEX; Schema: public; Owner: -
2196 CREATE INDEX index_jobs_on_script_parameters_digest ON public.jobs USING btree (script_parameters_digest);
2200 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -
2203 CREATE INDEX index_jobs_on_started_at ON public.jobs USING btree (started_at);
2207 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -
2210 CREATE UNIQUE INDEX index_jobs_on_submit_id ON public.jobs USING btree (submit_id);
2214 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -
2217 CREATE UNIQUE INDEX index_jobs_on_uuid ON public.jobs USING btree (uuid);
2221 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -
2224 CREATE INDEX index_keep_disks_on_filesystem_uuid ON public.keep_disks USING btree (filesystem_uuid);
2228 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -
2231 CREATE INDEX index_keep_disks_on_last_ping_at ON public.keep_disks USING btree (last_ping_at);
2235 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -
2238 CREATE INDEX index_keep_disks_on_node_uuid ON public.keep_disks USING btree (node_uuid);
2242 -- Name: index_keep_disks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2245 CREATE INDEX index_keep_disks_on_owner_uuid ON public.keep_disks USING btree (owner_uuid);
2249 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -
2252 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON public.keep_disks USING btree (uuid);
2256 -- Name: index_keep_services_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2259 CREATE INDEX index_keep_services_on_owner_uuid ON public.keep_services USING btree (owner_uuid);
2263 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -
2266 CREATE UNIQUE INDEX index_keep_services_on_uuid ON public.keep_services USING btree (uuid);
2270 -- Name: index_links_on_created_at; Type: INDEX; Schema: public; Owner: -
2273 CREATE INDEX index_links_on_created_at ON public.links USING btree (created_at);
2277 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -
2280 CREATE INDEX index_links_on_head_uuid ON public.links USING btree (head_uuid);
2284 -- Name: index_links_on_modified_at; Type: INDEX; Schema: public; Owner: -
2287 CREATE INDEX index_links_on_modified_at ON public.links USING btree (modified_at);
2291 -- Name: index_links_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2294 CREATE INDEX index_links_on_modified_at_uuid ON public.links USING btree (modified_at DESC, uuid);
2298 -- Name: index_links_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2301 CREATE INDEX index_links_on_owner_uuid ON public.links USING btree (owner_uuid);
2305 -- Name: index_links_on_substring_head_uuid; Type: INDEX; Schema: public; Owner: -
2308 CREATE INDEX index_links_on_substring_head_uuid ON public.links USING btree ("substring"((head_uuid)::text, 7, 5));
2312 -- Name: index_links_on_substring_tail_uuid; Type: INDEX; Schema: public; Owner: -
2315 CREATE INDEX index_links_on_substring_tail_uuid ON public.links USING btree ("substring"((tail_uuid)::text, 7, 5));
2319 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -
2322 CREATE INDEX index_links_on_tail_uuid ON public.links USING btree (tail_uuid);
2326 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -
2329 CREATE UNIQUE INDEX index_links_on_uuid ON public.links USING btree (uuid);
2333 -- Name: index_logs_on_created_at; Type: INDEX; Schema: public; Owner: -
2336 CREATE INDEX index_logs_on_created_at ON public.logs USING btree (created_at);
2340 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -
2343 CREATE INDEX index_logs_on_event_at ON public.logs USING btree (event_at);
2347 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -
2350 CREATE INDEX index_logs_on_event_type ON public.logs USING btree (event_type);
2354 -- Name: index_logs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2357 CREATE INDEX index_logs_on_modified_at ON public.logs USING btree (modified_at);
2361 -- Name: index_logs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2364 CREATE INDEX index_logs_on_modified_at_uuid ON public.logs USING btree (modified_at DESC, uuid);
2368 -- Name: index_logs_on_object_owner_uuid; Type: INDEX; Schema: public; Owner: -
2371 CREATE INDEX index_logs_on_object_owner_uuid ON public.logs USING btree (object_owner_uuid);
2375 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -
2378 CREATE INDEX index_logs_on_object_uuid ON public.logs USING btree (object_uuid);
2382 -- Name: index_logs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2385 CREATE INDEX index_logs_on_owner_uuid ON public.logs USING btree (owner_uuid);
2389 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -
2392 CREATE INDEX index_logs_on_summary ON public.logs USING btree (summary);
2396 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -
2399 CREATE UNIQUE INDEX index_logs_on_uuid ON public.logs USING btree (uuid);
2403 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -
2406 CREATE INDEX index_nodes_on_created_at ON public.nodes USING btree (created_at);
2410 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -
2413 CREATE INDEX index_nodes_on_hostname ON public.nodes USING btree (hostname);
2417 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -
2420 CREATE INDEX index_nodes_on_modified_at ON public.nodes USING btree (modified_at);
2424 -- Name: index_nodes_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2427 CREATE INDEX index_nodes_on_owner_uuid ON public.nodes USING btree (owner_uuid);
2431 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -
2434 CREATE UNIQUE INDEX index_nodes_on_slot_number ON public.nodes USING btree (slot_number);
2438 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -
2441 CREATE UNIQUE INDEX index_nodes_on_uuid ON public.nodes USING btree (uuid);
2445 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -
2448 CREATE INDEX index_pipeline_instances_on_created_at ON public.pipeline_instances USING btree (created_at);
2452 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -
2455 CREATE INDEX index_pipeline_instances_on_modified_at ON public.pipeline_instances USING btree (modified_at);
2459 -- Name: index_pipeline_instances_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2462 CREATE INDEX index_pipeline_instances_on_modified_at_uuid ON public.pipeline_instances USING btree (modified_at DESC, uuid);
2466 -- Name: index_pipeline_instances_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2469 CREATE INDEX index_pipeline_instances_on_owner_uuid ON public.pipeline_instances USING btree (owner_uuid);
2473 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -
2476 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON public.pipeline_instances USING btree (uuid);
2480 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -
2483 CREATE INDEX index_pipeline_templates_on_created_at ON public.pipeline_templates USING btree (created_at);
2487 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -
2490 CREATE INDEX index_pipeline_templates_on_modified_at ON public.pipeline_templates USING btree (modified_at);
2494 -- Name: index_pipeline_templates_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2497 CREATE INDEX index_pipeline_templates_on_modified_at_uuid ON public.pipeline_templates USING btree (modified_at DESC, uuid);
2501 -- Name: index_pipeline_templates_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2504 CREATE INDEX index_pipeline_templates_on_owner_uuid ON public.pipeline_templates USING btree (owner_uuid);
2508 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -
2511 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON public.pipeline_templates USING btree (uuid);
2515 -- Name: index_repositories_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2518 CREATE INDEX index_repositories_on_modified_at_uuid ON public.repositories USING btree (modified_at DESC, uuid);
2522 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -
2525 CREATE UNIQUE INDEX index_repositories_on_name ON public.repositories USING btree (name);
2529 -- Name: index_repositories_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2532 CREATE INDEX index_repositories_on_owner_uuid ON public.repositories USING btree (owner_uuid);
2536 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -
2539 CREATE UNIQUE INDEX index_repositories_on_uuid ON public.repositories USING btree (uuid);
2543 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -
2546 CREATE INDEX index_specimens_on_created_at ON public.specimens USING btree (created_at);
2550 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -
2553 CREATE INDEX index_specimens_on_modified_at ON public.specimens USING btree (modified_at);
2557 -- Name: index_specimens_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2560 CREATE INDEX index_specimens_on_owner_uuid ON public.specimens USING btree (owner_uuid);
2564 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -
2567 CREATE UNIQUE INDEX index_specimens_on_uuid ON public.specimens USING btree (uuid);
2571 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -
2574 CREATE INDEX index_traits_on_name ON public.traits USING btree (name);
2578 -- Name: index_traits_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2581 CREATE INDEX index_traits_on_owner_uuid ON public.traits USING btree (owner_uuid);
2585 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -
2588 CREATE UNIQUE INDEX index_traits_on_uuid ON public.traits USING btree (uuid);
2592 -- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: -
2595 CREATE INDEX index_users_on_created_at ON public.users USING btree (created_at);
2599 -- Name: index_users_on_modified_at; Type: INDEX; Schema: public; Owner: -
2602 CREATE INDEX index_users_on_modified_at ON public.users USING btree (modified_at);
2606 -- Name: index_users_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2609 CREATE INDEX index_users_on_modified_at_uuid ON public.users USING btree (modified_at DESC, uuid);
2613 -- Name: index_users_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2616 CREATE INDEX index_users_on_owner_uuid ON public.users USING btree (owner_uuid);
2620 -- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: -
2623 CREATE UNIQUE INDEX index_users_on_username ON public.users USING btree (username);
2627 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -
2630 CREATE UNIQUE INDEX index_users_on_uuid ON public.users USING btree (uuid);
2634 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -
2637 CREATE INDEX index_virtual_machines_on_hostname ON public.virtual_machines USING btree (hostname);
2641 -- Name: index_virtual_machines_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2644 CREATE INDEX index_virtual_machines_on_modified_at_uuid ON public.virtual_machines USING btree (modified_at DESC, uuid);
2648 -- Name: index_virtual_machines_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2651 CREATE INDEX index_virtual_machines_on_owner_uuid ON public.virtual_machines USING btree (owner_uuid);
2655 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -
2658 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON public.virtual_machines USING btree (uuid);
2662 -- Name: index_workflows_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2665 CREATE INDEX index_workflows_on_modified_at_uuid ON public.workflows USING btree (modified_at DESC, uuid);
2669 -- Name: index_workflows_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2672 CREATE INDEX index_workflows_on_owner_uuid ON public.workflows USING btree (owner_uuid);
2676 -- Name: index_workflows_on_uuid; Type: INDEX; Schema: public; Owner: -
2679 CREATE UNIQUE INDEX index_workflows_on_uuid ON public.workflows USING btree (uuid);
2683 -- Name: job_tasks_search_index; Type: INDEX; Schema: public; Owner: -
2686 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);
2690 -- Name: jobs_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2693 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)));
2697 -- Name: jobs_search_index; Type: INDEX; Schema: public; Owner: -
2700 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);
2704 -- Name: keep_disks_search_index; Type: INDEX; Schema: public; Owner: -
2707 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);
2711 -- Name: keep_services_search_index; Type: INDEX; Schema: public; Owner: -
2714 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);
2718 -- Name: links_index_on_properties; Type: INDEX; Schema: public; Owner: -
2721 CREATE INDEX links_index_on_properties ON public.links USING gin (properties);
2725 -- Name: links_search_index; Type: INDEX; Schema: public; Owner: -
2728 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);
2732 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -
2735 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);
2739 -- Name: logs_search_index; Type: INDEX; Schema: public; Owner: -
2742 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);
2746 -- Name: nodes_index_on_info; Type: INDEX; Schema: public; Owner: -
2749 CREATE INDEX nodes_index_on_info ON public.nodes USING gin (info);
2753 -- Name: nodes_index_on_properties; Type: INDEX; Schema: public; Owner: -
2756 CREATE INDEX nodes_index_on_properties ON public.nodes USING gin (properties);
2760 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -
2763 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);
2767 -- Name: permission_target_trashed; Type: INDEX; Schema: public; Owner: -
2770 CREATE INDEX permission_target_trashed ON public.materialized_permission_view USING btree (trashed, target_uuid);
2774 -- Name: permission_target_user_trashed_level; Type: INDEX; Schema: public; Owner: -
2777 CREATE INDEX permission_target_user_trashed_level ON public.materialized_permission_view USING btree (user_uuid, trashed, perm_level);
2781 -- Name: pipeline_instances_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2784 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)));
2788 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -
2791 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);
2795 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -
2798 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON public.pipeline_templates USING btree (owner_uuid, name);
2802 -- Name: pipeline_templates_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2805 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)));
2809 -- Name: pipeline_templates_search_index; Type: INDEX; Schema: public; Owner: -
2812 CREATE INDEX pipeline_templates_search_index ON public.pipeline_templates USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2816 -- Name: repositories_search_index; Type: INDEX; Schema: public; Owner: -
2819 CREATE INDEX repositories_search_index ON public.repositories USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2823 -- Name: specimens_search_index; Type: INDEX; Schema: public; Owner: -
2826 CREATE INDEX specimens_search_index ON public.specimens USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, material);
2830 -- Name: traits_search_index; Type: INDEX; Schema: public; Owner: -
2833 CREATE INDEX traits_search_index ON public.traits USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2837 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
2840 CREATE UNIQUE INDEX unique_schema_migrations ON public.schema_migrations USING btree (version);
2844 -- Name: users_search_index; Type: INDEX; Schema: public; Owner: -
2847 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);
2851 -- Name: virtual_machines_search_index; Type: INDEX; Schema: public; Owner: -
2854 CREATE INDEX virtual_machines_search_index ON public.virtual_machines USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname);
2858 -- Name: workflows_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2861 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)));
2865 -- Name: workflows_search_idx; Type: INDEX; Schema: public; Owner: -
2868 CREATE INDEX workflows_search_idx ON public.workflows USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2872 -- PostgreSQL database dump complete
2875 SET search_path TO "$user", public;
2877 INSERT INTO "schema_migrations" (version) VALUES
3064 INSERT INTO schema_migrations (version) VALUES ('20190322174136');