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 SET check_function_bodies = false;
9 SET client_min_messages = warning;
12 -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
15 CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
19 -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
22 -- COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
25 SET search_path = public, pg_catalog;
27 SET default_tablespace = '';
29 SET default_with_oids = false;
32 -- Name: api_client_authorizations; Type: TABLE; Schema: public; Owner: -
35 CREATE TABLE api_client_authorizations (
37 api_token character varying(255) NOT NULL,
38 api_client_id integer NOT NULL,
39 user_id integer NOT NULL,
40 created_by_ip_address character varying(255),
41 last_used_by_ip_address character varying(255),
42 last_used_at timestamp without time zone,
43 expires_at timestamp without time zone,
44 created_at timestamp without time zone NOT NULL,
45 updated_at timestamp without time zone NOT NULL,
46 default_owner_uuid character varying(255),
47 scopes text DEFAULT '["all"]'::text,
48 uuid character varying(255) NOT NULL
53 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
56 CREATE SEQUENCE api_client_authorizations_id_seq
65 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
68 ALTER SEQUENCE api_client_authorizations_id_seq OWNED BY api_client_authorizations.id;
72 -- Name: api_clients; Type: TABLE; Schema: public; Owner: -
75 CREATE TABLE api_clients (
77 uuid character varying(255),
78 owner_uuid character varying(255),
79 modified_by_client_uuid character varying(255),
80 modified_by_user_uuid character varying(255),
81 modified_at timestamp without time zone,
82 name character varying(255),
83 url_prefix character varying(255),
84 created_at timestamp without time zone NOT NULL,
85 updated_at timestamp without time zone NOT NULL,
86 is_trusted boolean DEFAULT false
91 -- Name: api_clients_id_seq; Type: SEQUENCE; Schema: public; Owner: -
94 CREATE SEQUENCE api_clients_id_seq
103 -- Name: api_clients_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
106 ALTER SEQUENCE api_clients_id_seq OWNED BY api_clients.id;
110 -- Name: authorized_keys; Type: TABLE; Schema: public; Owner: -
113 CREATE TABLE authorized_keys (
115 uuid character varying(255) NOT NULL,
116 owner_uuid character varying(255) NOT NULL,
117 modified_by_client_uuid character varying(255),
118 modified_by_user_uuid character varying(255),
119 modified_at timestamp without time zone,
120 name character varying(255),
121 key_type character varying(255),
122 authorized_user_uuid character varying(255),
124 expires_at timestamp without time zone,
125 created_at timestamp without time zone NOT NULL,
126 updated_at timestamp without time zone NOT NULL
131 -- Name: authorized_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: -
134 CREATE SEQUENCE authorized_keys_id_seq
143 -- Name: authorized_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
146 ALTER SEQUENCE authorized_keys_id_seq OWNED BY authorized_keys.id;
150 -- Name: collections; Type: TABLE; Schema: public; Owner: -
153 CREATE TABLE collections (
155 owner_uuid character varying(255),
156 created_at timestamp without time zone NOT NULL,
157 modified_by_client_uuid character varying(255),
158 modified_by_user_uuid character varying(255),
159 modified_at timestamp without time zone,
160 portable_data_hash character varying(255),
161 replication_desired integer,
162 replication_confirmed_at timestamp without time zone,
163 replication_confirmed integer,
164 updated_at timestamp without time zone NOT NULL,
165 uuid character varying(255),
167 name character varying(255),
168 description character varying(524288),
170 delete_at timestamp without time zone,
171 file_names character varying(8192),
172 trash_at timestamp without time zone,
173 is_trashed boolean DEFAULT false NOT NULL,
174 storage_classes_desired jsonb DEFAULT '["default"]'::jsonb,
175 storage_classes_confirmed jsonb DEFAULT '[]'::jsonb,
176 storage_classes_confirmed_at timestamp without time zone
181 -- Name: collections_id_seq; Type: SEQUENCE; Schema: public; Owner: -
184 CREATE SEQUENCE collections_id_seq
193 -- Name: collections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
196 ALTER SEQUENCE collections_id_seq OWNED BY collections.id;
200 -- Name: commit_ancestors; Type: TABLE; Schema: public; Owner: -
203 CREATE TABLE commit_ancestors (
205 repository_name character varying(255),
206 descendant character varying(255) NOT NULL,
207 ancestor character varying(255) NOT NULL,
208 "is" boolean DEFAULT false NOT NULL,
209 created_at timestamp without time zone NOT NULL,
210 updated_at timestamp without time zone NOT NULL
215 -- Name: commit_ancestors_id_seq; Type: SEQUENCE; Schema: public; Owner: -
218 CREATE SEQUENCE commit_ancestors_id_seq
227 -- Name: commit_ancestors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
230 ALTER SEQUENCE commit_ancestors_id_seq OWNED BY commit_ancestors.id;
234 -- Name: commits; Type: TABLE; Schema: public; Owner: -
237 CREATE TABLE commits (
239 repository_name character varying(255),
240 sha1 character varying(255),
241 message character varying(255),
242 created_at timestamp without time zone NOT NULL,
243 updated_at timestamp without time zone NOT NULL
248 -- Name: commits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
251 CREATE SEQUENCE commits_id_seq
260 -- Name: commits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
263 ALTER SEQUENCE commits_id_seq OWNED BY commits.id;
267 -- Name: container_requests; Type: TABLE; Schema: public; Owner: -
270 CREATE TABLE container_requests (
272 uuid character varying(255),
273 owner_uuid character varying(255),
274 created_at timestamp without time zone NOT NULL,
275 modified_at timestamp without time zone,
276 modified_by_client_uuid character varying(255),
277 modified_by_user_uuid character varying(255),
278 name character varying(255),
281 state character varying(255),
282 requesting_container_uuid character varying(255),
283 container_uuid character varying(255),
284 container_count_max integer,
286 runtime_constraints text,
287 container_image character varying(255),
289 cwd character varying(255),
291 output_path character varying(255),
293 expires_at timestamp without time zone,
295 updated_at timestamp without time zone NOT NULL,
296 container_count integer DEFAULT 0,
297 use_existing boolean DEFAULT true,
298 scheduling_parameters text,
299 output_uuid character varying(255),
300 log_uuid character varying(255),
301 output_name character varying(255) DEFAULT NULL::character varying,
302 output_ttl integer DEFAULT 0 NOT NULL
307 -- Name: container_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
310 CREATE SEQUENCE container_requests_id_seq
319 -- Name: container_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
322 ALTER SEQUENCE container_requests_id_seq OWNED BY container_requests.id;
326 -- Name: containers; Type: TABLE; Schema: public; Owner: -
329 CREATE TABLE containers (
331 uuid character varying(255),
332 owner_uuid character varying(255),
333 created_at timestamp without time zone NOT NULL,
334 modified_at timestamp without time zone,
335 modified_by_client_uuid character varying(255),
336 modified_by_user_uuid character varying(255),
337 state character varying(255),
338 started_at timestamp without time zone,
339 finished_at timestamp without time zone,
340 log character varying(255),
342 cwd character varying(255),
344 output_path character varying(255),
346 runtime_constraints text,
347 output character varying(255),
348 container_image character varying(255),
349 progress double precision,
351 updated_at timestamp without time zone NOT NULL,
353 auth_uuid character varying(255),
354 locked_by_uuid character varying(255),
355 scheduling_parameters text
360 -- Name: containers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
363 CREATE SEQUENCE containers_id_seq
372 -- Name: containers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
375 ALTER SEQUENCE containers_id_seq OWNED BY containers.id;
379 -- Name: groups; Type: TABLE; Schema: public; Owner: -
382 CREATE TABLE groups (
384 uuid character varying(255),
385 owner_uuid character varying(255),
386 created_at timestamp without time zone NOT NULL,
387 modified_by_client_uuid character varying(255),
388 modified_by_user_uuid character varying(255),
389 modified_at timestamp without time zone,
390 name character varying(255) NOT NULL,
391 description character varying(524288),
392 updated_at timestamp without time zone NOT NULL,
393 group_class character varying(255),
394 trash_at timestamp without time zone,
395 is_trashed boolean DEFAULT false NOT NULL,
396 delete_at timestamp without time zone
401 -- Name: groups_id_seq; Type: SEQUENCE; Schema: public; Owner: -
404 CREATE SEQUENCE groups_id_seq
413 -- Name: groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
416 ALTER SEQUENCE groups_id_seq OWNED BY groups.id;
420 -- Name: humans; Type: TABLE; Schema: public; Owner: -
423 CREATE TABLE humans (
425 uuid character varying(255) NOT NULL,
426 owner_uuid character varying(255) NOT NULL,
427 modified_by_client_uuid character varying(255),
428 modified_by_user_uuid character varying(255),
429 modified_at timestamp without time zone,
431 created_at timestamp without time zone NOT NULL,
432 updated_at timestamp without time zone NOT NULL
437 -- Name: humans_id_seq; Type: SEQUENCE; Schema: public; Owner: -
440 CREATE SEQUENCE humans_id_seq
449 -- Name: humans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
452 ALTER SEQUENCE humans_id_seq OWNED BY humans.id;
456 -- Name: job_tasks; Type: TABLE; Schema: public; Owner: -
459 CREATE TABLE job_tasks (
461 uuid character varying(255),
462 owner_uuid character varying(255),
463 modified_by_client_uuid character varying(255),
464 modified_by_user_uuid character varying(255),
465 modified_at timestamp without time zone,
466 job_uuid character varying(255),
470 progress double precision,
472 created_at timestamp without time zone NOT NULL,
473 updated_at timestamp without time zone NOT NULL,
474 created_by_job_task_uuid character varying(255),
476 started_at timestamp without time zone,
477 finished_at timestamp without time zone
482 -- Name: job_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
485 CREATE SEQUENCE job_tasks_id_seq
494 -- Name: job_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
497 ALTER SEQUENCE job_tasks_id_seq OWNED BY job_tasks.id;
501 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE; Schema: public; Owner: -
504 CREATE SEQUENCE job_tasks_qsequence_seq
513 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
516 ALTER SEQUENCE job_tasks_qsequence_seq OWNED BY job_tasks.qsequence;
520 -- Name: jobs; Type: TABLE; Schema: public; Owner: -
525 uuid character varying(255),
526 owner_uuid character varying(255),
527 modified_by_client_uuid character varying(255),
528 modified_by_user_uuid character varying(255),
529 modified_at timestamp without time zone,
530 submit_id character varying(255),
531 script character varying(255),
532 script_version character varying(255),
533 script_parameters text,
534 cancelled_by_client_uuid character varying(255),
535 cancelled_by_user_uuid character varying(255),
536 cancelled_at timestamp without time zone,
537 started_at timestamp without time zone,
538 finished_at timestamp without time zone,
541 output character varying(255),
542 created_at timestamp without time zone NOT NULL,
543 updated_at timestamp without time zone NOT NULL,
544 is_locked_by_uuid character varying(255),
545 log character varying(255),
547 runtime_constraints text,
548 nondeterministic boolean,
549 repository character varying(255),
550 supplied_script_version character varying(255),
551 docker_image_locator character varying(255),
552 priority integer DEFAULT 0 NOT NULL,
553 description character varying(524288),
554 state character varying(255),
555 arvados_sdk_version character varying(255),
557 script_parameters_digest character varying(255)
562 -- Name: jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
565 CREATE SEQUENCE jobs_id_seq
574 -- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
577 ALTER SEQUENCE jobs_id_seq OWNED BY jobs.id;
581 -- Name: keep_disks; Type: TABLE; Schema: public; Owner: -
584 CREATE TABLE keep_disks (
586 uuid character varying(255) NOT NULL,
587 owner_uuid character varying(255) NOT NULL,
588 modified_by_client_uuid character varying(255),
589 modified_by_user_uuid character varying(255),
590 modified_at timestamp without time zone,
591 ping_secret character varying(255) NOT NULL,
592 node_uuid character varying(255),
593 filesystem_uuid character varying(255),
596 is_readable boolean DEFAULT true NOT NULL,
597 is_writable boolean DEFAULT true NOT NULL,
598 last_read_at timestamp without time zone,
599 last_write_at timestamp without time zone,
600 last_ping_at timestamp without time zone,
601 created_at timestamp without time zone NOT NULL,
602 updated_at timestamp without time zone NOT NULL,
603 keep_service_uuid character varying(255)
608 -- Name: keep_disks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
611 CREATE SEQUENCE keep_disks_id_seq
620 -- Name: keep_disks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
623 ALTER SEQUENCE keep_disks_id_seq OWNED BY keep_disks.id;
627 -- Name: keep_services; Type: TABLE; Schema: public; Owner: -
630 CREATE TABLE keep_services (
632 uuid character varying(255) NOT NULL,
633 owner_uuid character varying(255) NOT NULL,
634 modified_by_client_uuid character varying(255),
635 modified_by_user_uuid character varying(255),
636 modified_at timestamp without time zone,
637 service_host character varying(255),
638 service_port integer,
639 service_ssl_flag boolean,
640 service_type character varying(255),
641 created_at timestamp without time zone NOT NULL,
642 updated_at timestamp without time zone NOT NULL,
643 read_only boolean DEFAULT false NOT NULL
648 -- Name: keep_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
651 CREATE SEQUENCE keep_services_id_seq
660 -- Name: keep_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
663 ALTER SEQUENCE keep_services_id_seq OWNED BY keep_services.id;
667 -- Name: links; Type: TABLE; Schema: public; Owner: -
672 uuid character varying(255),
673 owner_uuid character varying(255),
674 created_at timestamp without time zone NOT NULL,
675 modified_by_client_uuid character varying(255),
676 modified_by_user_uuid character varying(255),
677 modified_at timestamp without time zone,
678 tail_uuid character varying(255),
679 link_class character varying(255),
680 name character varying(255),
681 head_uuid character varying(255),
683 updated_at timestamp without time zone NOT NULL
688 -- Name: links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
691 CREATE SEQUENCE links_id_seq
700 -- Name: links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
703 ALTER SEQUENCE links_id_seq OWNED BY links.id;
707 -- Name: logs; Type: TABLE; Schema: public; Owner: -
712 uuid character varying(255),
713 owner_uuid character varying(255),
714 modified_by_client_uuid character varying(255),
715 modified_by_user_uuid character varying(255),
716 object_uuid character varying(255),
717 event_at timestamp without time zone,
718 event_type character varying(255),
721 created_at timestamp without time zone NOT NULL,
722 updated_at timestamp without time zone NOT NULL,
723 modified_at timestamp without time zone,
724 object_owner_uuid character varying(255)
729 -- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
732 CREATE SEQUENCE logs_id_seq
741 -- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
744 ALTER SEQUENCE logs_id_seq OWNED BY logs.id;
748 -- Name: users; Type: TABLE; Schema: public; Owner: -
753 uuid character varying(255),
754 owner_uuid character varying(255) NOT NULL,
755 created_at timestamp without time zone NOT NULL,
756 modified_by_client_uuid character varying(255),
757 modified_by_user_uuid character varying(255),
758 modified_at timestamp without time zone,
759 email character varying(255),
760 first_name character varying(255),
761 last_name character varying(255),
762 identity_url character varying(255),
765 updated_at timestamp without time zone NOT NULL,
766 default_owner_uuid character varying(255),
767 is_active boolean DEFAULT false,
768 username character varying(255)
773 -- Name: materialized_permission_view; Type: MATERIALIZED VIEW; Schema: public; Owner: -
776 CREATE MATERIALIZED VIEW materialized_permission_view AS
777 WITH RECURSIVE perm_value(name, val) AS (
778 VALUES ('can_read'::text,(1)::smallint), ('can_login'::text,1), ('can_write'::text,2), ('can_manage'::text,3)
779 ), perm_edges(tail_uuid, head_uuid, val, follow, trashed) AS (
780 SELECT links.tail_uuid,
783 ((pv.val = 3) OR (groups.uuid IS NOT NULL)) AS follow,
784 (0)::smallint AS trashed,
785 (0)::smallint AS followtrash
787 LEFT JOIN perm_value pv ON ((pv.name = (links.name)::text)))
788 LEFT JOIN groups ON (((pv.val < 3) AND ((groups.uuid)::text = (links.head_uuid)::text))))
789 WHERE ((links.link_class)::text = 'permission'::text)
791 SELECT groups.owner_uuid,
796 WHEN ((groups.trash_at IS NOT NULL) AND (groups.trash_at < clock_timestamp())) THEN 1
801 ), perm(val, follow, user_uuid, target_uuid, trashed) AS (
802 SELECT (3)::smallint AS val,
804 (users.uuid)::character varying(32) AS user_uuid,
805 (users.uuid)::character varying(32) AS target_uuid,
806 (0)::smallint AS trashed
809 SELECT (LEAST((perm_1.val)::integer, edges.val))::smallint AS val,
812 (edges.head_uuid)::character varying(32) AS target_uuid,
813 ((GREATEST((perm_1.trashed)::integer, edges.trashed) * edges.followtrash))::smallint AS trashed
815 JOIN perm_edges edges ON ((perm_1.follow AND ((edges.tail_uuid)::text = (perm_1.target_uuid)::text))))
817 SELECT perm.user_uuid,
819 max(perm.val) AS perm_level,
821 WHEN true THEN perm.target_uuid
822 ELSE NULL::character varying
823 END AS target_owner_uuid,
824 max(perm.trashed) AS trashed
826 GROUP BY perm.user_uuid, perm.target_uuid,
828 WHEN true THEN perm.target_uuid
829 ELSE NULL::character varying
835 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
840 uuid character varying(255),
841 owner_uuid character varying(255),
842 created_at timestamp without time zone NOT NULL,
843 modified_by_client_uuid character varying(255),
844 modified_by_user_uuid character varying(255),
845 modified_at timestamp without time zone,
847 hostname character varying(255),
848 domain character varying(255),
849 ip_address character varying(255),
850 first_ping_at timestamp without time zone,
851 last_ping_at timestamp without time zone,
853 updated_at timestamp without time zone NOT NULL,
855 job_uuid character varying(255)
860 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
863 CREATE SEQUENCE nodes_id_seq
872 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
875 ALTER SEQUENCE nodes_id_seq OWNED BY nodes.id;
879 -- Name: permission_refresh_lock; Type: TABLE; Schema: public; Owner: -
882 CREATE TABLE permission_refresh_lock (
888 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE; Schema: public; Owner: -
891 CREATE SEQUENCE permission_refresh_lock_id_seq
900 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
903 ALTER SEQUENCE permission_refresh_lock_id_seq OWNED BY permission_refresh_lock.id;
907 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -
910 CREATE TABLE pipeline_instances (
912 uuid character varying(255),
913 owner_uuid character varying(255),
914 created_at timestamp without time zone NOT NULL,
915 modified_by_client_uuid character varying(255),
916 modified_by_user_uuid character varying(255),
917 modified_at timestamp without time zone,
918 pipeline_template_uuid character varying(255),
919 name character varying(255),
921 updated_at timestamp without time zone NOT NULL,
923 state character varying(255),
924 components_summary text,
925 started_at timestamp without time zone,
926 finished_at timestamp without time zone,
927 description character varying(524288)
932 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
935 CREATE SEQUENCE pipeline_instances_id_seq
944 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
947 ALTER SEQUENCE pipeline_instances_id_seq OWNED BY pipeline_instances.id;
951 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -
954 CREATE TABLE pipeline_templates (
956 uuid character varying(255),
957 owner_uuid character varying(255),
958 created_at timestamp without time zone NOT NULL,
959 modified_by_client_uuid character varying(255),
960 modified_by_user_uuid character varying(255),
961 modified_at timestamp without time zone,
962 name character varying(255),
964 updated_at timestamp without time zone NOT NULL,
965 description character varying(524288)
970 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
973 CREATE SEQUENCE pipeline_templates_id_seq
982 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
985 ALTER SEQUENCE pipeline_templates_id_seq OWNED BY pipeline_templates.id;
989 -- Name: repositories; Type: TABLE; Schema: public; Owner: -
992 CREATE TABLE repositories (
994 uuid character varying(255) NOT NULL,
995 owner_uuid character varying(255) NOT NULL,
996 modified_by_client_uuid character varying(255),
997 modified_by_user_uuid character varying(255),
998 modified_at timestamp without time zone,
999 name character varying(255),
1000 created_at timestamp without time zone NOT NULL,
1001 updated_at timestamp without time zone NOT NULL
1006 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1009 CREATE SEQUENCE repositories_id_seq
1018 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1021 ALTER SEQUENCE repositories_id_seq OWNED BY repositories.id;
1025 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
1028 CREATE TABLE schema_migrations (
1029 version character varying(255) NOT NULL
1034 -- Name: specimens; Type: TABLE; Schema: public; Owner: -
1037 CREATE TABLE specimens (
1038 id integer NOT NULL,
1039 uuid character varying(255),
1040 owner_uuid character varying(255),
1041 created_at timestamp without time zone NOT NULL,
1042 modified_by_client_uuid character varying(255),
1043 modified_by_user_uuid character varying(255),
1044 modified_at timestamp without time zone,
1045 material character varying(255),
1046 updated_at timestamp without time zone NOT NULL,
1052 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1055 CREATE SEQUENCE specimens_id_seq
1064 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1067 ALTER SEQUENCE specimens_id_seq OWNED BY specimens.id;
1071 -- Name: traits; Type: TABLE; Schema: public; Owner: -
1074 CREATE TABLE traits (
1075 id integer NOT NULL,
1076 uuid character varying(255) NOT NULL,
1077 owner_uuid character varying(255) NOT NULL,
1078 modified_by_client_uuid character varying(255),
1079 modified_by_user_uuid character varying(255),
1080 modified_at timestamp without time zone,
1081 name character varying(255),
1083 created_at timestamp without time zone NOT NULL,
1084 updated_at timestamp without time zone NOT NULL
1089 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1092 CREATE SEQUENCE traits_id_seq
1101 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1104 ALTER SEQUENCE traits_id_seq OWNED BY traits.id;
1108 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1111 CREATE SEQUENCE users_id_seq
1120 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1123 ALTER SEQUENCE users_id_seq OWNED BY users.id;
1127 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -
1130 CREATE TABLE virtual_machines (
1131 id integer NOT NULL,
1132 uuid character varying(255) NOT NULL,
1133 owner_uuid character varying(255) NOT NULL,
1134 modified_by_client_uuid character varying(255),
1135 modified_by_user_uuid character varying(255),
1136 modified_at timestamp without time zone,
1137 hostname character varying(255),
1138 created_at timestamp without time zone NOT NULL,
1139 updated_at timestamp without time zone NOT NULL
1144 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1147 CREATE SEQUENCE virtual_machines_id_seq
1156 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1159 ALTER SEQUENCE virtual_machines_id_seq OWNED BY virtual_machines.id;
1163 -- Name: workflows; Type: TABLE; Schema: public; Owner: -
1166 CREATE TABLE workflows (
1167 id integer NOT NULL,
1168 uuid character varying(255),
1169 owner_uuid character varying(255),
1170 created_at timestamp without time zone NOT NULL,
1171 modified_at timestamp without time zone,
1172 modified_by_client_uuid character varying(255),
1173 modified_by_user_uuid character varying(255),
1174 name character varying(255),
1177 updated_at timestamp without time zone NOT NULL
1182 -- Name: workflows_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1185 CREATE SEQUENCE workflows_id_seq
1194 -- Name: workflows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1197 ALTER SEQUENCE workflows_id_seq OWNED BY workflows.id;
1201 -- Name: api_client_authorizations id; Type: DEFAULT; Schema: public; Owner: -
1204 ALTER TABLE ONLY api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('api_client_authorizations_id_seq'::regclass);
1208 -- Name: api_clients id; Type: DEFAULT; Schema: public; Owner: -
1211 ALTER TABLE ONLY api_clients ALTER COLUMN id SET DEFAULT nextval('api_clients_id_seq'::regclass);
1215 -- Name: authorized_keys id; Type: DEFAULT; Schema: public; Owner: -
1218 ALTER TABLE ONLY authorized_keys ALTER COLUMN id SET DEFAULT nextval('authorized_keys_id_seq'::regclass);
1222 -- Name: collections id; Type: DEFAULT; Schema: public; Owner: -
1225 ALTER TABLE ONLY collections ALTER COLUMN id SET DEFAULT nextval('collections_id_seq'::regclass);
1229 -- Name: commit_ancestors id; Type: DEFAULT; Schema: public; Owner: -
1232 ALTER TABLE ONLY commit_ancestors ALTER COLUMN id SET DEFAULT nextval('commit_ancestors_id_seq'::regclass);
1236 -- Name: commits id; Type: DEFAULT; Schema: public; Owner: -
1239 ALTER TABLE ONLY commits ALTER COLUMN id SET DEFAULT nextval('commits_id_seq'::regclass);
1243 -- Name: container_requests id; Type: DEFAULT; Schema: public; Owner: -
1246 ALTER TABLE ONLY container_requests ALTER COLUMN id SET DEFAULT nextval('container_requests_id_seq'::regclass);
1250 -- Name: containers id; Type: DEFAULT; Schema: public; Owner: -
1253 ALTER TABLE ONLY containers ALTER COLUMN id SET DEFAULT nextval('containers_id_seq'::regclass);
1257 -- Name: groups id; Type: DEFAULT; Schema: public; Owner: -
1260 ALTER TABLE ONLY groups ALTER COLUMN id SET DEFAULT nextval('groups_id_seq'::regclass);
1264 -- Name: humans id; Type: DEFAULT; Schema: public; Owner: -
1267 ALTER TABLE ONLY humans ALTER COLUMN id SET DEFAULT nextval('humans_id_seq'::regclass);
1271 -- Name: job_tasks id; Type: DEFAULT; Schema: public; Owner: -
1274 ALTER TABLE ONLY job_tasks ALTER COLUMN id SET DEFAULT nextval('job_tasks_id_seq'::regclass);
1278 -- Name: jobs id; Type: DEFAULT; Schema: public; Owner: -
1281 ALTER TABLE ONLY jobs ALTER COLUMN id SET DEFAULT nextval('jobs_id_seq'::regclass);
1285 -- Name: keep_disks id; Type: DEFAULT; Schema: public; Owner: -
1288 ALTER TABLE ONLY keep_disks ALTER COLUMN id SET DEFAULT nextval('keep_disks_id_seq'::regclass);
1292 -- Name: keep_services id; Type: DEFAULT; Schema: public; Owner: -
1295 ALTER TABLE ONLY keep_services ALTER COLUMN id SET DEFAULT nextval('keep_services_id_seq'::regclass);
1299 -- Name: links id; Type: DEFAULT; Schema: public; Owner: -
1302 ALTER TABLE ONLY links ALTER COLUMN id SET DEFAULT nextval('links_id_seq'::regclass);
1306 -- Name: logs id; Type: DEFAULT; Schema: public; Owner: -
1309 ALTER TABLE ONLY logs ALTER COLUMN id SET DEFAULT nextval('logs_id_seq'::regclass);
1313 -- Name: nodes id; Type: DEFAULT; Schema: public; Owner: -
1316 ALTER TABLE ONLY nodes ALTER COLUMN id SET DEFAULT nextval('nodes_id_seq'::regclass);
1320 -- Name: permission_refresh_lock id; Type: DEFAULT; Schema: public; Owner: -
1323 ALTER TABLE ONLY permission_refresh_lock ALTER COLUMN id SET DEFAULT nextval('permission_refresh_lock_id_seq'::regclass);
1327 -- Name: pipeline_instances id; Type: DEFAULT; Schema: public; Owner: -
1330 ALTER TABLE ONLY pipeline_instances ALTER COLUMN id SET DEFAULT nextval('pipeline_instances_id_seq'::regclass);
1334 -- Name: pipeline_templates id; Type: DEFAULT; Schema: public; Owner: -
1337 ALTER TABLE ONLY pipeline_templates ALTER COLUMN id SET DEFAULT nextval('pipeline_templates_id_seq'::regclass);
1341 -- Name: repositories id; Type: DEFAULT; Schema: public; Owner: -
1344 ALTER TABLE ONLY repositories ALTER COLUMN id SET DEFAULT nextval('repositories_id_seq'::regclass);
1348 -- Name: specimens id; Type: DEFAULT; Schema: public; Owner: -
1351 ALTER TABLE ONLY specimens ALTER COLUMN id SET DEFAULT nextval('specimens_id_seq'::regclass);
1355 -- Name: traits id; Type: DEFAULT; Schema: public; Owner: -
1358 ALTER TABLE ONLY traits ALTER COLUMN id SET DEFAULT nextval('traits_id_seq'::regclass);
1362 -- Name: users id; Type: DEFAULT; Schema: public; Owner: -
1365 ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
1369 -- Name: virtual_machines id; Type: DEFAULT; Schema: public; Owner: -
1372 ALTER TABLE ONLY virtual_machines ALTER COLUMN id SET DEFAULT nextval('virtual_machines_id_seq'::regclass);
1376 -- Name: workflows id; Type: DEFAULT; Schema: public; Owner: -
1379 ALTER TABLE ONLY workflows ALTER COLUMN id SET DEFAULT nextval('workflows_id_seq'::regclass);
1383 -- Name: api_client_authorizations api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1386 ALTER TABLE ONLY api_client_authorizations
1387 ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1391 -- Name: api_clients api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1394 ALTER TABLE ONLY api_clients
1395 ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1399 -- Name: authorized_keys authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1402 ALTER TABLE ONLY authorized_keys
1403 ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1407 -- Name: collections collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1410 ALTER TABLE ONLY collections
1411 ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1415 -- Name: commit_ancestors commit_ancestors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1418 ALTER TABLE ONLY commit_ancestors
1419 ADD CONSTRAINT commit_ancestors_pkey PRIMARY KEY (id);
1423 -- Name: commits commits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1426 ALTER TABLE ONLY commits
1427 ADD CONSTRAINT commits_pkey PRIMARY KEY (id);
1431 -- Name: container_requests container_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1434 ALTER TABLE ONLY container_requests
1435 ADD CONSTRAINT container_requests_pkey PRIMARY KEY (id);
1439 -- Name: containers containers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1442 ALTER TABLE ONLY containers
1443 ADD CONSTRAINT containers_pkey PRIMARY KEY (id);
1447 -- Name: groups groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1450 ALTER TABLE ONLY groups
1451 ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1455 -- Name: humans humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1458 ALTER TABLE ONLY humans
1459 ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1463 -- Name: job_tasks job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1466 ALTER TABLE ONLY job_tasks
1467 ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1471 -- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1474 ALTER TABLE ONLY jobs
1475 ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1479 -- Name: keep_disks keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1482 ALTER TABLE ONLY keep_disks
1483 ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1487 -- Name: keep_services keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1490 ALTER TABLE ONLY keep_services
1491 ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1495 -- Name: links links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1498 ALTER TABLE ONLY links
1499 ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1503 -- Name: logs logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1506 ALTER TABLE ONLY logs
1507 ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1511 -- Name: nodes nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1514 ALTER TABLE ONLY nodes
1515 ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1519 -- Name: permission_refresh_lock permission_refresh_lock_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1522 ALTER TABLE ONLY permission_refresh_lock
1523 ADD CONSTRAINT permission_refresh_lock_pkey PRIMARY KEY (id);
1527 -- Name: pipeline_instances pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1530 ALTER TABLE ONLY pipeline_instances
1531 ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1535 -- Name: pipeline_templates pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1538 ALTER TABLE ONLY pipeline_templates
1539 ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1543 -- Name: repositories repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1546 ALTER TABLE ONLY repositories
1547 ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1551 -- Name: specimens specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1554 ALTER TABLE ONLY specimens
1555 ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1559 -- Name: traits traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1562 ALTER TABLE ONLY traits
1563 ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1567 -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1570 ALTER TABLE ONLY users
1571 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1575 -- Name: virtual_machines virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1578 ALTER TABLE ONLY virtual_machines
1579 ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1583 -- Name: workflows workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1586 ALTER TABLE ONLY workflows
1587 ADD CONSTRAINT workflows_pkey PRIMARY KEY (id);
1591 -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -
1594 CREATE INDEX api_client_authorizations_search_index ON api_client_authorizations USING btree (api_token, created_by_ip_address, last_used_by_ip_address, default_owner_uuid, uuid);
1598 -- Name: api_clients_search_index; Type: INDEX; Schema: public; Owner: -
1601 CREATE INDEX api_clients_search_index ON api_clients USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, url_prefix);
1605 -- Name: authorized_keys_search_index; Type: INDEX; Schema: public; Owner: -
1608 CREATE INDEX authorized_keys_search_index ON authorized_keys USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, key_type, authorized_user_uuid);
1612 -- Name: collection_index_on_properties; Type: INDEX; Schema: public; Owner: -
1615 CREATE INDEX collection_index_on_properties ON collections USING gin (properties);
1619 -- Name: collections_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1622 CREATE INDEX collections_full_text_search_idx ON collections USING gin (to_tsvector('english'::regconfig, (((((((((((((((((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, ''::character varying))::text)));
1626 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -
1629 CREATE INDEX collections_search_index ON collections USING btree (owner_uuid, modified_by_client_uuid, modified_by_user_uuid, portable_data_hash, uuid, name);
1633 -- Name: container_requests_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1636 CREATE INDEX container_requests_full_text_search_idx ON container_requests USING gin (to_tsvector('english'::regconfig, (((((((((((((((((((((((((((((((((((((((((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) || (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)));
1640 -- Name: container_requests_search_index; Type: INDEX; Schema: public; Owner: -
1643 CREATE INDEX container_requests_search_index ON 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);
1647 -- Name: containers_search_index; Type: INDEX; Schema: public; Owner: -
1650 CREATE INDEX containers_search_index ON 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);
1654 -- Name: groups_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1657 CREATE INDEX groups_full_text_search_idx ON groups USING gin (to_tsvector('english'::regconfig, (((((((((((((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)));
1661 -- Name: groups_search_index; Type: INDEX; Schema: public; Owner: -
1664 CREATE INDEX groups_search_index ON groups USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, group_class);
1668 -- Name: humans_search_index; Type: INDEX; Schema: public; Owner: -
1671 CREATE INDEX humans_search_index ON humans USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid);
1675 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -
1678 CREATE INDEX index_api_client_authorizations_on_api_client_id ON api_client_authorizations USING btree (api_client_id);
1682 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -
1685 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON api_client_authorizations USING btree (api_token);
1689 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -
1692 CREATE INDEX index_api_client_authorizations_on_expires_at ON api_client_authorizations USING btree (expires_at);
1696 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -
1699 CREATE INDEX index_api_client_authorizations_on_user_id ON api_client_authorizations USING btree (user_id);
1703 -- Name: index_api_client_authorizations_on_uuid; Type: INDEX; Schema: public; Owner: -
1706 CREATE UNIQUE INDEX index_api_client_authorizations_on_uuid ON api_client_authorizations USING btree (uuid);
1710 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -
1713 CREATE INDEX index_api_clients_on_created_at ON api_clients USING btree (created_at);
1717 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -
1720 CREATE INDEX index_api_clients_on_modified_at ON api_clients USING btree (modified_at);
1724 -- Name: index_api_clients_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1727 CREATE INDEX index_api_clients_on_owner_uuid ON api_clients USING btree (owner_uuid);
1731 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -
1734 CREATE UNIQUE INDEX index_api_clients_on_uuid ON api_clients USING btree (uuid);
1738 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -
1741 CREATE INDEX index_authkeys_on_user_and_expires_at ON authorized_keys USING btree (authorized_user_uuid, expires_at);
1745 -- Name: index_authorized_keys_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1748 CREATE INDEX index_authorized_keys_on_owner_uuid ON authorized_keys USING btree (owner_uuid);
1752 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -
1755 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON authorized_keys USING btree (uuid);
1759 -- Name: index_collections_on_created_at; Type: INDEX; Schema: public; Owner: -
1762 CREATE INDEX index_collections_on_created_at ON collections USING btree (created_at);
1766 -- Name: index_collections_on_delete_at; Type: INDEX; Schema: public; Owner: -
1769 CREATE INDEX index_collections_on_delete_at ON collections USING btree (delete_at);
1773 -- Name: index_collections_on_is_trashed; Type: INDEX; Schema: public; Owner: -
1776 CREATE INDEX index_collections_on_is_trashed ON collections USING btree (is_trashed);
1780 -- Name: index_collections_on_modified_at; Type: INDEX; Schema: public; Owner: -
1783 CREATE INDEX index_collections_on_modified_at ON collections USING btree (modified_at);
1787 -- Name: index_collections_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1790 CREATE INDEX index_collections_on_modified_at_uuid ON collections USING btree (modified_at DESC, uuid);
1794 -- Name: index_collections_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1797 CREATE INDEX index_collections_on_owner_uuid ON collections USING btree (owner_uuid);
1801 -- Name: index_collections_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
1804 CREATE UNIQUE INDEX index_collections_on_owner_uuid_and_name ON collections USING btree (owner_uuid, name) WHERE (is_trashed = false);
1808 -- Name: index_collections_on_portable_data_hash; Type: INDEX; Schema: public; Owner: -
1811 CREATE INDEX index_collections_on_portable_data_hash ON collections USING btree (portable_data_hash);
1815 -- Name: index_collections_on_trash_at; Type: INDEX; Schema: public; Owner: -
1818 CREATE INDEX index_collections_on_trash_at ON collections USING btree (trash_at);
1822 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -
1825 CREATE UNIQUE INDEX index_collections_on_uuid ON collections USING btree (uuid);
1829 -- Name: index_commit_ancestors_on_descendant_and_ancestor; Type: INDEX; Schema: public; Owner: -
1832 CREATE UNIQUE INDEX index_commit_ancestors_on_descendant_and_ancestor ON commit_ancestors USING btree (descendant, ancestor);
1836 -- Name: index_commits_on_repository_name_and_sha1; Type: INDEX; Schema: public; Owner: -
1839 CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON commits USING btree (repository_name, sha1);
1843 -- Name: index_container_requests_on_container_uuid; Type: INDEX; Schema: public; Owner: -
1846 CREATE INDEX index_container_requests_on_container_uuid ON container_requests USING btree (container_uuid);
1850 -- Name: index_container_requests_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1853 CREATE INDEX index_container_requests_on_modified_at_uuid ON container_requests USING btree (modified_at DESC, uuid);
1857 -- Name: index_container_requests_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1860 CREATE INDEX index_container_requests_on_owner_uuid ON container_requests USING btree (owner_uuid);
1864 -- Name: index_container_requests_on_requesting_container_uuid; Type: INDEX; Schema: public; Owner: -
1867 CREATE INDEX index_container_requests_on_requesting_container_uuid ON container_requests USING btree (requesting_container_uuid);
1871 -- Name: index_container_requests_on_uuid; Type: INDEX; Schema: public; Owner: -
1874 CREATE UNIQUE INDEX index_container_requests_on_uuid ON container_requests USING btree (uuid);
1878 -- Name: index_containers_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1881 CREATE INDEX index_containers_on_modified_at_uuid ON containers USING btree (modified_at DESC, uuid);
1885 -- Name: index_containers_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1888 CREATE INDEX index_containers_on_owner_uuid ON containers USING btree (owner_uuid);
1892 -- Name: index_containers_on_uuid; Type: INDEX; Schema: public; Owner: -
1895 CREATE UNIQUE INDEX index_containers_on_uuid ON containers USING btree (uuid);
1899 -- Name: index_groups_on_created_at; Type: INDEX; Schema: public; Owner: -
1902 CREATE INDEX index_groups_on_created_at ON groups USING btree (created_at);
1906 -- Name: index_groups_on_delete_at; Type: INDEX; Schema: public; Owner: -
1909 CREATE INDEX index_groups_on_delete_at ON groups USING btree (delete_at);
1913 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -
1916 CREATE INDEX index_groups_on_group_class ON groups USING btree (group_class);
1920 -- Name: index_groups_on_is_trashed; Type: INDEX; Schema: public; Owner: -
1923 CREATE INDEX index_groups_on_is_trashed ON groups USING btree (is_trashed);
1927 -- Name: index_groups_on_modified_at; Type: INDEX; Schema: public; Owner: -
1930 CREATE INDEX index_groups_on_modified_at ON groups USING btree (modified_at);
1934 -- Name: index_groups_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1937 CREATE INDEX index_groups_on_modified_at_uuid ON groups USING btree (modified_at DESC, uuid);
1941 -- Name: index_groups_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1944 CREATE INDEX index_groups_on_owner_uuid ON groups USING btree (owner_uuid);
1948 -- Name: index_groups_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
1951 CREATE UNIQUE INDEX index_groups_on_owner_uuid_and_name ON groups USING btree (owner_uuid, name) WHERE (is_trashed = false);
1955 -- Name: index_groups_on_trash_at; Type: INDEX; Schema: public; Owner: -
1958 CREATE INDEX index_groups_on_trash_at ON groups USING btree (trash_at);
1962 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -
1965 CREATE UNIQUE INDEX index_groups_on_uuid ON groups USING btree (uuid);
1969 -- Name: index_humans_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1972 CREATE INDEX index_humans_on_owner_uuid ON humans USING btree (owner_uuid);
1976 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -
1979 CREATE UNIQUE INDEX index_humans_on_uuid ON humans USING btree (uuid);
1983 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -
1986 CREATE INDEX index_job_tasks_on_created_at ON job_tasks USING btree (created_at);
1990 -- Name: index_job_tasks_on_created_by_job_task_uuid; Type: INDEX; Schema: public; Owner: -
1993 CREATE INDEX index_job_tasks_on_created_by_job_task_uuid ON job_tasks USING btree (created_by_job_task_uuid);
1997 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -
2000 CREATE INDEX index_job_tasks_on_job_uuid ON job_tasks USING btree (job_uuid);
2004 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -
2007 CREATE INDEX index_job_tasks_on_modified_at ON job_tasks USING btree (modified_at);
2011 -- Name: index_job_tasks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2014 CREATE INDEX index_job_tasks_on_owner_uuid ON job_tasks USING btree (owner_uuid);
2018 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -
2021 CREATE INDEX index_job_tasks_on_sequence ON job_tasks USING btree (sequence);
2025 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -
2028 CREATE INDEX index_job_tasks_on_success ON job_tasks USING btree (success);
2032 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -
2035 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON job_tasks USING btree (uuid);
2039 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -
2042 CREATE INDEX index_jobs_on_created_at ON jobs USING btree (created_at);
2046 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -
2049 CREATE INDEX index_jobs_on_finished_at ON jobs USING btree (finished_at);
2053 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2056 CREATE INDEX index_jobs_on_modified_at ON jobs USING btree (modified_at);
2060 -- Name: index_jobs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2063 CREATE INDEX index_jobs_on_modified_at_uuid ON jobs USING btree (modified_at DESC, uuid);
2067 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -
2070 CREATE INDEX index_jobs_on_output ON jobs USING btree (output);
2074 -- Name: index_jobs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2077 CREATE INDEX index_jobs_on_owner_uuid ON jobs USING btree (owner_uuid);
2081 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -
2084 CREATE INDEX index_jobs_on_script ON jobs USING btree (script);
2088 -- Name: index_jobs_on_script_parameters_digest; Type: INDEX; Schema: public; Owner: -
2091 CREATE INDEX index_jobs_on_script_parameters_digest ON jobs USING btree (script_parameters_digest);
2095 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -
2098 CREATE INDEX index_jobs_on_started_at ON jobs USING btree (started_at);
2102 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -
2105 CREATE UNIQUE INDEX index_jobs_on_submit_id ON jobs USING btree (submit_id);
2109 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -
2112 CREATE UNIQUE INDEX index_jobs_on_uuid ON jobs USING btree (uuid);
2116 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -
2119 CREATE INDEX index_keep_disks_on_filesystem_uuid ON keep_disks USING btree (filesystem_uuid);
2123 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -
2126 CREATE INDEX index_keep_disks_on_last_ping_at ON keep_disks USING btree (last_ping_at);
2130 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -
2133 CREATE INDEX index_keep_disks_on_node_uuid ON keep_disks USING btree (node_uuid);
2137 -- Name: index_keep_disks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2140 CREATE INDEX index_keep_disks_on_owner_uuid ON keep_disks USING btree (owner_uuid);
2144 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -
2147 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON keep_disks USING btree (uuid);
2151 -- Name: index_keep_services_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2154 CREATE INDEX index_keep_services_on_owner_uuid ON keep_services USING btree (owner_uuid);
2158 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -
2161 CREATE UNIQUE INDEX index_keep_services_on_uuid ON keep_services USING btree (uuid);
2165 -- Name: index_links_on_created_at; Type: INDEX; Schema: public; Owner: -
2168 CREATE INDEX index_links_on_created_at ON links USING btree (created_at);
2172 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -
2175 CREATE INDEX index_links_on_head_uuid ON links USING btree (head_uuid);
2179 -- Name: index_links_on_modified_at; Type: INDEX; Schema: public; Owner: -
2182 CREATE INDEX index_links_on_modified_at ON links USING btree (modified_at);
2186 -- Name: index_links_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2189 CREATE INDEX index_links_on_modified_at_uuid ON links USING btree (modified_at DESC, uuid);
2193 -- Name: index_links_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2196 CREATE INDEX index_links_on_owner_uuid ON links USING btree (owner_uuid);
2200 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -
2203 CREATE INDEX index_links_on_tail_uuid ON links USING btree (tail_uuid);
2207 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -
2210 CREATE UNIQUE INDEX index_links_on_uuid ON links USING btree (uuid);
2214 -- Name: index_logs_on_created_at; Type: INDEX; Schema: public; Owner: -
2217 CREATE INDEX index_logs_on_created_at ON logs USING btree (created_at);
2221 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -
2224 CREATE INDEX index_logs_on_event_at ON logs USING btree (event_at);
2228 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -
2231 CREATE INDEX index_logs_on_event_type ON logs USING btree (event_type);
2235 -- Name: index_logs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2238 CREATE INDEX index_logs_on_modified_at ON logs USING btree (modified_at);
2242 -- Name: index_logs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2245 CREATE INDEX index_logs_on_modified_at_uuid ON logs USING btree (modified_at DESC, uuid);
2249 -- Name: index_logs_on_object_owner_uuid; Type: INDEX; Schema: public; Owner: -
2252 CREATE INDEX index_logs_on_object_owner_uuid ON logs USING btree (object_owner_uuid);
2256 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -
2259 CREATE INDEX index_logs_on_object_uuid ON logs USING btree (object_uuid);
2263 -- Name: index_logs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2266 CREATE INDEX index_logs_on_owner_uuid ON logs USING btree (owner_uuid);
2270 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -
2273 CREATE INDEX index_logs_on_summary ON logs USING btree (summary);
2277 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -
2280 CREATE UNIQUE INDEX index_logs_on_uuid ON logs USING btree (uuid);
2284 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -
2287 CREATE INDEX index_nodes_on_created_at ON nodes USING btree (created_at);
2291 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -
2294 CREATE INDEX index_nodes_on_hostname ON nodes USING btree (hostname);
2298 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -
2301 CREATE INDEX index_nodes_on_modified_at ON nodes USING btree (modified_at);
2305 -- Name: index_nodes_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2308 CREATE INDEX index_nodes_on_owner_uuid ON nodes USING btree (owner_uuid);
2312 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -
2315 CREATE UNIQUE INDEX index_nodes_on_slot_number ON nodes USING btree (slot_number);
2319 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -
2322 CREATE UNIQUE INDEX index_nodes_on_uuid ON nodes USING btree (uuid);
2326 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -
2329 CREATE INDEX index_pipeline_instances_on_created_at ON pipeline_instances USING btree (created_at);
2333 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -
2336 CREATE INDEX index_pipeline_instances_on_modified_at ON pipeline_instances USING btree (modified_at);
2340 -- Name: index_pipeline_instances_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2343 CREATE INDEX index_pipeline_instances_on_modified_at_uuid ON pipeline_instances USING btree (modified_at DESC, uuid);
2347 -- Name: index_pipeline_instances_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2350 CREATE INDEX index_pipeline_instances_on_owner_uuid ON pipeline_instances USING btree (owner_uuid);
2354 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -
2357 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON pipeline_instances USING btree (uuid);
2361 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -
2364 CREATE INDEX index_pipeline_templates_on_created_at ON pipeline_templates USING btree (created_at);
2368 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -
2371 CREATE INDEX index_pipeline_templates_on_modified_at ON pipeline_templates USING btree (modified_at);
2375 -- Name: index_pipeline_templates_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2378 CREATE INDEX index_pipeline_templates_on_modified_at_uuid ON pipeline_templates USING btree (modified_at DESC, uuid);
2382 -- Name: index_pipeline_templates_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2385 CREATE INDEX index_pipeline_templates_on_owner_uuid ON pipeline_templates USING btree (owner_uuid);
2389 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -
2392 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON pipeline_templates USING btree (uuid);
2396 -- Name: index_repositories_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2399 CREATE INDEX index_repositories_on_modified_at_uuid ON repositories USING btree (modified_at DESC, uuid);
2403 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -
2406 CREATE UNIQUE INDEX index_repositories_on_name ON repositories USING btree (name);
2410 -- Name: index_repositories_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2413 CREATE INDEX index_repositories_on_owner_uuid ON repositories USING btree (owner_uuid);
2417 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -
2420 CREATE UNIQUE INDEX index_repositories_on_uuid ON repositories USING btree (uuid);
2424 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -
2427 CREATE INDEX index_specimens_on_created_at ON specimens USING btree (created_at);
2431 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -
2434 CREATE INDEX index_specimens_on_modified_at ON specimens USING btree (modified_at);
2438 -- Name: index_specimens_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2441 CREATE INDEX index_specimens_on_owner_uuid ON specimens USING btree (owner_uuid);
2445 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -
2448 CREATE UNIQUE INDEX index_specimens_on_uuid ON specimens USING btree (uuid);
2452 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -
2455 CREATE INDEX index_traits_on_name ON traits USING btree (name);
2459 -- Name: index_traits_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2462 CREATE INDEX index_traits_on_owner_uuid ON traits USING btree (owner_uuid);
2466 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -
2469 CREATE UNIQUE INDEX index_traits_on_uuid ON traits USING btree (uuid);
2473 -- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: -
2476 CREATE INDEX index_users_on_created_at ON users USING btree (created_at);
2480 -- Name: index_users_on_modified_at; Type: INDEX; Schema: public; Owner: -
2483 CREATE INDEX index_users_on_modified_at ON users USING btree (modified_at);
2487 -- Name: index_users_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2490 CREATE INDEX index_users_on_modified_at_uuid ON users USING btree (modified_at DESC, uuid);
2494 -- Name: index_users_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2497 CREATE INDEX index_users_on_owner_uuid ON users USING btree (owner_uuid);
2501 -- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: -
2504 CREATE UNIQUE INDEX index_users_on_username ON users USING btree (username);
2508 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -
2511 CREATE UNIQUE INDEX index_users_on_uuid ON users USING btree (uuid);
2515 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -
2518 CREATE INDEX index_virtual_machines_on_hostname ON virtual_machines USING btree (hostname);
2522 -- Name: index_virtual_machines_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2525 CREATE INDEX index_virtual_machines_on_modified_at_uuid ON virtual_machines USING btree (modified_at DESC, uuid);
2529 -- Name: index_virtual_machines_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2532 CREATE INDEX index_virtual_machines_on_owner_uuid ON virtual_machines USING btree (owner_uuid);
2536 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -
2539 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON virtual_machines USING btree (uuid);
2543 -- Name: index_workflows_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2546 CREATE INDEX index_workflows_on_modified_at_uuid ON workflows USING btree (modified_at DESC, uuid);
2550 -- Name: index_workflows_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2553 CREATE INDEX index_workflows_on_owner_uuid ON workflows USING btree (owner_uuid);
2557 -- Name: index_workflows_on_uuid; Type: INDEX; Schema: public; Owner: -
2560 CREATE UNIQUE INDEX index_workflows_on_uuid ON workflows USING btree (uuid);
2564 -- Name: job_tasks_search_index; Type: INDEX; Schema: public; Owner: -
2567 CREATE INDEX job_tasks_search_index ON job_tasks USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, job_uuid, created_by_job_task_uuid);
2571 -- Name: jobs_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2574 CREATE INDEX jobs_full_text_search_idx ON jobs USING gin (to_tsvector('english'::regconfig, (((((((((((((((((((((((((((((((((((((((((((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))));
2578 -- Name: jobs_search_index; Type: INDEX; Schema: public; Owner: -
2581 CREATE INDEX jobs_search_index ON 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);
2585 -- Name: keep_disks_search_index; Type: INDEX; Schema: public; Owner: -
2588 CREATE INDEX keep_disks_search_index ON keep_disks USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, ping_secret, node_uuid, filesystem_uuid, keep_service_uuid);
2592 -- Name: keep_services_search_index; Type: INDEX; Schema: public; Owner: -
2595 CREATE INDEX keep_services_search_index ON keep_services USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, service_host, service_type);
2599 -- Name: links_search_index; Type: INDEX; Schema: public; Owner: -
2602 CREATE INDEX links_search_index ON links USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, tail_uuid, link_class, name, head_uuid);
2606 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -
2609 CREATE UNIQUE INDEX links_tail_name_unique_if_link_class_name ON links USING btree (tail_uuid, name) WHERE ((link_class)::text = 'name'::text);
2613 -- Name: logs_search_index; Type: INDEX; Schema: public; Owner: -
2616 CREATE INDEX logs_search_index ON logs USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, object_uuid, event_type, object_owner_uuid);
2620 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -
2623 CREATE INDEX nodes_search_index ON nodes USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname, domain, ip_address, job_uuid);
2627 -- Name: permission_target_trashed; Type: INDEX; Schema: public; Owner: -
2630 CREATE INDEX permission_target_trashed ON materialized_permission_view USING btree (trashed, target_uuid);
2634 -- Name: permission_target_user_trashed_level; Type: INDEX; Schema: public; Owner: -
2637 CREATE INDEX permission_target_user_trashed_level ON materialized_permission_view USING btree (user_uuid, trashed, perm_level);
2641 -- Name: pipeline_instances_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2644 CREATE INDEX pipeline_instances_full_text_search_idx ON pipeline_instances USING gin (to_tsvector('english'::regconfig, (((((((((((((((((((((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)));
2648 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -
2651 CREATE INDEX pipeline_instances_search_index ON pipeline_instances USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, pipeline_template_uuid, name, state);
2655 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -
2658 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON pipeline_templates USING btree (owner_uuid, name);
2662 -- Name: pipeline_templates_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2665 CREATE INDEX pipeline_templates_full_text_search_idx ON pipeline_templates USING gin (to_tsvector('english'::regconfig, (((((((((((((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)));
2669 -- Name: pipeline_templates_search_index; Type: INDEX; Schema: public; Owner: -
2672 CREATE INDEX pipeline_templates_search_index ON pipeline_templates USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2676 -- Name: repositories_search_index; Type: INDEX; Schema: public; Owner: -
2679 CREATE INDEX repositories_search_index ON repositories USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2683 -- Name: specimens_search_index; Type: INDEX; Schema: public; Owner: -
2686 CREATE INDEX specimens_search_index ON specimens USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, material);
2690 -- Name: traits_search_index; Type: INDEX; Schema: public; Owner: -
2693 CREATE INDEX traits_search_index ON traits USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2697 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
2700 CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
2704 -- Name: users_search_index; Type: INDEX; Schema: public; Owner: -
2707 CREATE INDEX users_search_index ON 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);
2711 -- Name: virtual_machines_search_index; Type: INDEX; Schema: public; Owner: -
2714 CREATE INDEX virtual_machines_search_index ON virtual_machines USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname);
2718 -- Name: workflows_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2721 CREATE INDEX workflows_full_text_search_idx ON workflows USING gin (to_tsvector('english'::regconfig, (((((((((((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))));
2725 -- Name: workflows_search_idx; Type: INDEX; Schema: public; Owner: -
2728 CREATE INDEX workflows_search_idx ON workflows USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2732 -- PostgreSQL database dump complete
2735 SET search_path TO "$user", public;
2737 INSERT INTO schema_migrations (version) VALUES ('20121016005009');
2739 INSERT INTO schema_migrations (version) VALUES ('20130105203021');
2741 INSERT INTO schema_migrations (version) VALUES ('20130105224358');
2743 INSERT INTO schema_migrations (version) VALUES ('20130105224618');
2745 INSERT INTO schema_migrations (version) VALUES ('20130107181109');
2747 INSERT INTO schema_migrations (version) VALUES ('20130107212832');
2749 INSERT INTO schema_migrations (version) VALUES ('20130109175700');
2751 INSERT INTO schema_migrations (version) VALUES ('20130109220548');
2753 INSERT INTO schema_migrations (version) VALUES ('20130113214204');
2755 INSERT INTO schema_migrations (version) VALUES ('20130116024233');
2757 INSERT INTO schema_migrations (version) VALUES ('20130116215213');
2759 INSERT INTO schema_migrations (version) VALUES ('20130118002239');
2761 INSERT INTO schema_migrations (version) VALUES ('20130122020042');
2763 INSERT INTO schema_migrations (version) VALUES ('20130122201442');
2765 INSERT INTO schema_migrations (version) VALUES ('20130122221616');
2767 INSERT INTO schema_migrations (version) VALUES ('20130123174514');
2769 INSERT INTO schema_migrations (version) VALUES ('20130123180224');
2771 INSERT INTO schema_migrations (version) VALUES ('20130123180228');
2773 INSERT INTO schema_migrations (version) VALUES ('20130125220425');
2775 INSERT INTO schema_migrations (version) VALUES ('20130128202518');
2777 INSERT INTO schema_migrations (version) VALUES ('20130128231343');
2779 INSERT INTO schema_migrations (version) VALUES ('20130130205749');
2781 INSERT INTO schema_migrations (version) VALUES ('20130203104818');
2783 INSERT INTO schema_migrations (version) VALUES ('20130203104824');
2785 INSERT INTO schema_migrations (version) VALUES ('20130203115329');
2787 INSERT INTO schema_migrations (version) VALUES ('20130207195855');
2789 INSERT INTO schema_migrations (version) VALUES ('20130218181504');
2791 INSERT INTO schema_migrations (version) VALUES ('20130226170000');
2793 INSERT INTO schema_migrations (version) VALUES ('20130313175417');
2795 INSERT INTO schema_migrations (version) VALUES ('20130315155820');
2797 INSERT INTO schema_migrations (version) VALUES ('20130315183626');
2799 INSERT INTO schema_migrations (version) VALUES ('20130315213205');
2801 INSERT INTO schema_migrations (version) VALUES ('20130318002138');
2803 INSERT INTO schema_migrations (version) VALUES ('20130319165853');
2805 INSERT INTO schema_migrations (version) VALUES ('20130319180730');
2807 INSERT INTO schema_migrations (version) VALUES ('20130319194637');
2809 INSERT INTO schema_migrations (version) VALUES ('20130319201431');
2811 INSERT INTO schema_migrations (version) VALUES ('20130319235957');
2813 INSERT INTO schema_migrations (version) VALUES ('20130320000107');
2815 INSERT INTO schema_migrations (version) VALUES ('20130326173804');
2817 INSERT INTO schema_migrations (version) VALUES ('20130326182917');
2819 INSERT INTO schema_migrations (version) VALUES ('20130415020241');
2821 INSERT INTO schema_migrations (version) VALUES ('20130425024459');
2823 INSERT INTO schema_migrations (version) VALUES ('20130425214427');
2825 INSERT INTO schema_migrations (version) VALUES ('20130523060112');
2827 INSERT INTO schema_migrations (version) VALUES ('20130523060213');
2829 INSERT INTO schema_migrations (version) VALUES ('20130524042319');
2831 INSERT INTO schema_migrations (version) VALUES ('20130528134100');
2833 INSERT INTO schema_migrations (version) VALUES ('20130606183519');
2835 INSERT INTO schema_migrations (version) VALUES ('20130608053730');
2837 INSERT INTO schema_migrations (version) VALUES ('20130610202538');
2839 INSERT INTO schema_migrations (version) VALUES ('20130611163736');
2841 INSERT INTO schema_migrations (version) VALUES ('20130612042554');
2843 INSERT INTO schema_migrations (version) VALUES ('20130617150007');
2845 INSERT INTO schema_migrations (version) VALUES ('20130626002829');
2847 INSERT INTO schema_migrations (version) VALUES ('20130626022810');
2849 INSERT INTO schema_migrations (version) VALUES ('20130627154537');
2851 INSERT INTO schema_migrations (version) VALUES ('20130627184333');
2853 INSERT INTO schema_migrations (version) VALUES ('20130708163414');
2855 INSERT INTO schema_migrations (version) VALUES ('20130708182912');
2857 INSERT INTO schema_migrations (version) VALUES ('20130708185153');
2859 INSERT INTO schema_migrations (version) VALUES ('20130724153034');
2861 INSERT INTO schema_migrations (version) VALUES ('20131007180607');
2863 INSERT INTO schema_migrations (version) VALUES ('20140117231056');
2865 INSERT INTO schema_migrations (version) VALUES ('20140124222114');
2867 INSERT INTO schema_migrations (version) VALUES ('20140129184311');
2869 INSERT INTO schema_migrations (version) VALUES ('20140317135600');
2871 INSERT INTO schema_migrations (version) VALUES ('20140319160547');
2873 INSERT INTO schema_migrations (version) VALUES ('20140321191343');
2875 INSERT INTO schema_migrations (version) VALUES ('20140324024606');
2877 INSERT INTO schema_migrations (version) VALUES ('20140325175653');
2879 INSERT INTO schema_migrations (version) VALUES ('20140402001908');
2881 INSERT INTO schema_migrations (version) VALUES ('20140407184311');
2883 INSERT INTO schema_migrations (version) VALUES ('20140421140924');
2885 INSERT INTO schema_migrations (version) VALUES ('20140421151939');
2887 INSERT INTO schema_migrations (version) VALUES ('20140421151940');
2889 INSERT INTO schema_migrations (version) VALUES ('20140422011506');
2891 INSERT INTO schema_migrations (version) VALUES ('20140423132913');
2893 INSERT INTO schema_migrations (version) VALUES ('20140423133559');
2895 INSERT INTO schema_migrations (version) VALUES ('20140501165548');
2897 INSERT INTO schema_migrations (version) VALUES ('20140519205916');
2899 INSERT INTO schema_migrations (version) VALUES ('20140527152921');
2901 INSERT INTO schema_migrations (version) VALUES ('20140530200539');
2903 INSERT INTO schema_migrations (version) VALUES ('20140601022548');
2905 INSERT INTO schema_migrations (version) VALUES ('20140602143352');
2907 INSERT INTO schema_migrations (version) VALUES ('20140607150616');
2909 INSERT INTO schema_migrations (version) VALUES ('20140611173003');
2911 INSERT INTO schema_migrations (version) VALUES ('20140627210837');
2913 INSERT INTO schema_migrations (version) VALUES ('20140709172343');
2915 INSERT INTO schema_migrations (version) VALUES ('20140714184006');
2917 INSERT INTO schema_migrations (version) VALUES ('20140811184643');
2919 INSERT INTO schema_migrations (version) VALUES ('20140817035914');
2921 INSERT INTO schema_migrations (version) VALUES ('20140818125735');
2923 INSERT INTO schema_migrations (version) VALUES ('20140826180337');
2925 INSERT INTO schema_migrations (version) VALUES ('20140828141043');
2927 INSERT INTO schema_migrations (version) VALUES ('20140909183946');
2929 INSERT INTO schema_migrations (version) VALUES ('20140911221252');
2931 INSERT INTO schema_migrations (version) VALUES ('20140918141529');
2933 INSERT INTO schema_migrations (version) VALUES ('20140918153541');
2935 INSERT INTO schema_migrations (version) VALUES ('20140918153705');
2937 INSERT INTO schema_migrations (version) VALUES ('20140924091559');
2939 INSERT INTO schema_migrations (version) VALUES ('20141111133038');
2941 INSERT INTO schema_migrations (version) VALUES ('20141208164553');
2943 INSERT INTO schema_migrations (version) VALUES ('20141208174553');
2945 INSERT INTO schema_migrations (version) VALUES ('20141208174653');
2947 INSERT INTO schema_migrations (version) VALUES ('20141208185217');
2949 INSERT INTO schema_migrations (version) VALUES ('20150122175935');
2951 INSERT INTO schema_migrations (version) VALUES ('20150123142953');
2953 INSERT INTO schema_migrations (version) VALUES ('20150203180223');
2955 INSERT INTO schema_migrations (version) VALUES ('20150206210804');
2957 INSERT INTO schema_migrations (version) VALUES ('20150206230342');
2959 INSERT INTO schema_migrations (version) VALUES ('20150216193428');
2961 INSERT INTO schema_migrations (version) VALUES ('20150303210106');
2963 INSERT INTO schema_migrations (version) VALUES ('20150312151136');
2965 INSERT INTO schema_migrations (version) VALUES ('20150317132720');
2967 INSERT INTO schema_migrations (version) VALUES ('20150324152204');
2969 INSERT INTO schema_migrations (version) VALUES ('20150423145759');
2971 INSERT INTO schema_migrations (version) VALUES ('20150512193020');
2973 INSERT INTO schema_migrations (version) VALUES ('20150526180251');
2975 INSERT INTO schema_migrations (version) VALUES ('20151202151426');
2977 INSERT INTO schema_migrations (version) VALUES ('20151215134304');
2979 INSERT INTO schema_migrations (version) VALUES ('20151229214707');
2981 INSERT INTO schema_migrations (version) VALUES ('20160208210629');
2983 INSERT INTO schema_migrations (version) VALUES ('20160209155729');
2985 INSERT INTO schema_migrations (version) VALUES ('20160324144017');
2987 INSERT INTO schema_migrations (version) VALUES ('20160506175108');
2989 INSERT INTO schema_migrations (version) VALUES ('20160509143250');
2991 INSERT INTO schema_migrations (version) VALUES ('20160808151559');
2993 INSERT INTO schema_migrations (version) VALUES ('20160819195557');
2995 INSERT INTO schema_migrations (version) VALUES ('20160819195725');
2997 INSERT INTO schema_migrations (version) VALUES ('20160901210110');
2999 INSERT INTO schema_migrations (version) VALUES ('20160909181442');
3001 INSERT INTO schema_migrations (version) VALUES ('20160926194129');
3003 INSERT INTO schema_migrations (version) VALUES ('20161019171346');
3005 INSERT INTO schema_migrations (version) VALUES ('20161111143147');
3007 INSERT INTO schema_migrations (version) VALUES ('20161115171221');
3009 INSERT INTO schema_migrations (version) VALUES ('20161115174218');
3011 INSERT INTO schema_migrations (version) VALUES ('20161213172944');
3013 INSERT INTO schema_migrations (version) VALUES ('20161222153434');
3015 INSERT INTO schema_migrations (version) VALUES ('20161223090712');
3017 INSERT INTO schema_migrations (version) VALUES ('20170102153111');
3019 INSERT INTO schema_migrations (version) VALUES ('20170105160301');
3021 INSERT INTO schema_migrations (version) VALUES ('20170105160302');
3023 INSERT INTO schema_migrations (version) VALUES ('20170216170823');
3025 INSERT INTO schema_migrations (version) VALUES ('20170301225558');
3027 INSERT INTO schema_migrations (version) VALUES ('20170319063406');
3029 INSERT INTO schema_migrations (version) VALUES ('20170328215436');
3031 INSERT INTO schema_migrations (version) VALUES ('20170330012505');
3033 INSERT INTO schema_migrations (version) VALUES ('20170419173031');
3035 INSERT INTO schema_migrations (version) VALUES ('20170419173712');
3037 INSERT INTO schema_migrations (version) VALUES ('20170419175801');
3039 INSERT INTO schema_migrations (version) VALUES ('20170628185847');
3041 INSERT INTO schema_migrations (version) VALUES ('20170704160233');
3043 INSERT INTO schema_migrations (version) VALUES ('20170706141334');
3045 INSERT INTO schema_migrations (version) VALUES ('20170824202826');
3047 INSERT INTO schema_migrations (version) VALUES ('20170906224040');
3049 INSERT INTO schema_migrations (version) VALUES ('20171027183824');
3051 INSERT INTO schema_migrations (version) VALUES ('20171208203841');
3053 INSERT INTO schema_migrations (version) VALUES ('20171212153352');
3055 INSERT INTO schema_migrations (version) VALUES ('20180216203422');