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
195 -- Name: collections_id_seq; Type: SEQUENCE; Schema: public; Owner: -
198 CREATE SEQUENCE public.collections_id_seq
207 -- Name: collections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
210 ALTER SEQUENCE public.collections_id_seq OWNED BY public.collections.id;
214 -- Name: commit_ancestors; Type: TABLE; Schema: public; Owner: -
217 CREATE TABLE public.commit_ancestors (
219 repository_name character varying(255),
220 descendant character varying(255) NOT NULL,
221 ancestor character varying(255) NOT NULL,
222 "is" boolean DEFAULT false NOT NULL,
223 created_at timestamp without time zone NOT NULL,
224 updated_at timestamp without time zone NOT NULL
229 -- Name: commit_ancestors_id_seq; Type: SEQUENCE; Schema: public; Owner: -
232 CREATE SEQUENCE public.commit_ancestors_id_seq
241 -- Name: commit_ancestors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
244 ALTER SEQUENCE public.commit_ancestors_id_seq OWNED BY public.commit_ancestors.id;
248 -- Name: commits; Type: TABLE; Schema: public; Owner: -
251 CREATE TABLE public.commits (
253 repository_name character varying(255),
254 sha1 character varying(255),
255 message character varying(255),
256 created_at timestamp without time zone NOT NULL,
257 updated_at timestamp without time zone NOT NULL
262 -- Name: commits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
265 CREATE SEQUENCE public.commits_id_seq
274 -- Name: commits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
277 ALTER SEQUENCE public.commits_id_seq OWNED BY public.commits.id;
281 -- Name: container_requests; Type: TABLE; Schema: public; Owner: -
284 CREATE TABLE public.container_requests (
286 uuid character varying(255),
287 owner_uuid character varying(255),
288 created_at timestamp without time zone NOT NULL,
289 modified_at timestamp without time zone,
290 modified_by_client_uuid character varying(255),
291 modified_by_user_uuid character varying(255),
292 name character varying(255),
295 state character varying(255),
296 requesting_container_uuid character varying(255),
297 container_uuid character varying(255),
298 container_count_max integer,
300 runtime_constraints text,
301 container_image character varying(255),
303 cwd character varying(255),
305 output_path character varying(255),
307 expires_at timestamp without time zone,
309 updated_at timestamp without time zone NOT NULL,
310 container_count integer DEFAULT 0,
311 use_existing boolean DEFAULT true,
312 scheduling_parameters text,
313 output_uuid character varying(255),
314 log_uuid character varying(255),
315 output_name character varying(255) DEFAULT NULL::character varying,
316 output_ttl integer DEFAULT 0 NOT NULL,
317 secret_mounts jsonb DEFAULT '{}'::jsonb,
323 -- Name: container_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
326 CREATE SEQUENCE public.container_requests_id_seq
335 -- Name: container_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
338 ALTER SEQUENCE public.container_requests_id_seq OWNED BY public.container_requests.id;
342 -- Name: containers; Type: TABLE; Schema: public; Owner: -
345 CREATE TABLE public.containers (
347 uuid character varying(255),
348 owner_uuid character varying(255),
349 created_at timestamp without time zone NOT NULL,
350 modified_at timestamp without time zone,
351 modified_by_client_uuid character varying(255),
352 modified_by_user_uuid character varying(255),
353 state character varying(255),
354 started_at timestamp without time zone,
355 finished_at timestamp without time zone,
356 log character varying(255),
358 cwd character varying(255),
360 output_path character varying(255),
362 runtime_constraints text,
363 output character varying(255),
364 container_image character varying(255),
365 progress double precision,
367 updated_at timestamp without time zone NOT NULL,
369 auth_uuid character varying(255),
370 locked_by_uuid character varying(255),
371 scheduling_parameters text,
372 secret_mounts jsonb DEFAULT '{}'::jsonb,
373 secret_mounts_md5 character varying DEFAULT '99914b932bd37a50b983c5e7c90ae93b'::character varying,
374 runtime_status jsonb DEFAULT '{}'::jsonb,
375 runtime_user_uuid text,
376 runtime_auth_scopes jsonb,
378 lock_count integer DEFAULT 0 NOT NULL
383 -- Name: containers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
386 CREATE SEQUENCE public.containers_id_seq
395 -- Name: containers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
398 ALTER SEQUENCE public.containers_id_seq OWNED BY public.containers.id;
402 -- Name: groups; Type: TABLE; Schema: public; Owner: -
405 CREATE TABLE public.groups (
407 uuid character varying(255),
408 owner_uuid character varying(255),
409 created_at timestamp without time zone NOT NULL,
410 modified_by_client_uuid character varying(255),
411 modified_by_user_uuid character varying(255),
412 modified_at timestamp without time zone,
413 name character varying(255) NOT NULL,
414 description character varying(524288),
415 updated_at timestamp without time zone NOT NULL,
416 group_class character varying(255),
417 trash_at timestamp without time zone,
418 is_trashed boolean DEFAULT false NOT NULL,
419 delete_at timestamp without time zone,
420 properties jsonb DEFAULT '{}'::jsonb
425 -- Name: groups_id_seq; Type: SEQUENCE; Schema: public; Owner: -
428 CREATE SEQUENCE public.groups_id_seq
437 -- Name: groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
440 ALTER SEQUENCE public.groups_id_seq OWNED BY public.groups.id;
444 -- Name: humans; Type: TABLE; Schema: public; Owner: -
447 CREATE TABLE public.humans (
449 uuid character varying(255) NOT NULL,
450 owner_uuid character varying(255) NOT NULL,
451 modified_by_client_uuid character varying(255),
452 modified_by_user_uuid character varying(255),
453 modified_at timestamp without time zone,
455 created_at timestamp without time zone NOT NULL,
456 updated_at timestamp without time zone NOT NULL
461 -- Name: humans_id_seq; Type: SEQUENCE; Schema: public; Owner: -
464 CREATE SEQUENCE public.humans_id_seq
473 -- Name: humans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
476 ALTER SEQUENCE public.humans_id_seq OWNED BY public.humans.id;
480 -- Name: job_tasks; Type: TABLE; Schema: public; Owner: -
483 CREATE TABLE public.job_tasks (
485 uuid character varying(255),
486 owner_uuid character varying(255),
487 modified_by_client_uuid character varying(255),
488 modified_by_user_uuid character varying(255),
489 modified_at timestamp without time zone,
490 job_uuid character varying(255),
494 progress double precision,
496 created_at timestamp without time zone NOT NULL,
497 updated_at timestamp without time zone NOT NULL,
498 created_by_job_task_uuid character varying(255),
500 started_at timestamp without time zone,
501 finished_at timestamp without time zone
506 -- Name: job_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
509 CREATE SEQUENCE public.job_tasks_id_seq
518 -- Name: job_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
521 ALTER SEQUENCE public.job_tasks_id_seq OWNED BY public.job_tasks.id;
525 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE; Schema: public; Owner: -
528 CREATE SEQUENCE public.job_tasks_qsequence_seq
537 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
540 ALTER SEQUENCE public.job_tasks_qsequence_seq OWNED BY public.job_tasks.qsequence;
544 -- Name: jobs; Type: TABLE; Schema: public; Owner: -
547 CREATE TABLE public.jobs (
549 uuid character varying(255),
550 owner_uuid character varying(255),
551 modified_by_client_uuid character varying(255),
552 modified_by_user_uuid character varying(255),
553 modified_at timestamp without time zone,
554 submit_id character varying(255),
555 script character varying(255),
556 script_version character varying(255),
557 script_parameters text,
558 cancelled_by_client_uuid character varying(255),
559 cancelled_by_user_uuid character varying(255),
560 cancelled_at timestamp without time zone,
561 started_at timestamp without time zone,
562 finished_at timestamp without time zone,
565 output character varying(255),
566 created_at timestamp without time zone NOT NULL,
567 updated_at timestamp without time zone NOT NULL,
568 is_locked_by_uuid character varying(255),
569 log character varying(255),
571 runtime_constraints text,
572 nondeterministic boolean,
573 repository character varying(255),
574 supplied_script_version character varying(255),
575 docker_image_locator character varying(255),
576 priority integer DEFAULT 0 NOT NULL,
577 description character varying(524288),
578 state character varying(255),
579 arvados_sdk_version character varying(255),
581 script_parameters_digest character varying(255)
586 -- Name: jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
589 CREATE SEQUENCE public.jobs_id_seq
598 -- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
601 ALTER SEQUENCE public.jobs_id_seq OWNED BY public.jobs.id;
605 -- Name: keep_disks; Type: TABLE; Schema: public; Owner: -
608 CREATE TABLE public.keep_disks (
610 uuid character varying(255) NOT NULL,
611 owner_uuid character varying(255) NOT NULL,
612 modified_by_client_uuid character varying(255),
613 modified_by_user_uuid character varying(255),
614 modified_at timestamp without time zone,
615 ping_secret character varying(255) NOT NULL,
616 node_uuid character varying(255),
617 filesystem_uuid character varying(255),
620 is_readable boolean DEFAULT true NOT NULL,
621 is_writable boolean DEFAULT true NOT NULL,
622 last_read_at timestamp without time zone,
623 last_write_at timestamp without time zone,
624 last_ping_at timestamp without time zone,
625 created_at timestamp without time zone NOT NULL,
626 updated_at timestamp without time zone NOT NULL,
627 keep_service_uuid character varying(255)
632 -- Name: keep_disks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
635 CREATE SEQUENCE public.keep_disks_id_seq
644 -- Name: keep_disks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
647 ALTER SEQUENCE public.keep_disks_id_seq OWNED BY public.keep_disks.id;
651 -- Name: keep_services; Type: TABLE; Schema: public; Owner: -
654 CREATE TABLE public.keep_services (
656 uuid character varying(255) NOT NULL,
657 owner_uuid character varying(255) NOT NULL,
658 modified_by_client_uuid character varying(255),
659 modified_by_user_uuid character varying(255),
660 modified_at timestamp without time zone,
661 service_host character varying(255),
662 service_port integer,
663 service_ssl_flag boolean,
664 service_type character varying(255),
665 created_at timestamp without time zone NOT NULL,
666 updated_at timestamp without time zone NOT NULL,
667 read_only boolean DEFAULT false NOT NULL
672 -- Name: keep_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
675 CREATE SEQUENCE public.keep_services_id_seq
684 -- Name: keep_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
687 ALTER SEQUENCE public.keep_services_id_seq OWNED BY public.keep_services.id;
691 -- Name: links; Type: TABLE; Schema: public; Owner: -
694 CREATE TABLE public.links (
696 uuid character varying(255),
697 owner_uuid character varying(255),
698 created_at timestamp without time zone NOT NULL,
699 modified_by_client_uuid character varying(255),
700 modified_by_user_uuid character varying(255),
701 modified_at timestamp without time zone,
702 tail_uuid character varying(255),
703 link_class character varying(255),
704 name character varying(255),
705 head_uuid character varying(255),
707 updated_at timestamp without time zone NOT NULL
712 -- Name: links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
715 CREATE SEQUENCE public.links_id_seq
724 -- Name: links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
727 ALTER SEQUENCE public.links_id_seq OWNED BY public.links.id;
731 -- Name: logs; Type: TABLE; Schema: public; Owner: -
734 CREATE TABLE public.logs (
736 uuid character varying(255),
737 owner_uuid character varying(255),
738 modified_by_client_uuid character varying(255),
739 modified_by_user_uuid character varying(255),
740 object_uuid character varying(255),
741 event_at timestamp without time zone,
742 event_type character varying(255),
745 created_at timestamp without time zone NOT NULL,
746 updated_at timestamp without time zone NOT NULL,
747 modified_at timestamp without time zone,
748 object_owner_uuid character varying(255)
753 -- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
756 CREATE SEQUENCE public.logs_id_seq
765 -- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
768 ALTER SEQUENCE public.logs_id_seq OWNED BY public.logs.id;
772 -- Name: users; Type: TABLE; Schema: public; Owner: -
775 CREATE TABLE public.users (
777 uuid character varying(255),
778 owner_uuid character varying(255) NOT NULL,
779 created_at timestamp without time zone NOT NULL,
780 modified_by_client_uuid character varying(255),
781 modified_by_user_uuid character varying(255),
782 modified_at timestamp without time zone,
783 email character varying(255),
784 first_name character varying(255),
785 last_name character varying(255),
786 identity_url character varying(255),
789 updated_at timestamp without time zone NOT NULL,
790 default_owner_uuid character varying(255),
791 is_active boolean DEFAULT false,
792 username character varying(255),
793 redirect_to_user_uuid character varying
798 -- Name: materialized_permission_view; Type: MATERIALIZED VIEW; Schema: public; Owner: -
801 CREATE MATERIALIZED VIEW public.materialized_permission_view AS
802 WITH RECURSIVE perm_value(name, val) AS (
803 VALUES ('can_read'::text,(1)::smallint), ('can_login'::text,1), ('can_write'::text,2), ('can_manage'::text,3)
804 ), perm_edges(tail_uuid, head_uuid, val, follow, trashed) AS (
805 SELECT links.tail_uuid,
808 ((pv.val = 3) OR (groups.uuid IS NOT NULL)) AS follow,
809 (0)::smallint AS trashed,
810 (0)::smallint AS followtrash
812 LEFT JOIN perm_value pv ON ((pv.name = (links.name)::text)))
813 LEFT JOIN public.groups ON (((pv.val < 3) AND ((groups.uuid)::text = (links.head_uuid)::text))))
814 WHERE ((links.link_class)::text = 'permission'::text)
816 SELECT groups.owner_uuid,
821 WHEN ((groups.trash_at IS NOT NULL) AND (groups.trash_at < clock_timestamp())) THEN 1
826 ), perm(val, follow, user_uuid, target_uuid, trashed) AS (
827 SELECT (3)::smallint AS val,
829 (users.uuid)::character varying(32) AS user_uuid,
830 (users.uuid)::character varying(32) AS target_uuid,
831 (0)::smallint AS trashed
834 SELECT (LEAST((perm_1.val)::integer, edges.val))::smallint AS val,
837 (edges.head_uuid)::character varying(32) AS target_uuid,
838 ((GREATEST((perm_1.trashed)::integer, edges.trashed) * edges.followtrash))::smallint AS trashed
840 JOIN perm_edges edges ON ((perm_1.follow AND ((edges.tail_uuid)::text = (perm_1.target_uuid)::text))))
842 SELECT perm.user_uuid,
844 max(perm.val) AS perm_level,
846 WHEN true THEN perm.target_uuid
847 ELSE NULL::character varying
848 END AS target_owner_uuid,
849 max(perm.trashed) AS trashed
851 GROUP BY perm.user_uuid, perm.target_uuid,
853 WHEN true THEN perm.target_uuid
854 ELSE NULL::character varying
860 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
863 CREATE TABLE public.nodes (
865 uuid character varying(255),
866 owner_uuid character varying(255),
867 created_at timestamp without time zone NOT NULL,
868 modified_by_client_uuid character varying(255),
869 modified_by_user_uuid character varying(255),
870 modified_at timestamp without time zone,
872 hostname character varying(255),
873 domain character varying(255),
874 ip_address character varying(255),
875 first_ping_at timestamp without time zone,
876 last_ping_at timestamp without time zone,
878 updated_at timestamp without time zone NOT NULL,
880 job_uuid character varying(255)
885 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
888 CREATE SEQUENCE public.nodes_id_seq
897 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
900 ALTER SEQUENCE public.nodes_id_seq OWNED BY public.nodes.id;
904 -- Name: permission_refresh_lock; Type: TABLE; Schema: public; Owner: -
907 CREATE TABLE public.permission_refresh_lock (
913 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE; Schema: public; Owner: -
916 CREATE SEQUENCE public.permission_refresh_lock_id_seq
925 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
928 ALTER SEQUENCE public.permission_refresh_lock_id_seq OWNED BY public.permission_refresh_lock.id;
932 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -
935 CREATE TABLE public.pipeline_instances (
937 uuid character varying(255),
938 owner_uuid character varying(255),
939 created_at timestamp without time zone NOT NULL,
940 modified_by_client_uuid character varying(255),
941 modified_by_user_uuid character varying(255),
942 modified_at timestamp without time zone,
943 pipeline_template_uuid character varying(255),
944 name character varying(255),
946 updated_at timestamp without time zone NOT NULL,
948 state character varying(255),
949 components_summary text,
950 started_at timestamp without time zone,
951 finished_at timestamp without time zone,
952 description character varying(524288)
957 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
960 CREATE SEQUENCE public.pipeline_instances_id_seq
969 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
972 ALTER SEQUENCE public.pipeline_instances_id_seq OWNED BY public.pipeline_instances.id;
976 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -
979 CREATE TABLE public.pipeline_templates (
981 uuid character varying(255),
982 owner_uuid character varying(255),
983 created_at timestamp without time zone NOT NULL,
984 modified_by_client_uuid character varying(255),
985 modified_by_user_uuid character varying(255),
986 modified_at timestamp without time zone,
987 name character varying(255),
989 updated_at timestamp without time zone NOT NULL,
990 description character varying(524288)
995 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
998 CREATE SEQUENCE public.pipeline_templates_id_seq
1007 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1010 ALTER SEQUENCE public.pipeline_templates_id_seq OWNED BY public.pipeline_templates.id;
1014 -- Name: repositories; Type: TABLE; Schema: public; Owner: -
1017 CREATE TABLE public.repositories (
1018 id integer NOT NULL,
1019 uuid character varying(255) NOT NULL,
1020 owner_uuid character varying(255) NOT NULL,
1021 modified_by_client_uuid character varying(255),
1022 modified_by_user_uuid character varying(255),
1023 modified_at timestamp without time zone,
1024 name character varying(255),
1025 created_at timestamp without time zone NOT NULL,
1026 updated_at timestamp without time zone NOT NULL
1031 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1034 CREATE SEQUENCE public.repositories_id_seq
1043 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1046 ALTER SEQUENCE public.repositories_id_seq OWNED BY public.repositories.id;
1050 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
1053 CREATE TABLE public.schema_migrations (
1054 version character varying(255) NOT NULL
1059 -- Name: specimens; Type: TABLE; Schema: public; Owner: -
1062 CREATE TABLE public.specimens (
1063 id integer NOT NULL,
1064 uuid character varying(255),
1065 owner_uuid character varying(255),
1066 created_at timestamp without time zone NOT NULL,
1067 modified_by_client_uuid character varying(255),
1068 modified_by_user_uuid character varying(255),
1069 modified_at timestamp without time zone,
1070 material character varying(255),
1071 updated_at timestamp without time zone NOT NULL,
1077 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1080 CREATE SEQUENCE public.specimens_id_seq
1089 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1092 ALTER SEQUENCE public.specimens_id_seq OWNED BY public.specimens.id;
1096 -- Name: traits; Type: TABLE; Schema: public; Owner: -
1099 CREATE TABLE public.traits (
1100 id integer NOT NULL,
1101 uuid character varying(255) NOT NULL,
1102 owner_uuid character varying(255) NOT NULL,
1103 modified_by_client_uuid character varying(255),
1104 modified_by_user_uuid character varying(255),
1105 modified_at timestamp without time zone,
1106 name character varying(255),
1108 created_at timestamp without time zone NOT NULL,
1109 updated_at timestamp without time zone NOT NULL
1114 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1117 CREATE SEQUENCE public.traits_id_seq
1126 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1129 ALTER SEQUENCE public.traits_id_seq OWNED BY public.traits.id;
1133 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1136 CREATE SEQUENCE public.users_id_seq
1145 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1148 ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
1152 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -
1155 CREATE TABLE public.virtual_machines (
1156 id integer NOT NULL,
1157 uuid character varying(255) NOT NULL,
1158 owner_uuid character varying(255) NOT NULL,
1159 modified_by_client_uuid character varying(255),
1160 modified_by_user_uuid character varying(255),
1161 modified_at timestamp without time zone,
1162 hostname character varying(255),
1163 created_at timestamp without time zone NOT NULL,
1164 updated_at timestamp without time zone NOT NULL
1169 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1172 CREATE SEQUENCE public.virtual_machines_id_seq
1181 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1184 ALTER SEQUENCE public.virtual_machines_id_seq OWNED BY public.virtual_machines.id;
1188 -- Name: workflows; Type: TABLE; Schema: public; Owner: -
1191 CREATE TABLE public.workflows (
1192 id integer NOT NULL,
1193 uuid character varying(255),
1194 owner_uuid character varying(255),
1195 created_at timestamp without time zone NOT NULL,
1196 modified_at timestamp without time zone,
1197 modified_by_client_uuid character varying(255),
1198 modified_by_user_uuid character varying(255),
1199 name character varying(255),
1202 updated_at timestamp without time zone NOT NULL
1207 -- Name: workflows_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1210 CREATE SEQUENCE public.workflows_id_seq
1219 -- Name: workflows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1222 ALTER SEQUENCE public.workflows_id_seq OWNED BY public.workflows.id;
1226 -- Name: api_client_authorizations id; Type: DEFAULT; Schema: public; Owner: -
1229 ALTER TABLE ONLY public.api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('public.api_client_authorizations_id_seq'::regclass);
1233 -- Name: api_clients id; Type: DEFAULT; Schema: public; Owner: -
1236 ALTER TABLE ONLY public.api_clients ALTER COLUMN id SET DEFAULT nextval('public.api_clients_id_seq'::regclass);
1240 -- Name: authorized_keys id; Type: DEFAULT; Schema: public; Owner: -
1243 ALTER TABLE ONLY public.authorized_keys ALTER COLUMN id SET DEFAULT nextval('public.authorized_keys_id_seq'::regclass);
1247 -- Name: collections id; Type: DEFAULT; Schema: public; Owner: -
1250 ALTER TABLE ONLY public.collections ALTER COLUMN id SET DEFAULT nextval('public.collections_id_seq'::regclass);
1254 -- Name: commit_ancestors id; Type: DEFAULT; Schema: public; Owner: -
1257 ALTER TABLE ONLY public.commit_ancestors ALTER COLUMN id SET DEFAULT nextval('public.commit_ancestors_id_seq'::regclass);
1261 -- Name: commits id; Type: DEFAULT; Schema: public; Owner: -
1264 ALTER TABLE ONLY public.commits ALTER COLUMN id SET DEFAULT nextval('public.commits_id_seq'::regclass);
1268 -- Name: container_requests id; Type: DEFAULT; Schema: public; Owner: -
1271 ALTER TABLE ONLY public.container_requests ALTER COLUMN id SET DEFAULT nextval('public.container_requests_id_seq'::regclass);
1275 -- Name: containers id; Type: DEFAULT; Schema: public; Owner: -
1278 ALTER TABLE ONLY public.containers ALTER COLUMN id SET DEFAULT nextval('public.containers_id_seq'::regclass);
1282 -- Name: groups id; Type: DEFAULT; Schema: public; Owner: -
1285 ALTER TABLE ONLY public.groups ALTER COLUMN id SET DEFAULT nextval('public.groups_id_seq'::regclass);
1289 -- Name: humans id; Type: DEFAULT; Schema: public; Owner: -
1292 ALTER TABLE ONLY public.humans ALTER COLUMN id SET DEFAULT nextval('public.humans_id_seq'::regclass);
1296 -- Name: job_tasks id; Type: DEFAULT; Schema: public; Owner: -
1299 ALTER TABLE ONLY public.job_tasks ALTER COLUMN id SET DEFAULT nextval('public.job_tasks_id_seq'::regclass);
1303 -- Name: jobs id; Type: DEFAULT; Schema: public; Owner: -
1306 ALTER TABLE ONLY public.jobs ALTER COLUMN id SET DEFAULT nextval('public.jobs_id_seq'::regclass);
1310 -- Name: keep_disks id; Type: DEFAULT; Schema: public; Owner: -
1313 ALTER TABLE ONLY public.keep_disks ALTER COLUMN id SET DEFAULT nextval('public.keep_disks_id_seq'::regclass);
1317 -- Name: keep_services id; Type: DEFAULT; Schema: public; Owner: -
1320 ALTER TABLE ONLY public.keep_services ALTER COLUMN id SET DEFAULT nextval('public.keep_services_id_seq'::regclass);
1324 -- Name: links id; Type: DEFAULT; Schema: public; Owner: -
1327 ALTER TABLE ONLY public.links ALTER COLUMN id SET DEFAULT nextval('public.links_id_seq'::regclass);
1331 -- Name: logs id; Type: DEFAULT; Schema: public; Owner: -
1334 ALTER TABLE ONLY public.logs ALTER COLUMN id SET DEFAULT nextval('public.logs_id_seq'::regclass);
1338 -- Name: nodes id; Type: DEFAULT; Schema: public; Owner: -
1341 ALTER TABLE ONLY public.nodes ALTER COLUMN id SET DEFAULT nextval('public.nodes_id_seq'::regclass);
1345 -- Name: permission_refresh_lock id; Type: DEFAULT; Schema: public; Owner: -
1348 ALTER TABLE ONLY public.permission_refresh_lock ALTER COLUMN id SET DEFAULT nextval('public.permission_refresh_lock_id_seq'::regclass);
1352 -- Name: pipeline_instances id; Type: DEFAULT; Schema: public; Owner: -
1355 ALTER TABLE ONLY public.pipeline_instances ALTER COLUMN id SET DEFAULT nextval('public.pipeline_instances_id_seq'::regclass);
1359 -- Name: pipeline_templates id; Type: DEFAULT; Schema: public; Owner: -
1362 ALTER TABLE ONLY public.pipeline_templates ALTER COLUMN id SET DEFAULT nextval('public.pipeline_templates_id_seq'::regclass);
1366 -- Name: repositories id; Type: DEFAULT; Schema: public; Owner: -
1369 ALTER TABLE ONLY public.repositories ALTER COLUMN id SET DEFAULT nextval('public.repositories_id_seq'::regclass);
1373 -- Name: specimens id; Type: DEFAULT; Schema: public; Owner: -
1376 ALTER TABLE ONLY public.specimens ALTER COLUMN id SET DEFAULT nextval('public.specimens_id_seq'::regclass);
1380 -- Name: traits id; Type: DEFAULT; Schema: public; Owner: -
1383 ALTER TABLE ONLY public.traits ALTER COLUMN id SET DEFAULT nextval('public.traits_id_seq'::regclass);
1387 -- Name: users id; Type: DEFAULT; Schema: public; Owner: -
1390 ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
1394 -- Name: virtual_machines id; Type: DEFAULT; Schema: public; Owner: -
1397 ALTER TABLE ONLY public.virtual_machines ALTER COLUMN id SET DEFAULT nextval('public.virtual_machines_id_seq'::regclass);
1401 -- Name: workflows id; Type: DEFAULT; Schema: public; Owner: -
1404 ALTER TABLE ONLY public.workflows ALTER COLUMN id SET DEFAULT nextval('public.workflows_id_seq'::regclass);
1408 -- Name: api_client_authorizations api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1411 ALTER TABLE ONLY public.api_client_authorizations
1412 ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1416 -- Name: api_clients api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1419 ALTER TABLE ONLY public.api_clients
1420 ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1424 -- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1427 ALTER TABLE ONLY public.ar_internal_metadata
1428 ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key);
1432 -- Name: authorized_keys authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1435 ALTER TABLE ONLY public.authorized_keys
1436 ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1440 -- Name: collections collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1443 ALTER TABLE ONLY public.collections
1444 ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1448 -- Name: commit_ancestors commit_ancestors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1451 ALTER TABLE ONLY public.commit_ancestors
1452 ADD CONSTRAINT commit_ancestors_pkey PRIMARY KEY (id);
1456 -- Name: commits commits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1459 ALTER TABLE ONLY public.commits
1460 ADD CONSTRAINT commits_pkey PRIMARY KEY (id);
1464 -- Name: container_requests container_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1467 ALTER TABLE ONLY public.container_requests
1468 ADD CONSTRAINT container_requests_pkey PRIMARY KEY (id);
1472 -- Name: containers containers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1475 ALTER TABLE ONLY public.containers
1476 ADD CONSTRAINT containers_pkey PRIMARY KEY (id);
1480 -- Name: groups groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1483 ALTER TABLE ONLY public.groups
1484 ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1488 -- Name: humans humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1491 ALTER TABLE ONLY public.humans
1492 ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1496 -- Name: job_tasks job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1499 ALTER TABLE ONLY public.job_tasks
1500 ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1504 -- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1507 ALTER TABLE ONLY public.jobs
1508 ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1512 -- Name: keep_disks keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1515 ALTER TABLE ONLY public.keep_disks
1516 ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1520 -- Name: keep_services keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1523 ALTER TABLE ONLY public.keep_services
1524 ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1528 -- Name: links links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1531 ALTER TABLE ONLY public.links
1532 ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1536 -- Name: logs logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1539 ALTER TABLE ONLY public.logs
1540 ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1544 -- Name: nodes nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1547 ALTER TABLE ONLY public.nodes
1548 ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1552 -- Name: permission_refresh_lock permission_refresh_lock_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1555 ALTER TABLE ONLY public.permission_refresh_lock
1556 ADD CONSTRAINT permission_refresh_lock_pkey PRIMARY KEY (id);
1560 -- Name: pipeline_instances pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1563 ALTER TABLE ONLY public.pipeline_instances
1564 ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1568 -- Name: pipeline_templates pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1571 ALTER TABLE ONLY public.pipeline_templates
1572 ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1576 -- Name: repositories repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1579 ALTER TABLE ONLY public.repositories
1580 ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1584 -- Name: specimens specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1587 ALTER TABLE ONLY public.specimens
1588 ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1592 -- Name: traits traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1595 ALTER TABLE ONLY public.traits
1596 ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1600 -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1603 ALTER TABLE ONLY public.users
1604 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1608 -- Name: virtual_machines virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1611 ALTER TABLE ONLY public.virtual_machines
1612 ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1616 -- Name: workflows workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1619 ALTER TABLE ONLY public.workflows
1620 ADD CONSTRAINT workflows_pkey PRIMARY KEY (id);
1624 -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -
1627 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);
1631 -- Name: api_clients_search_index; Type: INDEX; Schema: public; Owner: -
1634 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);
1638 -- Name: authorized_keys_search_index; Type: INDEX; Schema: public; Owner: -
1641 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);
1645 -- Name: collection_index_on_properties; Type: INDEX; Schema: public; Owner: -
1648 CREATE INDEX collection_index_on_properties ON public.collections USING gin (properties);
1652 -- Name: collections_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1655 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)));
1659 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -
1662 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);
1666 -- Name: container_requests_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1669 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)));
1673 -- Name: container_requests_index_on_properties; Type: INDEX; Schema: public; Owner: -
1676 CREATE INDEX container_requests_index_on_properties ON public.container_requests USING gin (properties);
1680 -- Name: container_requests_search_index; Type: INDEX; Schema: public; Owner: -
1683 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);
1687 -- Name: containers_search_index; Type: INDEX; Schema: public; Owner: -
1690 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);
1694 -- Name: group_index_on_properties; Type: INDEX; Schema: public; Owner: -
1697 CREATE INDEX group_index_on_properties ON public.groups USING gin (properties);
1701 -- Name: groups_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1704 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)));
1708 -- Name: groups_search_index; Type: INDEX; Schema: public; Owner: -
1711 CREATE INDEX groups_search_index ON public.groups USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, group_class);
1715 -- Name: humans_search_index; Type: INDEX; Schema: public; Owner: -
1718 CREATE INDEX humans_search_index ON public.humans USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid);
1722 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -
1725 CREATE INDEX index_api_client_authorizations_on_api_client_id ON public.api_client_authorizations USING btree (api_client_id);
1729 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -
1732 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON public.api_client_authorizations USING btree (api_token);
1736 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -
1739 CREATE INDEX index_api_client_authorizations_on_expires_at ON public.api_client_authorizations USING btree (expires_at);
1743 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -
1746 CREATE INDEX index_api_client_authorizations_on_user_id ON public.api_client_authorizations USING btree (user_id);
1750 -- Name: index_api_client_authorizations_on_uuid; Type: INDEX; Schema: public; Owner: -
1753 CREATE UNIQUE INDEX index_api_client_authorizations_on_uuid ON public.api_client_authorizations USING btree (uuid);
1757 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -
1760 CREATE INDEX index_api_clients_on_created_at ON public.api_clients USING btree (created_at);
1764 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -
1767 CREATE INDEX index_api_clients_on_modified_at ON public.api_clients USING btree (modified_at);
1771 -- Name: index_api_clients_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1774 CREATE INDEX index_api_clients_on_owner_uuid ON public.api_clients USING btree (owner_uuid);
1778 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -
1781 CREATE UNIQUE INDEX index_api_clients_on_uuid ON public.api_clients USING btree (uuid);
1785 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -
1788 CREATE INDEX index_authkeys_on_user_and_expires_at ON public.authorized_keys USING btree (authorized_user_uuid, expires_at);
1792 -- Name: index_authorized_keys_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1795 CREATE INDEX index_authorized_keys_on_owner_uuid ON public.authorized_keys USING btree (owner_uuid);
1799 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -
1802 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON public.authorized_keys USING btree (uuid);
1806 -- Name: index_collections_on_created_at; Type: INDEX; Schema: public; Owner: -
1809 CREATE INDEX index_collections_on_created_at ON public.collections USING btree (created_at);
1813 -- Name: index_collections_on_current_version_uuid_and_version; Type: INDEX; Schema: public; Owner: -
1816 CREATE UNIQUE INDEX index_collections_on_current_version_uuid_and_version ON public.collections USING btree (current_version_uuid, version);
1820 -- Name: index_collections_on_delete_at; Type: INDEX; Schema: public; Owner: -
1823 CREATE INDEX index_collections_on_delete_at ON public.collections USING btree (delete_at);
1827 -- Name: index_collections_on_is_trashed; Type: INDEX; Schema: public; Owner: -
1830 CREATE INDEX index_collections_on_is_trashed ON public.collections USING btree (is_trashed);
1834 -- Name: index_collections_on_modified_at; Type: INDEX; Schema: public; Owner: -
1837 CREATE INDEX index_collections_on_modified_at ON public.collections USING btree (modified_at);
1841 -- Name: index_collections_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1844 CREATE INDEX index_collections_on_modified_at_uuid ON public.collections USING btree (modified_at DESC, uuid);
1848 -- Name: index_collections_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1851 CREATE INDEX index_collections_on_owner_uuid ON public.collections USING btree (owner_uuid);
1855 -- Name: index_collections_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
1858 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));
1862 -- Name: index_collections_on_portable_data_hash_and_trash_at; Type: INDEX; Schema: public; Owner: -
1865 CREATE INDEX index_collections_on_portable_data_hash_and_trash_at ON public.collections USING btree (portable_data_hash, trash_at);
1869 -- Name: index_collections_on_trash_at; Type: INDEX; Schema: public; Owner: -
1872 CREATE INDEX index_collections_on_trash_at ON public.collections USING btree (trash_at);
1876 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -
1879 CREATE UNIQUE INDEX index_collections_on_uuid ON public.collections USING btree (uuid);
1883 -- Name: index_commit_ancestors_on_descendant_and_ancestor; Type: INDEX; Schema: public; Owner: -
1886 CREATE UNIQUE INDEX index_commit_ancestors_on_descendant_and_ancestor ON public.commit_ancestors USING btree (descendant, ancestor);
1890 -- Name: index_commits_on_repository_name_and_sha1; Type: INDEX; Schema: public; Owner: -
1893 CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON public.commits USING btree (repository_name, sha1);
1897 -- Name: index_container_requests_on_container_uuid; Type: INDEX; Schema: public; Owner: -
1900 CREATE INDEX index_container_requests_on_container_uuid ON public.container_requests USING btree (container_uuid);
1904 -- Name: index_container_requests_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1907 CREATE INDEX index_container_requests_on_modified_at_uuid ON public.container_requests USING btree (modified_at DESC, uuid);
1911 -- Name: index_container_requests_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1914 CREATE INDEX index_container_requests_on_owner_uuid ON public.container_requests USING btree (owner_uuid);
1918 -- Name: index_container_requests_on_requesting_container_uuid; Type: INDEX; Schema: public; Owner: -
1921 CREATE INDEX index_container_requests_on_requesting_container_uuid ON public.container_requests USING btree (requesting_container_uuid);
1925 -- Name: index_container_requests_on_uuid; Type: INDEX; Schema: public; Owner: -
1928 CREATE UNIQUE INDEX index_container_requests_on_uuid ON public.container_requests USING btree (uuid);
1932 -- Name: index_containers_on_auth_uuid; Type: INDEX; Schema: public; Owner: -
1935 CREATE INDEX index_containers_on_auth_uuid ON public.containers USING btree (auth_uuid);
1939 -- Name: index_containers_on_locked_by_uuid_and_priority; Type: INDEX; Schema: public; Owner: -
1942 CREATE INDEX index_containers_on_locked_by_uuid_and_priority ON public.containers USING btree (locked_by_uuid, priority);
1946 -- Name: index_containers_on_locked_by_uuid_and_uuid; Type: INDEX; Schema: public; Owner: -
1949 CREATE INDEX index_containers_on_locked_by_uuid_and_uuid ON public.containers USING btree (locked_by_uuid, uuid);
1953 -- Name: index_containers_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1956 CREATE INDEX index_containers_on_modified_at_uuid ON public.containers USING btree (modified_at DESC, uuid);
1960 -- Name: index_containers_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1963 CREATE INDEX index_containers_on_owner_uuid ON public.containers USING btree (owner_uuid);
1967 -- Name: index_containers_on_queued_state; Type: INDEX; Schema: public; Owner: -
1970 CREATE INDEX index_containers_on_queued_state ON public.containers USING btree (state, ((priority > 0)));
1974 -- Name: index_containers_on_reuse_columns; Type: INDEX; Schema: public; Owner: -
1977 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));
1981 -- Name: index_containers_on_runtime_status; Type: INDEX; Schema: public; Owner: -
1984 CREATE INDEX index_containers_on_runtime_status ON public.containers USING gin (runtime_status);
1988 -- Name: index_containers_on_secret_mounts_md5; Type: INDEX; Schema: public; Owner: -
1991 CREATE INDEX index_containers_on_secret_mounts_md5 ON public.containers USING btree (secret_mounts_md5);
1995 -- Name: index_containers_on_uuid; Type: INDEX; Schema: public; Owner: -
1998 CREATE UNIQUE INDEX index_containers_on_uuid ON public.containers USING btree (uuid);
2002 -- Name: index_groups_on_created_at; Type: INDEX; Schema: public; Owner: -
2005 CREATE INDEX index_groups_on_created_at ON public.groups USING btree (created_at);
2009 -- Name: index_groups_on_delete_at; Type: INDEX; Schema: public; Owner: -
2012 CREATE INDEX index_groups_on_delete_at ON public.groups USING btree (delete_at);
2016 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -
2019 CREATE INDEX index_groups_on_group_class ON public.groups USING btree (group_class);
2023 -- Name: index_groups_on_is_trashed; Type: INDEX; Schema: public; Owner: -
2026 CREATE INDEX index_groups_on_is_trashed ON public.groups USING btree (is_trashed);
2030 -- Name: index_groups_on_modified_at; Type: INDEX; Schema: public; Owner: -
2033 CREATE INDEX index_groups_on_modified_at ON public.groups USING btree (modified_at);
2037 -- Name: index_groups_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2040 CREATE INDEX index_groups_on_modified_at_uuid ON public.groups USING btree (modified_at DESC, uuid);
2044 -- Name: index_groups_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2047 CREATE INDEX index_groups_on_owner_uuid ON public.groups USING btree (owner_uuid);
2051 -- Name: index_groups_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
2054 CREATE UNIQUE INDEX index_groups_on_owner_uuid_and_name ON public.groups USING btree (owner_uuid, name) WHERE (is_trashed = false);
2058 -- Name: index_groups_on_trash_at; Type: INDEX; Schema: public; Owner: -
2061 CREATE INDEX index_groups_on_trash_at ON public.groups USING btree (trash_at);
2065 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -
2068 CREATE UNIQUE INDEX index_groups_on_uuid ON public.groups USING btree (uuid);
2072 -- Name: index_humans_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2075 CREATE INDEX index_humans_on_owner_uuid ON public.humans USING btree (owner_uuid);
2079 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -
2082 CREATE UNIQUE INDEX index_humans_on_uuid ON public.humans USING btree (uuid);
2086 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -
2089 CREATE INDEX index_job_tasks_on_created_at ON public.job_tasks USING btree (created_at);
2093 -- Name: index_job_tasks_on_created_by_job_task_uuid; Type: INDEX; Schema: public; Owner: -
2096 CREATE INDEX index_job_tasks_on_created_by_job_task_uuid ON public.job_tasks USING btree (created_by_job_task_uuid);
2100 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -
2103 CREATE INDEX index_job_tasks_on_job_uuid ON public.job_tasks USING btree (job_uuid);
2107 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -
2110 CREATE INDEX index_job_tasks_on_modified_at ON public.job_tasks USING btree (modified_at);
2114 -- Name: index_job_tasks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2117 CREATE INDEX index_job_tasks_on_owner_uuid ON public.job_tasks USING btree (owner_uuid);
2121 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -
2124 CREATE INDEX index_job_tasks_on_sequence ON public.job_tasks USING btree (sequence);
2128 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -
2131 CREATE INDEX index_job_tasks_on_success ON public.job_tasks USING btree (success);
2135 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -
2138 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON public.job_tasks USING btree (uuid);
2142 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -
2145 CREATE INDEX index_jobs_on_created_at ON public.jobs USING btree (created_at);
2149 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -
2152 CREATE INDEX index_jobs_on_finished_at ON public.jobs USING btree (finished_at);
2156 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2159 CREATE INDEX index_jobs_on_modified_at ON public.jobs USING btree (modified_at);
2163 -- Name: index_jobs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2166 CREATE INDEX index_jobs_on_modified_at_uuid ON public.jobs USING btree (modified_at DESC, uuid);
2170 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -
2173 CREATE INDEX index_jobs_on_output ON public.jobs USING btree (output);
2177 -- Name: index_jobs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2180 CREATE INDEX index_jobs_on_owner_uuid ON public.jobs USING btree (owner_uuid);
2184 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -
2187 CREATE INDEX index_jobs_on_script ON public.jobs USING btree (script);
2191 -- Name: index_jobs_on_script_parameters_digest; Type: INDEX; Schema: public; Owner: -
2194 CREATE INDEX index_jobs_on_script_parameters_digest ON public.jobs USING btree (script_parameters_digest);
2198 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -
2201 CREATE INDEX index_jobs_on_started_at ON public.jobs USING btree (started_at);
2205 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -
2208 CREATE UNIQUE INDEX index_jobs_on_submit_id ON public.jobs USING btree (submit_id);
2212 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -
2215 CREATE UNIQUE INDEX index_jobs_on_uuid ON public.jobs USING btree (uuid);
2219 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -
2222 CREATE INDEX index_keep_disks_on_filesystem_uuid ON public.keep_disks USING btree (filesystem_uuid);
2226 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -
2229 CREATE INDEX index_keep_disks_on_last_ping_at ON public.keep_disks USING btree (last_ping_at);
2233 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -
2236 CREATE INDEX index_keep_disks_on_node_uuid ON public.keep_disks USING btree (node_uuid);
2240 -- Name: index_keep_disks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2243 CREATE INDEX index_keep_disks_on_owner_uuid ON public.keep_disks USING btree (owner_uuid);
2247 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -
2250 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON public.keep_disks USING btree (uuid);
2254 -- Name: index_keep_services_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2257 CREATE INDEX index_keep_services_on_owner_uuid ON public.keep_services USING btree (owner_uuid);
2261 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -
2264 CREATE UNIQUE INDEX index_keep_services_on_uuid ON public.keep_services USING btree (uuid);
2268 -- Name: index_links_on_created_at; Type: INDEX; Schema: public; Owner: -
2271 CREATE INDEX index_links_on_created_at ON public.links USING btree (created_at);
2275 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -
2278 CREATE INDEX index_links_on_head_uuid ON public.links USING btree (head_uuid);
2282 -- Name: index_links_on_modified_at; Type: INDEX; Schema: public; Owner: -
2285 CREATE INDEX index_links_on_modified_at ON public.links USING btree (modified_at);
2289 -- Name: index_links_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2292 CREATE INDEX index_links_on_modified_at_uuid ON public.links USING btree (modified_at DESC, uuid);
2296 -- Name: index_links_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2299 CREATE INDEX index_links_on_owner_uuid ON public.links USING btree (owner_uuid);
2303 -- Name: index_links_on_substring_head_uuid; Type: INDEX; Schema: public; Owner: -
2306 CREATE INDEX index_links_on_substring_head_uuid ON public.links USING btree ("substring"((head_uuid)::text, 7, 5));
2310 -- Name: index_links_on_substring_tail_uuid; Type: INDEX; Schema: public; Owner: -
2313 CREATE INDEX index_links_on_substring_tail_uuid ON public.links USING btree ("substring"((tail_uuid)::text, 7, 5));
2317 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -
2320 CREATE INDEX index_links_on_tail_uuid ON public.links USING btree (tail_uuid);
2324 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -
2327 CREATE UNIQUE INDEX index_links_on_uuid ON public.links USING btree (uuid);
2331 -- Name: index_logs_on_created_at; Type: INDEX; Schema: public; Owner: -
2334 CREATE INDEX index_logs_on_created_at ON public.logs USING btree (created_at);
2338 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -
2341 CREATE INDEX index_logs_on_event_at ON public.logs USING btree (event_at);
2345 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -
2348 CREATE INDEX index_logs_on_event_type ON public.logs USING btree (event_type);
2352 -- Name: index_logs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2355 CREATE INDEX index_logs_on_modified_at ON public.logs USING btree (modified_at);
2359 -- Name: index_logs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2362 CREATE INDEX index_logs_on_modified_at_uuid ON public.logs USING btree (modified_at DESC, uuid);
2366 -- Name: index_logs_on_object_owner_uuid; Type: INDEX; Schema: public; Owner: -
2369 CREATE INDEX index_logs_on_object_owner_uuid ON public.logs USING btree (object_owner_uuid);
2373 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -
2376 CREATE INDEX index_logs_on_object_uuid ON public.logs USING btree (object_uuid);
2380 -- Name: index_logs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2383 CREATE INDEX index_logs_on_owner_uuid ON public.logs USING btree (owner_uuid);
2387 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -
2390 CREATE INDEX index_logs_on_summary ON public.logs USING btree (summary);
2394 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -
2397 CREATE UNIQUE INDEX index_logs_on_uuid ON public.logs USING btree (uuid);
2401 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -
2404 CREATE INDEX index_nodes_on_created_at ON public.nodes USING btree (created_at);
2408 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -
2411 CREATE INDEX index_nodes_on_hostname ON public.nodes USING btree (hostname);
2415 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -
2418 CREATE INDEX index_nodes_on_modified_at ON public.nodes USING btree (modified_at);
2422 -- Name: index_nodes_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2425 CREATE INDEX index_nodes_on_owner_uuid ON public.nodes USING btree (owner_uuid);
2429 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -
2432 CREATE UNIQUE INDEX index_nodes_on_slot_number ON public.nodes USING btree (slot_number);
2436 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -
2439 CREATE UNIQUE INDEX index_nodes_on_uuid ON public.nodes USING btree (uuid);
2443 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -
2446 CREATE INDEX index_pipeline_instances_on_created_at ON public.pipeline_instances USING btree (created_at);
2450 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -
2453 CREATE INDEX index_pipeline_instances_on_modified_at ON public.pipeline_instances USING btree (modified_at);
2457 -- Name: index_pipeline_instances_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2460 CREATE INDEX index_pipeline_instances_on_modified_at_uuid ON public.pipeline_instances USING btree (modified_at DESC, uuid);
2464 -- Name: index_pipeline_instances_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2467 CREATE INDEX index_pipeline_instances_on_owner_uuid ON public.pipeline_instances USING btree (owner_uuid);
2471 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -
2474 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON public.pipeline_instances USING btree (uuid);
2478 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -
2481 CREATE INDEX index_pipeline_templates_on_created_at ON public.pipeline_templates USING btree (created_at);
2485 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -
2488 CREATE INDEX index_pipeline_templates_on_modified_at ON public.pipeline_templates USING btree (modified_at);
2492 -- Name: index_pipeline_templates_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2495 CREATE INDEX index_pipeline_templates_on_modified_at_uuid ON public.pipeline_templates USING btree (modified_at DESC, uuid);
2499 -- Name: index_pipeline_templates_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2502 CREATE INDEX index_pipeline_templates_on_owner_uuid ON public.pipeline_templates USING btree (owner_uuid);
2506 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -
2509 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON public.pipeline_templates USING btree (uuid);
2513 -- Name: index_repositories_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2516 CREATE INDEX index_repositories_on_modified_at_uuid ON public.repositories USING btree (modified_at DESC, uuid);
2520 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -
2523 CREATE UNIQUE INDEX index_repositories_on_name ON public.repositories USING btree (name);
2527 -- Name: index_repositories_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2530 CREATE INDEX index_repositories_on_owner_uuid ON public.repositories USING btree (owner_uuid);
2534 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -
2537 CREATE UNIQUE INDEX index_repositories_on_uuid ON public.repositories USING btree (uuid);
2541 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -
2544 CREATE INDEX index_specimens_on_created_at ON public.specimens USING btree (created_at);
2548 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -
2551 CREATE INDEX index_specimens_on_modified_at ON public.specimens USING btree (modified_at);
2555 -- Name: index_specimens_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2558 CREATE INDEX index_specimens_on_owner_uuid ON public.specimens USING btree (owner_uuid);
2562 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -
2565 CREATE UNIQUE INDEX index_specimens_on_uuid ON public.specimens USING btree (uuid);
2569 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -
2572 CREATE INDEX index_traits_on_name ON public.traits USING btree (name);
2576 -- Name: index_traits_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2579 CREATE INDEX index_traits_on_owner_uuid ON public.traits USING btree (owner_uuid);
2583 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -
2586 CREATE UNIQUE INDEX index_traits_on_uuid ON public.traits USING btree (uuid);
2590 -- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: -
2593 CREATE INDEX index_users_on_created_at ON public.users USING btree (created_at);
2597 -- Name: index_users_on_modified_at; Type: INDEX; Schema: public; Owner: -
2600 CREATE INDEX index_users_on_modified_at ON public.users USING btree (modified_at);
2604 -- Name: index_users_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2607 CREATE INDEX index_users_on_modified_at_uuid ON public.users USING btree (modified_at DESC, uuid);
2611 -- Name: index_users_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2614 CREATE INDEX index_users_on_owner_uuid ON public.users USING btree (owner_uuid);
2618 -- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: -
2621 CREATE UNIQUE INDEX index_users_on_username ON public.users USING btree (username);
2625 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -
2628 CREATE UNIQUE INDEX index_users_on_uuid ON public.users USING btree (uuid);
2632 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -
2635 CREATE INDEX index_virtual_machines_on_hostname ON public.virtual_machines USING btree (hostname);
2639 -- Name: index_virtual_machines_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2642 CREATE INDEX index_virtual_machines_on_modified_at_uuid ON public.virtual_machines USING btree (modified_at DESC, uuid);
2646 -- Name: index_virtual_machines_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2649 CREATE INDEX index_virtual_machines_on_owner_uuid ON public.virtual_machines USING btree (owner_uuid);
2653 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -
2656 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON public.virtual_machines USING btree (uuid);
2660 -- Name: index_workflows_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2663 CREATE INDEX index_workflows_on_modified_at_uuid ON public.workflows USING btree (modified_at DESC, uuid);
2667 -- Name: index_workflows_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2670 CREATE INDEX index_workflows_on_owner_uuid ON public.workflows USING btree (owner_uuid);
2674 -- Name: index_workflows_on_uuid; Type: INDEX; Schema: public; Owner: -
2677 CREATE UNIQUE INDEX index_workflows_on_uuid ON public.workflows USING btree (uuid);
2681 -- Name: job_tasks_search_index; Type: INDEX; Schema: public; Owner: -
2684 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);
2688 -- Name: jobs_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2691 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)));
2695 -- Name: jobs_search_index; Type: INDEX; Schema: public; Owner: -
2698 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);
2702 -- Name: keep_disks_search_index; Type: INDEX; Schema: public; Owner: -
2705 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);
2709 -- Name: keep_services_search_index; Type: INDEX; Schema: public; Owner: -
2712 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);
2716 -- Name: links_index_on_properties; Type: INDEX; Schema: public; Owner: -
2719 CREATE INDEX links_index_on_properties ON public.links USING gin (properties);
2723 -- Name: links_search_index; Type: INDEX; Schema: public; Owner: -
2726 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);
2730 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -
2733 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);
2737 -- Name: logs_search_index; Type: INDEX; Schema: public; Owner: -
2740 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);
2744 -- Name: nodes_index_on_info; Type: INDEX; Schema: public; Owner: -
2747 CREATE INDEX nodes_index_on_info ON public.nodes USING gin (info);
2751 -- Name: nodes_index_on_properties; Type: INDEX; Schema: public; Owner: -
2754 CREATE INDEX nodes_index_on_properties ON public.nodes USING gin (properties);
2758 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -
2761 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);
2765 -- Name: permission_target_trashed; Type: INDEX; Schema: public; Owner: -
2768 CREATE INDEX permission_target_trashed ON public.materialized_permission_view USING btree (trashed, target_uuid);
2772 -- Name: permission_target_user_trashed_level; Type: INDEX; Schema: public; Owner: -
2775 CREATE INDEX permission_target_user_trashed_level ON public.materialized_permission_view USING btree (user_uuid, trashed, perm_level);
2779 -- Name: pipeline_instances_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2782 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)));
2786 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -
2789 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);
2793 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -
2796 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON public.pipeline_templates USING btree (owner_uuid, name);
2800 -- Name: pipeline_templates_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2803 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)));
2807 -- Name: pipeline_templates_search_index; Type: INDEX; Schema: public; Owner: -
2810 CREATE INDEX pipeline_templates_search_index ON public.pipeline_templates USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2814 -- Name: repositories_search_index; Type: INDEX; Schema: public; Owner: -
2817 CREATE INDEX repositories_search_index ON public.repositories USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2821 -- Name: specimens_search_index; Type: INDEX; Schema: public; Owner: -
2824 CREATE INDEX specimens_search_index ON public.specimens USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, material);
2828 -- Name: traits_search_index; Type: INDEX; Schema: public; Owner: -
2831 CREATE INDEX traits_search_index ON public.traits USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2835 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
2838 CREATE UNIQUE INDEX unique_schema_migrations ON public.schema_migrations USING btree (version);
2842 -- Name: users_search_index; Type: INDEX; Schema: public; Owner: -
2845 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);
2849 -- Name: virtual_machines_search_index; Type: INDEX; Schema: public; Owner: -
2852 CREATE INDEX virtual_machines_search_index ON public.virtual_machines USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname);
2856 -- Name: workflows_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2859 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)));
2863 -- Name: workflows_search_idx; Type: INDEX; Schema: public; Owner: -
2866 CREATE INDEX workflows_search_idx ON public.workflows USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2870 -- PostgreSQL database dump complete
2873 SET search_path TO "$user", public;
2875 INSERT INTO "schema_migrations" (version) VALUES