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
178 -- Name: collections_id_seq; Type: SEQUENCE; Schema: public; Owner: -
181 CREATE SEQUENCE collections_id_seq
190 -- Name: collections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
193 ALTER SEQUENCE collections_id_seq OWNED BY collections.id;
197 -- Name: commit_ancestors; Type: TABLE; Schema: public; Owner: -
200 CREATE TABLE commit_ancestors (
202 repository_name character varying(255),
203 descendant character varying(255) NOT NULL,
204 ancestor character varying(255) NOT NULL,
205 "is" boolean DEFAULT false NOT NULL,
206 created_at timestamp without time zone NOT NULL,
207 updated_at timestamp without time zone NOT NULL
212 -- Name: commit_ancestors_id_seq; Type: SEQUENCE; Schema: public; Owner: -
215 CREATE SEQUENCE commit_ancestors_id_seq
224 -- Name: commit_ancestors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
227 ALTER SEQUENCE commit_ancestors_id_seq OWNED BY commit_ancestors.id;
231 -- Name: commits; Type: TABLE; Schema: public; Owner: -
234 CREATE TABLE commits (
236 repository_name character varying(255),
237 sha1 character varying(255),
238 message character varying(255),
239 created_at timestamp without time zone NOT NULL,
240 updated_at timestamp without time zone NOT NULL
245 -- Name: commits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
248 CREATE SEQUENCE commits_id_seq
257 -- Name: commits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
260 ALTER SEQUENCE commits_id_seq OWNED BY commits.id;
264 -- Name: container_requests; Type: TABLE; Schema: public; Owner: -
267 CREATE TABLE container_requests (
269 uuid character varying(255),
270 owner_uuid character varying(255),
271 created_at timestamp without time zone NOT NULL,
272 modified_at timestamp without time zone,
273 modified_by_client_uuid character varying(255),
274 modified_by_user_uuid character varying(255),
275 name character varying(255),
278 state character varying(255),
279 requesting_container_uuid character varying(255),
280 container_uuid character varying(255),
281 container_count_max integer,
283 runtime_constraints text,
284 container_image character varying(255),
286 cwd character varying(255),
288 output_path character varying(255),
290 expires_at timestamp without time zone,
292 updated_at timestamp without time zone NOT NULL,
293 container_count integer DEFAULT 0,
294 use_existing boolean DEFAULT true,
295 scheduling_parameters text,
296 output_uuid character varying(255),
297 log_uuid character varying(255),
298 output_name character varying(255) DEFAULT NULL::character varying,
299 output_ttl integer DEFAULT 0 NOT NULL
304 -- Name: container_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
307 CREATE SEQUENCE container_requests_id_seq
316 -- Name: container_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
319 ALTER SEQUENCE container_requests_id_seq OWNED BY container_requests.id;
323 -- Name: containers; Type: TABLE; Schema: public; Owner: -
326 CREATE TABLE containers (
328 uuid character varying(255),
329 owner_uuid character varying(255),
330 created_at timestamp without time zone NOT NULL,
331 modified_at timestamp without time zone,
332 modified_by_client_uuid character varying(255),
333 modified_by_user_uuid character varying(255),
334 state character varying(255),
335 started_at timestamp without time zone,
336 finished_at timestamp without time zone,
337 log character varying(255),
339 cwd character varying(255),
341 output_path character varying(255),
343 runtime_constraints text,
344 output character varying(255),
345 container_image character varying(255),
346 progress double precision,
348 updated_at timestamp without time zone NOT NULL,
350 auth_uuid character varying(255),
351 locked_by_uuid character varying(255),
352 scheduling_parameters text
357 -- Name: containers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
360 CREATE SEQUENCE containers_id_seq
369 -- Name: containers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
372 ALTER SEQUENCE containers_id_seq OWNED BY containers.id;
376 -- Name: groups; Type: TABLE; Schema: public; Owner: -
379 CREATE TABLE groups (
381 uuid character varying(255),
382 owner_uuid character varying(255),
383 created_at timestamp without time zone NOT NULL,
384 modified_by_client_uuid character varying(255),
385 modified_by_user_uuid character varying(255),
386 modified_at timestamp without time zone,
387 name character varying(255) NOT NULL,
388 description character varying(524288),
389 updated_at timestamp without time zone NOT NULL,
390 group_class character varying(255),
391 trash_at timestamp without time zone,
392 is_trashed boolean DEFAULT false NOT NULL,
393 delete_at timestamp without time zone
398 -- Name: groups_id_seq; Type: SEQUENCE; Schema: public; Owner: -
401 CREATE SEQUENCE groups_id_seq
410 -- Name: groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
413 ALTER SEQUENCE groups_id_seq OWNED BY groups.id;
417 -- Name: humans; Type: TABLE; Schema: public; Owner: -
420 CREATE TABLE humans (
422 uuid character varying(255) NOT NULL,
423 owner_uuid character varying(255) NOT NULL,
424 modified_by_client_uuid character varying(255),
425 modified_by_user_uuid character varying(255),
426 modified_at timestamp without time zone,
428 created_at timestamp without time zone NOT NULL,
429 updated_at timestamp without time zone NOT NULL
434 -- Name: humans_id_seq; Type: SEQUENCE; Schema: public; Owner: -
437 CREATE SEQUENCE humans_id_seq
446 -- Name: humans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
449 ALTER SEQUENCE humans_id_seq OWNED BY humans.id;
453 -- Name: job_tasks; Type: TABLE; Schema: public; Owner: -
456 CREATE TABLE job_tasks (
458 uuid character varying(255),
459 owner_uuid character varying(255),
460 modified_by_client_uuid character varying(255),
461 modified_by_user_uuid character varying(255),
462 modified_at timestamp without time zone,
463 job_uuid character varying(255),
467 progress double precision,
469 created_at timestamp without time zone NOT NULL,
470 updated_at timestamp without time zone NOT NULL,
471 created_by_job_task_uuid character varying(255),
473 started_at timestamp without time zone,
474 finished_at timestamp without time zone
479 -- Name: job_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
482 CREATE SEQUENCE job_tasks_id_seq
491 -- Name: job_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
494 ALTER SEQUENCE job_tasks_id_seq OWNED BY job_tasks.id;
498 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE; Schema: public; Owner: -
501 CREATE SEQUENCE job_tasks_qsequence_seq
510 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
513 ALTER SEQUENCE job_tasks_qsequence_seq OWNED BY job_tasks.qsequence;
517 -- Name: jobs; Type: TABLE; Schema: public; Owner: -
522 uuid character varying(255),
523 owner_uuid character varying(255),
524 modified_by_client_uuid character varying(255),
525 modified_by_user_uuid character varying(255),
526 modified_at timestamp without time zone,
527 submit_id character varying(255),
528 script character varying(255),
529 script_version character varying(255),
530 script_parameters text,
531 cancelled_by_client_uuid character varying(255),
532 cancelled_by_user_uuid character varying(255),
533 cancelled_at timestamp without time zone,
534 started_at timestamp without time zone,
535 finished_at timestamp without time zone,
538 output character varying(255),
539 created_at timestamp without time zone NOT NULL,
540 updated_at timestamp without time zone NOT NULL,
541 is_locked_by_uuid character varying(255),
542 log character varying(255),
544 runtime_constraints text,
545 nondeterministic boolean,
546 repository character varying(255),
547 supplied_script_version character varying(255),
548 docker_image_locator character varying(255),
549 priority integer DEFAULT 0 NOT NULL,
550 description character varying(524288),
551 state character varying(255),
552 arvados_sdk_version character varying(255),
554 script_parameters_digest character varying(255)
559 -- Name: jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
562 CREATE SEQUENCE jobs_id_seq
571 -- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
574 ALTER SEQUENCE jobs_id_seq OWNED BY jobs.id;
578 -- Name: keep_disks; Type: TABLE; Schema: public; Owner: -
581 CREATE TABLE keep_disks (
583 uuid character varying(255) NOT NULL,
584 owner_uuid character varying(255) NOT NULL,
585 modified_by_client_uuid character varying(255),
586 modified_by_user_uuid character varying(255),
587 modified_at timestamp without time zone,
588 ping_secret character varying(255) NOT NULL,
589 node_uuid character varying(255),
590 filesystem_uuid character varying(255),
593 is_readable boolean DEFAULT true NOT NULL,
594 is_writable boolean DEFAULT true NOT NULL,
595 last_read_at timestamp without time zone,
596 last_write_at timestamp without time zone,
597 last_ping_at timestamp without time zone,
598 created_at timestamp without time zone NOT NULL,
599 updated_at timestamp without time zone NOT NULL,
600 keep_service_uuid character varying(255)
605 -- Name: keep_disks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
608 CREATE SEQUENCE keep_disks_id_seq
617 -- Name: keep_disks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
620 ALTER SEQUENCE keep_disks_id_seq OWNED BY keep_disks.id;
624 -- Name: keep_services; Type: TABLE; Schema: public; Owner: -
627 CREATE TABLE keep_services (
629 uuid character varying(255) NOT NULL,
630 owner_uuid character varying(255) NOT NULL,
631 modified_by_client_uuid character varying(255),
632 modified_by_user_uuid character varying(255),
633 modified_at timestamp without time zone,
634 service_host character varying(255),
635 service_port integer,
636 service_ssl_flag boolean,
637 service_type character varying(255),
638 created_at timestamp without time zone NOT NULL,
639 updated_at timestamp without time zone NOT NULL,
640 read_only boolean DEFAULT false NOT NULL
645 -- Name: keep_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
648 CREATE SEQUENCE keep_services_id_seq
657 -- Name: keep_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
660 ALTER SEQUENCE keep_services_id_seq OWNED BY keep_services.id;
664 -- Name: links; Type: TABLE; Schema: public; Owner: -
669 uuid character varying(255),
670 owner_uuid character varying(255),
671 created_at timestamp without time zone NOT NULL,
672 modified_by_client_uuid character varying(255),
673 modified_by_user_uuid character varying(255),
674 modified_at timestamp without time zone,
675 tail_uuid character varying(255),
676 link_class character varying(255),
677 name character varying(255),
678 head_uuid character varying(255),
680 updated_at timestamp without time zone NOT NULL
685 -- Name: links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
688 CREATE SEQUENCE links_id_seq
697 -- Name: links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
700 ALTER SEQUENCE links_id_seq OWNED BY links.id;
704 -- Name: logs; Type: TABLE; Schema: public; Owner: -
709 uuid character varying(255),
710 owner_uuid character varying(255),
711 modified_by_client_uuid character varying(255),
712 modified_by_user_uuid character varying(255),
713 object_uuid character varying(255),
714 event_at timestamp without time zone,
715 event_type character varying(255),
718 created_at timestamp without time zone NOT NULL,
719 updated_at timestamp without time zone NOT NULL,
720 modified_at timestamp without time zone,
721 object_owner_uuid character varying(255)
726 -- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
729 CREATE SEQUENCE logs_id_seq
738 -- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
741 ALTER SEQUENCE logs_id_seq OWNED BY logs.id;
745 -- Name: users; Type: TABLE; Schema: public; Owner: -
750 uuid character varying(255),
751 owner_uuid character varying(255) NOT NULL,
752 created_at timestamp without time zone NOT NULL,
753 modified_by_client_uuid character varying(255),
754 modified_by_user_uuid character varying(255),
755 modified_at timestamp without time zone,
756 email character varying(255),
757 first_name character varying(255),
758 last_name character varying(255),
759 identity_url character varying(255),
762 updated_at timestamp without time zone NOT NULL,
763 default_owner_uuid character varying(255),
764 is_active boolean DEFAULT false,
765 username character varying(255)
770 -- Name: materialized_permission_view; Type: MATERIALIZED VIEW; Schema: public; Owner: -
773 CREATE MATERIALIZED VIEW materialized_permission_view AS
774 WITH RECURSIVE perm_value(name, val) AS (
775 VALUES ('can_read'::text,(1)::smallint), ('can_login'::text,1), ('can_write'::text,2), ('can_manage'::text,3)
776 ), perm_edges(tail_uuid, head_uuid, val, follow, trashed) AS (
777 SELECT links.tail_uuid,
780 ((pv.val = 3) OR (groups.uuid IS NOT NULL)) AS follow,
781 (0)::smallint AS trashed,
782 (0)::smallint AS followtrash
784 LEFT JOIN perm_value pv ON ((pv.name = (links.name)::text)))
785 LEFT JOIN groups ON (((pv.val < 3) AND ((groups.uuid)::text = (links.head_uuid)::text))))
786 WHERE ((links.link_class)::text = 'permission'::text)
788 SELECT groups.owner_uuid,
793 WHEN ((groups.trash_at IS NOT NULL) AND (groups.trash_at < clock_timestamp())) THEN 1
798 ), perm(val, follow, user_uuid, target_uuid, trashed) AS (
799 SELECT (3)::smallint AS val,
801 (users.uuid)::character varying(32) AS user_uuid,
802 (users.uuid)::character varying(32) AS target_uuid,
803 (0)::smallint AS trashed
806 SELECT (LEAST((perm_1.val)::integer, edges.val))::smallint AS val,
809 (edges.head_uuid)::character varying(32) AS target_uuid,
810 ((GREATEST((perm_1.trashed)::integer, edges.trashed) * edges.followtrash))::smallint AS trashed
812 JOIN perm_edges edges ON ((perm_1.follow AND ((edges.tail_uuid)::text = (perm_1.target_uuid)::text))))
814 SELECT perm.user_uuid,
816 max(perm.val) AS perm_level,
818 WHEN true THEN perm.target_uuid
819 ELSE NULL::character varying
820 END AS target_owner_uuid,
821 max(perm.trashed) AS trashed
823 GROUP BY perm.user_uuid, perm.target_uuid,
825 WHEN true THEN perm.target_uuid
826 ELSE NULL::character varying
832 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
837 uuid character varying(255),
838 owner_uuid character varying(255),
839 created_at timestamp without time zone NOT NULL,
840 modified_by_client_uuid character varying(255),
841 modified_by_user_uuid character varying(255),
842 modified_at timestamp without time zone,
844 hostname character varying(255),
845 domain character varying(255),
846 ip_address character varying(255),
847 first_ping_at timestamp without time zone,
848 last_ping_at timestamp without time zone,
850 updated_at timestamp without time zone NOT NULL,
852 job_uuid character varying(255)
857 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
860 CREATE SEQUENCE nodes_id_seq
869 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
872 ALTER SEQUENCE nodes_id_seq OWNED BY nodes.id;
876 -- Name: permission_refresh_lock; Type: TABLE; Schema: public; Owner: -
879 CREATE TABLE permission_refresh_lock (
885 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE; Schema: public; Owner: -
888 CREATE SEQUENCE permission_refresh_lock_id_seq
897 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
900 ALTER SEQUENCE permission_refresh_lock_id_seq OWNED BY permission_refresh_lock.id;
904 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -
907 CREATE TABLE pipeline_instances (
909 uuid character varying(255),
910 owner_uuid character varying(255),
911 created_at timestamp without time zone NOT NULL,
912 modified_by_client_uuid character varying(255),
913 modified_by_user_uuid character varying(255),
914 modified_at timestamp without time zone,
915 pipeline_template_uuid character varying(255),
916 name character varying(255),
918 updated_at timestamp without time zone NOT NULL,
920 state character varying(255),
921 components_summary text,
922 started_at timestamp without time zone,
923 finished_at timestamp without time zone,
924 description character varying(524288)
929 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
932 CREATE SEQUENCE pipeline_instances_id_seq
941 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
944 ALTER SEQUENCE pipeline_instances_id_seq OWNED BY pipeline_instances.id;
948 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -
951 CREATE TABLE pipeline_templates (
953 uuid character varying(255),
954 owner_uuid character varying(255),
955 created_at timestamp without time zone NOT NULL,
956 modified_by_client_uuid character varying(255),
957 modified_by_user_uuid character varying(255),
958 modified_at timestamp without time zone,
959 name character varying(255),
961 updated_at timestamp without time zone NOT NULL,
962 description character varying(524288)
967 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
970 CREATE SEQUENCE pipeline_templates_id_seq
979 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
982 ALTER SEQUENCE pipeline_templates_id_seq OWNED BY pipeline_templates.id;
986 -- Name: repositories; Type: TABLE; Schema: public; Owner: -
989 CREATE TABLE repositories (
991 uuid character varying(255) NOT NULL,
992 owner_uuid character varying(255) NOT NULL,
993 modified_by_client_uuid character varying(255),
994 modified_by_user_uuid character varying(255),
995 modified_at timestamp without time zone,
996 name character varying(255),
997 created_at timestamp without time zone NOT NULL,
998 updated_at timestamp without time zone NOT NULL
1003 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1006 CREATE SEQUENCE repositories_id_seq
1015 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1018 ALTER SEQUENCE repositories_id_seq OWNED BY repositories.id;
1022 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
1025 CREATE TABLE schema_migrations (
1026 version character varying(255) NOT NULL
1031 -- Name: specimens; Type: TABLE; Schema: public; Owner: -
1034 CREATE TABLE specimens (
1035 id integer NOT NULL,
1036 uuid character varying(255),
1037 owner_uuid character varying(255),
1038 created_at timestamp without time zone NOT NULL,
1039 modified_by_client_uuid character varying(255),
1040 modified_by_user_uuid character varying(255),
1041 modified_at timestamp without time zone,
1042 material character varying(255),
1043 updated_at timestamp without time zone NOT NULL,
1049 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1052 CREATE SEQUENCE specimens_id_seq
1061 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1064 ALTER SEQUENCE specimens_id_seq OWNED BY specimens.id;
1068 -- Name: traits; Type: TABLE; Schema: public; Owner: -
1071 CREATE TABLE traits (
1072 id integer NOT NULL,
1073 uuid character varying(255) NOT NULL,
1074 owner_uuid character varying(255) NOT NULL,
1075 modified_by_client_uuid character varying(255),
1076 modified_by_user_uuid character varying(255),
1077 modified_at timestamp without time zone,
1078 name character varying(255),
1080 created_at timestamp without time zone NOT NULL,
1081 updated_at timestamp without time zone NOT NULL
1086 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1089 CREATE SEQUENCE traits_id_seq
1098 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1101 ALTER SEQUENCE traits_id_seq OWNED BY traits.id;
1105 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1108 CREATE SEQUENCE users_id_seq
1117 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1120 ALTER SEQUENCE users_id_seq OWNED BY users.id;
1124 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -
1127 CREATE TABLE virtual_machines (
1128 id integer NOT NULL,
1129 uuid character varying(255) NOT NULL,
1130 owner_uuid character varying(255) NOT NULL,
1131 modified_by_client_uuid character varying(255),
1132 modified_by_user_uuid character varying(255),
1133 modified_at timestamp without time zone,
1134 hostname character varying(255),
1135 created_at timestamp without time zone NOT NULL,
1136 updated_at timestamp without time zone NOT NULL
1141 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1144 CREATE SEQUENCE virtual_machines_id_seq
1153 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1156 ALTER SEQUENCE virtual_machines_id_seq OWNED BY virtual_machines.id;
1160 -- Name: workflows; Type: TABLE; Schema: public; Owner: -
1163 CREATE TABLE workflows (
1164 id integer NOT NULL,
1165 uuid character varying(255),
1166 owner_uuid character varying(255),
1167 created_at timestamp without time zone NOT NULL,
1168 modified_at timestamp without time zone,
1169 modified_by_client_uuid character varying(255),
1170 modified_by_user_uuid character varying(255),
1171 name character varying(255),
1174 updated_at timestamp without time zone NOT NULL
1179 -- Name: workflows_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1182 CREATE SEQUENCE workflows_id_seq
1191 -- Name: workflows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1194 ALTER SEQUENCE workflows_id_seq OWNED BY workflows.id;
1198 -- Name: api_client_authorizations id; Type: DEFAULT; Schema: public; Owner: -
1201 ALTER TABLE ONLY api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('api_client_authorizations_id_seq'::regclass);
1205 -- Name: api_clients id; Type: DEFAULT; Schema: public; Owner: -
1208 ALTER TABLE ONLY api_clients ALTER COLUMN id SET DEFAULT nextval('api_clients_id_seq'::regclass);
1212 -- Name: authorized_keys id; Type: DEFAULT; Schema: public; Owner: -
1215 ALTER TABLE ONLY authorized_keys ALTER COLUMN id SET DEFAULT nextval('authorized_keys_id_seq'::regclass);
1219 -- Name: collections id; Type: DEFAULT; Schema: public; Owner: -
1222 ALTER TABLE ONLY collections ALTER COLUMN id SET DEFAULT nextval('collections_id_seq'::regclass);
1226 -- Name: commit_ancestors id; Type: DEFAULT; Schema: public; Owner: -
1229 ALTER TABLE ONLY commit_ancestors ALTER COLUMN id SET DEFAULT nextval('commit_ancestors_id_seq'::regclass);
1233 -- Name: commits id; Type: DEFAULT; Schema: public; Owner: -
1236 ALTER TABLE ONLY commits ALTER COLUMN id SET DEFAULT nextval('commits_id_seq'::regclass);
1240 -- Name: container_requests id; Type: DEFAULT; Schema: public; Owner: -
1243 ALTER TABLE ONLY container_requests ALTER COLUMN id SET DEFAULT nextval('container_requests_id_seq'::regclass);
1247 -- Name: containers id; Type: DEFAULT; Schema: public; Owner: -
1250 ALTER TABLE ONLY containers ALTER COLUMN id SET DEFAULT nextval('containers_id_seq'::regclass);
1254 -- Name: groups id; Type: DEFAULT; Schema: public; Owner: -
1257 ALTER TABLE ONLY groups ALTER COLUMN id SET DEFAULT nextval('groups_id_seq'::regclass);
1261 -- Name: humans id; Type: DEFAULT; Schema: public; Owner: -
1264 ALTER TABLE ONLY humans ALTER COLUMN id SET DEFAULT nextval('humans_id_seq'::regclass);
1268 -- Name: job_tasks id; Type: DEFAULT; Schema: public; Owner: -
1271 ALTER TABLE ONLY job_tasks ALTER COLUMN id SET DEFAULT nextval('job_tasks_id_seq'::regclass);
1275 -- Name: jobs id; Type: DEFAULT; Schema: public; Owner: -
1278 ALTER TABLE ONLY jobs ALTER COLUMN id SET DEFAULT nextval('jobs_id_seq'::regclass);
1282 -- Name: keep_disks id; Type: DEFAULT; Schema: public; Owner: -
1285 ALTER TABLE ONLY keep_disks ALTER COLUMN id SET DEFAULT nextval('keep_disks_id_seq'::regclass);
1289 -- Name: keep_services id; Type: DEFAULT; Schema: public; Owner: -
1292 ALTER TABLE ONLY keep_services ALTER COLUMN id SET DEFAULT nextval('keep_services_id_seq'::regclass);
1296 -- Name: links id; Type: DEFAULT; Schema: public; Owner: -
1299 ALTER TABLE ONLY links ALTER COLUMN id SET DEFAULT nextval('links_id_seq'::regclass);
1303 -- Name: logs id; Type: DEFAULT; Schema: public; Owner: -
1306 ALTER TABLE ONLY logs ALTER COLUMN id SET DEFAULT nextval('logs_id_seq'::regclass);
1310 -- Name: nodes id; Type: DEFAULT; Schema: public; Owner: -
1313 ALTER TABLE ONLY nodes ALTER COLUMN id SET DEFAULT nextval('nodes_id_seq'::regclass);
1317 -- Name: permission_refresh_lock id; Type: DEFAULT; Schema: public; Owner: -
1320 ALTER TABLE ONLY permission_refresh_lock ALTER COLUMN id SET DEFAULT nextval('permission_refresh_lock_id_seq'::regclass);
1324 -- Name: pipeline_instances id; Type: DEFAULT; Schema: public; Owner: -
1327 ALTER TABLE ONLY pipeline_instances ALTER COLUMN id SET DEFAULT nextval('pipeline_instances_id_seq'::regclass);
1331 -- Name: pipeline_templates id; Type: DEFAULT; Schema: public; Owner: -
1334 ALTER TABLE ONLY pipeline_templates ALTER COLUMN id SET DEFAULT nextval('pipeline_templates_id_seq'::regclass);
1338 -- Name: repositories id; Type: DEFAULT; Schema: public; Owner: -
1341 ALTER TABLE ONLY repositories ALTER COLUMN id SET DEFAULT nextval('repositories_id_seq'::regclass);
1345 -- Name: specimens id; Type: DEFAULT; Schema: public; Owner: -
1348 ALTER TABLE ONLY specimens ALTER COLUMN id SET DEFAULT nextval('specimens_id_seq'::regclass);
1352 -- Name: traits id; Type: DEFAULT; Schema: public; Owner: -
1355 ALTER TABLE ONLY traits ALTER COLUMN id SET DEFAULT nextval('traits_id_seq'::regclass);
1359 -- Name: users id; Type: DEFAULT; Schema: public; Owner: -
1362 ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
1366 -- Name: virtual_machines id; Type: DEFAULT; Schema: public; Owner: -
1369 ALTER TABLE ONLY virtual_machines ALTER COLUMN id SET DEFAULT nextval('virtual_machines_id_seq'::regclass);
1373 -- Name: workflows id; Type: DEFAULT; Schema: public; Owner: -
1376 ALTER TABLE ONLY workflows ALTER COLUMN id SET DEFAULT nextval('workflows_id_seq'::regclass);
1380 -- Name: api_client_authorizations api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1383 ALTER TABLE ONLY api_client_authorizations
1384 ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1388 -- Name: api_clients api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1391 ALTER TABLE ONLY api_clients
1392 ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1396 -- Name: authorized_keys authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1399 ALTER TABLE ONLY authorized_keys
1400 ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1404 -- Name: collections collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1407 ALTER TABLE ONLY collections
1408 ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1412 -- Name: commit_ancestors commit_ancestors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1415 ALTER TABLE ONLY commit_ancestors
1416 ADD CONSTRAINT commit_ancestors_pkey PRIMARY KEY (id);
1420 -- Name: commits commits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1423 ALTER TABLE ONLY commits
1424 ADD CONSTRAINT commits_pkey PRIMARY KEY (id);
1428 -- Name: container_requests container_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1431 ALTER TABLE ONLY container_requests
1432 ADD CONSTRAINT container_requests_pkey PRIMARY KEY (id);
1436 -- Name: containers containers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1439 ALTER TABLE ONLY containers
1440 ADD CONSTRAINT containers_pkey PRIMARY KEY (id);
1444 -- Name: groups groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1447 ALTER TABLE ONLY groups
1448 ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1452 -- Name: humans humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1455 ALTER TABLE ONLY humans
1456 ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1460 -- Name: job_tasks job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1463 ALTER TABLE ONLY job_tasks
1464 ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1468 -- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1471 ALTER TABLE ONLY jobs
1472 ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1476 -- Name: keep_disks keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1479 ALTER TABLE ONLY keep_disks
1480 ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1484 -- Name: keep_services keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1487 ALTER TABLE ONLY keep_services
1488 ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1492 -- Name: links links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1495 ALTER TABLE ONLY links
1496 ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1500 -- Name: logs logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1503 ALTER TABLE ONLY logs
1504 ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1508 -- Name: nodes nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1511 ALTER TABLE ONLY nodes
1512 ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1516 -- Name: permission_refresh_lock permission_refresh_lock_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1519 ALTER TABLE ONLY permission_refresh_lock
1520 ADD CONSTRAINT permission_refresh_lock_pkey PRIMARY KEY (id);
1524 -- Name: pipeline_instances pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1527 ALTER TABLE ONLY pipeline_instances
1528 ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1532 -- Name: pipeline_templates pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1535 ALTER TABLE ONLY pipeline_templates
1536 ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1540 -- Name: repositories repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1543 ALTER TABLE ONLY repositories
1544 ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1548 -- Name: specimens specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1551 ALTER TABLE ONLY specimens
1552 ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1556 -- Name: traits traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1559 ALTER TABLE ONLY traits
1560 ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1564 -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1567 ALTER TABLE ONLY users
1568 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1572 -- Name: virtual_machines virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1575 ALTER TABLE ONLY virtual_machines
1576 ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1580 -- Name: workflows workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1583 ALTER TABLE ONLY workflows
1584 ADD CONSTRAINT workflows_pkey PRIMARY KEY (id);
1588 -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -
1591 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);
1595 -- Name: api_clients_search_index; Type: INDEX; Schema: public; Owner: -
1598 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);
1602 -- Name: authorized_keys_search_index; Type: INDEX; Schema: public; Owner: -
1605 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);
1609 -- Name: collection_index_on_properties; Type: INDEX; Schema: public; Owner: -
1612 CREATE INDEX collection_index_on_properties ON collections USING gin (properties);
1616 -- Name: collections_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1619 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)));
1623 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -
1626 CREATE INDEX collections_search_index ON collections USING btree (owner_uuid, modified_by_client_uuid, modified_by_user_uuid, portable_data_hash, uuid, name);
1630 -- Name: container_requests_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1633 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)));
1637 -- Name: container_requests_search_index; Type: INDEX; Schema: public; Owner: -
1640 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);
1644 -- Name: containers_search_index; Type: INDEX; Schema: public; Owner: -
1647 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);
1651 -- Name: groups_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1654 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)));
1658 -- Name: groups_search_index; Type: INDEX; Schema: public; Owner: -
1661 CREATE INDEX groups_search_index ON groups USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, group_class);
1665 -- Name: humans_search_index; Type: INDEX; Schema: public; Owner: -
1668 CREATE INDEX humans_search_index ON humans USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid);
1672 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -
1675 CREATE INDEX index_api_client_authorizations_on_api_client_id ON api_client_authorizations USING btree (api_client_id);
1679 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -
1682 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON api_client_authorizations USING btree (api_token);
1686 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -
1689 CREATE INDEX index_api_client_authorizations_on_expires_at ON api_client_authorizations USING btree (expires_at);
1693 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -
1696 CREATE INDEX index_api_client_authorizations_on_user_id ON api_client_authorizations USING btree (user_id);
1700 -- Name: index_api_client_authorizations_on_uuid; Type: INDEX; Schema: public; Owner: -
1703 CREATE UNIQUE INDEX index_api_client_authorizations_on_uuid ON api_client_authorizations USING btree (uuid);
1707 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -
1710 CREATE INDEX index_api_clients_on_created_at ON api_clients USING btree (created_at);
1714 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -
1717 CREATE INDEX index_api_clients_on_modified_at ON api_clients USING btree (modified_at);
1721 -- Name: index_api_clients_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1724 CREATE INDEX index_api_clients_on_owner_uuid ON api_clients USING btree (owner_uuid);
1728 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -
1731 CREATE UNIQUE INDEX index_api_clients_on_uuid ON api_clients USING btree (uuid);
1735 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -
1738 CREATE INDEX index_authkeys_on_user_and_expires_at ON authorized_keys USING btree (authorized_user_uuid, expires_at);
1742 -- Name: index_authorized_keys_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1745 CREATE INDEX index_authorized_keys_on_owner_uuid ON authorized_keys USING btree (owner_uuid);
1749 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -
1752 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON authorized_keys USING btree (uuid);
1756 -- Name: index_collections_on_created_at; Type: INDEX; Schema: public; Owner: -
1759 CREATE INDEX index_collections_on_created_at ON collections USING btree (created_at);
1763 -- Name: index_collections_on_delete_at; Type: INDEX; Schema: public; Owner: -
1766 CREATE INDEX index_collections_on_delete_at ON collections USING btree (delete_at);
1770 -- Name: index_collections_on_is_trashed; Type: INDEX; Schema: public; Owner: -
1773 CREATE INDEX index_collections_on_is_trashed ON collections USING btree (is_trashed);
1777 -- Name: index_collections_on_modified_at; Type: INDEX; Schema: public; Owner: -
1780 CREATE INDEX index_collections_on_modified_at ON collections USING btree (modified_at);
1784 -- Name: index_collections_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1787 CREATE INDEX index_collections_on_modified_at_uuid ON collections USING btree (modified_at DESC, uuid);
1791 -- Name: index_collections_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1794 CREATE INDEX index_collections_on_owner_uuid ON collections USING btree (owner_uuid);
1798 -- Name: index_collections_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
1801 CREATE UNIQUE INDEX index_collections_on_owner_uuid_and_name ON collections USING btree (owner_uuid, name) WHERE (is_trashed = false);
1805 -- Name: index_collections_on_portable_data_hash; Type: INDEX; Schema: public; Owner: -
1808 CREATE INDEX index_collections_on_portable_data_hash ON collections USING btree (portable_data_hash);
1812 -- Name: index_collections_on_trash_at; Type: INDEX; Schema: public; Owner: -
1815 CREATE INDEX index_collections_on_trash_at ON collections USING btree (trash_at);
1819 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -
1822 CREATE UNIQUE INDEX index_collections_on_uuid ON collections USING btree (uuid);
1826 -- Name: index_commit_ancestors_on_descendant_and_ancestor; Type: INDEX; Schema: public; Owner: -
1829 CREATE UNIQUE INDEX index_commit_ancestors_on_descendant_and_ancestor ON commit_ancestors USING btree (descendant, ancestor);
1833 -- Name: index_commits_on_repository_name_and_sha1; Type: INDEX; Schema: public; Owner: -
1836 CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON commits USING btree (repository_name, sha1);
1840 -- Name: index_container_requests_on_container_uuid; Type: INDEX; Schema: public; Owner: -
1843 CREATE INDEX index_container_requests_on_container_uuid ON container_requests USING btree (container_uuid);
1847 -- Name: index_container_requests_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1850 CREATE INDEX index_container_requests_on_modified_at_uuid ON container_requests USING btree (modified_at DESC, uuid);
1854 -- Name: index_container_requests_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1857 CREATE INDEX index_container_requests_on_owner_uuid ON container_requests USING btree (owner_uuid);
1861 -- Name: index_container_requests_on_requesting_container_uuid; Type: INDEX; Schema: public; Owner: -
1864 CREATE INDEX index_container_requests_on_requesting_container_uuid ON container_requests USING btree (requesting_container_uuid);
1868 -- Name: index_container_requests_on_uuid; Type: INDEX; Schema: public; Owner: -
1871 CREATE UNIQUE INDEX index_container_requests_on_uuid ON container_requests USING btree (uuid);
1875 -- Name: index_containers_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1878 CREATE INDEX index_containers_on_modified_at_uuid ON containers USING btree (modified_at DESC, uuid);
1882 -- Name: index_containers_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1885 CREATE INDEX index_containers_on_owner_uuid ON containers USING btree (owner_uuid);
1889 -- Name: index_containers_on_uuid; Type: INDEX; Schema: public; Owner: -
1892 CREATE UNIQUE INDEX index_containers_on_uuid ON containers USING btree (uuid);
1896 -- Name: index_groups_on_created_at; Type: INDEX; Schema: public; Owner: -
1899 CREATE INDEX index_groups_on_created_at ON groups USING btree (created_at);
1903 -- Name: index_groups_on_delete_at; Type: INDEX; Schema: public; Owner: -
1906 CREATE INDEX index_groups_on_delete_at ON groups USING btree (delete_at);
1910 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -
1913 CREATE INDEX index_groups_on_group_class ON groups USING btree (group_class);
1917 -- Name: index_groups_on_is_trashed; Type: INDEX; Schema: public; Owner: -
1920 CREATE INDEX index_groups_on_is_trashed ON groups USING btree (is_trashed);
1924 -- Name: index_groups_on_modified_at; Type: INDEX; Schema: public; Owner: -
1927 CREATE INDEX index_groups_on_modified_at ON groups USING btree (modified_at);
1931 -- Name: index_groups_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1934 CREATE INDEX index_groups_on_modified_at_uuid ON groups USING btree (modified_at DESC, uuid);
1938 -- Name: index_groups_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1941 CREATE INDEX index_groups_on_owner_uuid ON groups USING btree (owner_uuid);
1945 -- Name: index_groups_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
1948 CREATE UNIQUE INDEX index_groups_on_owner_uuid_and_name ON groups USING btree (owner_uuid, name) WHERE (is_trashed = false);
1952 -- Name: index_groups_on_trash_at; Type: INDEX; Schema: public; Owner: -
1955 CREATE INDEX index_groups_on_trash_at ON groups USING btree (trash_at);
1959 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -
1962 CREATE UNIQUE INDEX index_groups_on_uuid ON groups USING btree (uuid);
1966 -- Name: index_humans_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1969 CREATE INDEX index_humans_on_owner_uuid ON humans USING btree (owner_uuid);
1973 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -
1976 CREATE UNIQUE INDEX index_humans_on_uuid ON humans USING btree (uuid);
1980 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -
1983 CREATE INDEX index_job_tasks_on_created_at ON job_tasks USING btree (created_at);
1987 -- Name: index_job_tasks_on_created_by_job_task_uuid; Type: INDEX; Schema: public; Owner: -
1990 CREATE INDEX index_job_tasks_on_created_by_job_task_uuid ON job_tasks USING btree (created_by_job_task_uuid);
1994 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -
1997 CREATE INDEX index_job_tasks_on_job_uuid ON job_tasks USING btree (job_uuid);
2001 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -
2004 CREATE INDEX index_job_tasks_on_modified_at ON job_tasks USING btree (modified_at);
2008 -- Name: index_job_tasks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2011 CREATE INDEX index_job_tasks_on_owner_uuid ON job_tasks USING btree (owner_uuid);
2015 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -
2018 CREATE INDEX index_job_tasks_on_sequence ON job_tasks USING btree (sequence);
2022 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -
2025 CREATE INDEX index_job_tasks_on_success ON job_tasks USING btree (success);
2029 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -
2032 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON job_tasks USING btree (uuid);
2036 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -
2039 CREATE INDEX index_jobs_on_created_at ON jobs USING btree (created_at);
2043 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -
2046 CREATE INDEX index_jobs_on_finished_at ON jobs USING btree (finished_at);
2050 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2053 CREATE INDEX index_jobs_on_modified_at ON jobs USING btree (modified_at);
2057 -- Name: index_jobs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2060 CREATE INDEX index_jobs_on_modified_at_uuid ON jobs USING btree (modified_at DESC, uuid);
2064 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -
2067 CREATE INDEX index_jobs_on_output ON jobs USING btree (output);
2071 -- Name: index_jobs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2074 CREATE INDEX index_jobs_on_owner_uuid ON jobs USING btree (owner_uuid);
2078 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -
2081 CREATE INDEX index_jobs_on_script ON jobs USING btree (script);
2085 -- Name: index_jobs_on_script_parameters_digest; Type: INDEX; Schema: public; Owner: -
2088 CREATE INDEX index_jobs_on_script_parameters_digest ON jobs USING btree (script_parameters_digest);
2092 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -
2095 CREATE INDEX index_jobs_on_started_at ON jobs USING btree (started_at);
2099 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -
2102 CREATE UNIQUE INDEX index_jobs_on_submit_id ON jobs USING btree (submit_id);
2106 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -
2109 CREATE UNIQUE INDEX index_jobs_on_uuid ON jobs USING btree (uuid);
2113 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -
2116 CREATE INDEX index_keep_disks_on_filesystem_uuid ON keep_disks USING btree (filesystem_uuid);
2120 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -
2123 CREATE INDEX index_keep_disks_on_last_ping_at ON keep_disks USING btree (last_ping_at);
2127 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -
2130 CREATE INDEX index_keep_disks_on_node_uuid ON keep_disks USING btree (node_uuid);
2134 -- Name: index_keep_disks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2137 CREATE INDEX index_keep_disks_on_owner_uuid ON keep_disks USING btree (owner_uuid);
2141 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -
2144 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON keep_disks USING btree (uuid);
2148 -- Name: index_keep_services_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2151 CREATE INDEX index_keep_services_on_owner_uuid ON keep_services USING btree (owner_uuid);
2155 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -
2158 CREATE UNIQUE INDEX index_keep_services_on_uuid ON keep_services USING btree (uuid);
2162 -- Name: index_links_on_created_at; Type: INDEX; Schema: public; Owner: -
2165 CREATE INDEX index_links_on_created_at ON links USING btree (created_at);
2169 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -
2172 CREATE INDEX index_links_on_head_uuid ON links USING btree (head_uuid);
2176 -- Name: index_links_on_modified_at; Type: INDEX; Schema: public; Owner: -
2179 CREATE INDEX index_links_on_modified_at ON links USING btree (modified_at);
2183 -- Name: index_links_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2186 CREATE INDEX index_links_on_modified_at_uuid ON links USING btree (modified_at DESC, uuid);
2190 -- Name: index_links_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2193 CREATE INDEX index_links_on_owner_uuid ON links USING btree (owner_uuid);
2197 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -
2200 CREATE INDEX index_links_on_tail_uuid ON links USING btree (tail_uuid);
2204 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -
2207 CREATE UNIQUE INDEX index_links_on_uuid ON links USING btree (uuid);
2211 -- Name: index_logs_on_created_at; Type: INDEX; Schema: public; Owner: -
2214 CREATE INDEX index_logs_on_created_at ON logs USING btree (created_at);
2218 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -
2221 CREATE INDEX index_logs_on_event_at ON logs USING btree (event_at);
2225 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -
2228 CREATE INDEX index_logs_on_event_type ON logs USING btree (event_type);
2232 -- Name: index_logs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2235 CREATE INDEX index_logs_on_modified_at ON logs USING btree (modified_at);
2239 -- Name: index_logs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2242 CREATE INDEX index_logs_on_modified_at_uuid ON logs USING btree (modified_at DESC, uuid);
2246 -- Name: index_logs_on_object_owner_uuid; Type: INDEX; Schema: public; Owner: -
2249 CREATE INDEX index_logs_on_object_owner_uuid ON logs USING btree (object_owner_uuid);
2253 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -
2256 CREATE INDEX index_logs_on_object_uuid ON logs USING btree (object_uuid);
2260 -- Name: index_logs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2263 CREATE INDEX index_logs_on_owner_uuid ON logs USING btree (owner_uuid);
2267 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -
2270 CREATE INDEX index_logs_on_summary ON logs USING btree (summary);
2274 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -
2277 CREATE UNIQUE INDEX index_logs_on_uuid ON logs USING btree (uuid);
2281 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -
2284 CREATE INDEX index_nodes_on_created_at ON nodes USING btree (created_at);
2288 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -
2291 CREATE INDEX index_nodes_on_hostname ON nodes USING btree (hostname);
2295 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -
2298 CREATE INDEX index_nodes_on_modified_at ON nodes USING btree (modified_at);
2302 -- Name: index_nodes_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2305 CREATE INDEX index_nodes_on_owner_uuid ON nodes USING btree (owner_uuid);
2309 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -
2312 CREATE UNIQUE INDEX index_nodes_on_slot_number ON nodes USING btree (slot_number);
2316 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -
2319 CREATE UNIQUE INDEX index_nodes_on_uuid ON nodes USING btree (uuid);
2323 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -
2326 CREATE INDEX index_pipeline_instances_on_created_at ON pipeline_instances USING btree (created_at);
2330 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -
2333 CREATE INDEX index_pipeline_instances_on_modified_at ON pipeline_instances USING btree (modified_at);
2337 -- Name: index_pipeline_instances_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2340 CREATE INDEX index_pipeline_instances_on_modified_at_uuid ON pipeline_instances USING btree (modified_at DESC, uuid);
2344 -- Name: index_pipeline_instances_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2347 CREATE INDEX index_pipeline_instances_on_owner_uuid ON pipeline_instances USING btree (owner_uuid);
2351 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -
2354 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON pipeline_instances USING btree (uuid);
2358 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -
2361 CREATE INDEX index_pipeline_templates_on_created_at ON pipeline_templates USING btree (created_at);
2365 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -
2368 CREATE INDEX index_pipeline_templates_on_modified_at ON pipeline_templates USING btree (modified_at);
2372 -- Name: index_pipeline_templates_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2375 CREATE INDEX index_pipeline_templates_on_modified_at_uuid ON pipeline_templates USING btree (modified_at DESC, uuid);
2379 -- Name: index_pipeline_templates_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2382 CREATE INDEX index_pipeline_templates_on_owner_uuid ON pipeline_templates USING btree (owner_uuid);
2386 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -
2389 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON pipeline_templates USING btree (uuid);
2393 -- Name: index_repositories_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2396 CREATE INDEX index_repositories_on_modified_at_uuid ON repositories USING btree (modified_at DESC, uuid);
2400 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -
2403 CREATE UNIQUE INDEX index_repositories_on_name ON repositories USING btree (name);
2407 -- Name: index_repositories_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2410 CREATE INDEX index_repositories_on_owner_uuid ON repositories USING btree (owner_uuid);
2414 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -
2417 CREATE UNIQUE INDEX index_repositories_on_uuid ON repositories USING btree (uuid);
2421 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -
2424 CREATE INDEX index_specimens_on_created_at ON specimens USING btree (created_at);
2428 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -
2431 CREATE INDEX index_specimens_on_modified_at ON specimens USING btree (modified_at);
2435 -- Name: index_specimens_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2438 CREATE INDEX index_specimens_on_owner_uuid ON specimens USING btree (owner_uuid);
2442 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -
2445 CREATE UNIQUE INDEX index_specimens_on_uuid ON specimens USING btree (uuid);
2449 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -
2452 CREATE INDEX index_traits_on_name ON traits USING btree (name);
2456 -- Name: index_traits_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2459 CREATE INDEX index_traits_on_owner_uuid ON traits USING btree (owner_uuid);
2463 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -
2466 CREATE UNIQUE INDEX index_traits_on_uuid ON traits USING btree (uuid);
2470 -- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: -
2473 CREATE INDEX index_users_on_created_at ON users USING btree (created_at);
2477 -- Name: index_users_on_modified_at; Type: INDEX; Schema: public; Owner: -
2480 CREATE INDEX index_users_on_modified_at ON users USING btree (modified_at);
2484 -- Name: index_users_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2487 CREATE INDEX index_users_on_modified_at_uuid ON users USING btree (modified_at DESC, uuid);
2491 -- Name: index_users_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2494 CREATE INDEX index_users_on_owner_uuid ON users USING btree (owner_uuid);
2498 -- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: -
2501 CREATE UNIQUE INDEX index_users_on_username ON users USING btree (username);
2505 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -
2508 CREATE UNIQUE INDEX index_users_on_uuid ON users USING btree (uuid);
2512 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -
2515 CREATE INDEX index_virtual_machines_on_hostname ON virtual_machines USING btree (hostname);
2519 -- Name: index_virtual_machines_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2522 CREATE INDEX index_virtual_machines_on_modified_at_uuid ON virtual_machines USING btree (modified_at DESC, uuid);
2526 -- Name: index_virtual_machines_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2529 CREATE INDEX index_virtual_machines_on_owner_uuid ON virtual_machines USING btree (owner_uuid);
2533 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -
2536 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON virtual_machines USING btree (uuid);
2540 -- Name: index_workflows_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2543 CREATE INDEX index_workflows_on_modified_at_uuid ON workflows USING btree (modified_at DESC, uuid);
2547 -- Name: index_workflows_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2550 CREATE INDEX index_workflows_on_owner_uuid ON workflows USING btree (owner_uuid);
2554 -- Name: index_workflows_on_uuid; Type: INDEX; Schema: public; Owner: -
2557 CREATE UNIQUE INDEX index_workflows_on_uuid ON workflows USING btree (uuid);
2561 -- Name: job_tasks_search_index; Type: INDEX; Schema: public; Owner: -
2564 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);
2568 -- Name: jobs_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2571 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))));
2575 -- Name: jobs_search_index; Type: INDEX; Schema: public; Owner: -
2578 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);
2582 -- Name: keep_disks_search_index; Type: INDEX; Schema: public; Owner: -
2585 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);
2589 -- Name: keep_services_search_index; Type: INDEX; Schema: public; Owner: -
2592 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);
2596 -- Name: links_search_index; Type: INDEX; Schema: public; Owner: -
2599 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);
2603 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -
2606 CREATE UNIQUE INDEX links_tail_name_unique_if_link_class_name ON links USING btree (tail_uuid, name) WHERE ((link_class)::text = 'name'::text);
2610 -- Name: logs_search_index; Type: INDEX; Schema: public; Owner: -
2613 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);
2617 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -
2620 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);
2624 -- Name: permission_target_trashed; Type: INDEX; Schema: public; Owner: -
2627 CREATE INDEX permission_target_trashed ON materialized_permission_view USING btree (trashed, target_uuid);
2631 -- Name: permission_target_user_trashed_level; Type: INDEX; Schema: public; Owner: -
2634 CREATE INDEX permission_target_user_trashed_level ON materialized_permission_view USING btree (user_uuid, trashed, perm_level);
2638 -- Name: pipeline_instances_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2641 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)));
2645 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -
2648 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);
2652 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -
2655 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON pipeline_templates USING btree (owner_uuid, name);
2659 -- Name: pipeline_templates_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2662 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)));
2666 -- Name: pipeline_templates_search_index; Type: INDEX; Schema: public; Owner: -
2669 CREATE INDEX pipeline_templates_search_index ON pipeline_templates USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2673 -- Name: repositories_search_index; Type: INDEX; Schema: public; Owner: -
2676 CREATE INDEX repositories_search_index ON repositories USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2680 -- Name: specimens_search_index; Type: INDEX; Schema: public; Owner: -
2683 CREATE INDEX specimens_search_index ON specimens USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, material);
2687 -- Name: traits_search_index; Type: INDEX; Schema: public; Owner: -
2690 CREATE INDEX traits_search_index ON traits USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2694 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
2697 CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
2701 -- Name: users_search_index; Type: INDEX; Schema: public; Owner: -
2704 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);
2708 -- Name: virtual_machines_search_index; Type: INDEX; Schema: public; Owner: -
2711 CREATE INDEX virtual_machines_search_index ON virtual_machines USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname);
2715 -- Name: workflows_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2718 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))));
2722 -- Name: workflows_search_idx; Type: INDEX; Schema: public; Owner: -
2725 CREATE INDEX workflows_search_idx ON workflows USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2729 -- PostgreSQL database dump complete
2732 SET search_path TO "$user", public;
2734 INSERT INTO schema_migrations (version) VALUES ('20121016005009');
2736 INSERT INTO schema_migrations (version) VALUES ('20130105203021');
2738 INSERT INTO schema_migrations (version) VALUES ('20130105224358');
2740 INSERT INTO schema_migrations (version) VALUES ('20130105224618');
2742 INSERT INTO schema_migrations (version) VALUES ('20130107181109');
2744 INSERT INTO schema_migrations (version) VALUES ('20130107212832');
2746 INSERT INTO schema_migrations (version) VALUES ('20130109175700');
2748 INSERT INTO schema_migrations (version) VALUES ('20130109220548');
2750 INSERT INTO schema_migrations (version) VALUES ('20130113214204');
2752 INSERT INTO schema_migrations (version) VALUES ('20130116024233');
2754 INSERT INTO schema_migrations (version) VALUES ('20130116215213');
2756 INSERT INTO schema_migrations (version) VALUES ('20130118002239');
2758 INSERT INTO schema_migrations (version) VALUES ('20130122020042');
2760 INSERT INTO schema_migrations (version) VALUES ('20130122201442');
2762 INSERT INTO schema_migrations (version) VALUES ('20130122221616');
2764 INSERT INTO schema_migrations (version) VALUES ('20130123174514');
2766 INSERT INTO schema_migrations (version) VALUES ('20130123180224');
2768 INSERT INTO schema_migrations (version) VALUES ('20130123180228');
2770 INSERT INTO schema_migrations (version) VALUES ('20130125220425');
2772 INSERT INTO schema_migrations (version) VALUES ('20130128202518');
2774 INSERT INTO schema_migrations (version) VALUES ('20130128231343');
2776 INSERT INTO schema_migrations (version) VALUES ('20130130205749');
2778 INSERT INTO schema_migrations (version) VALUES ('20130203104818');
2780 INSERT INTO schema_migrations (version) VALUES ('20130203104824');
2782 INSERT INTO schema_migrations (version) VALUES ('20130203115329');
2784 INSERT INTO schema_migrations (version) VALUES ('20130207195855');
2786 INSERT INTO schema_migrations (version) VALUES ('20130218181504');
2788 INSERT INTO schema_migrations (version) VALUES ('20130226170000');
2790 INSERT INTO schema_migrations (version) VALUES ('20130313175417');
2792 INSERT INTO schema_migrations (version) VALUES ('20130315155820');
2794 INSERT INTO schema_migrations (version) VALUES ('20130315183626');
2796 INSERT INTO schema_migrations (version) VALUES ('20130315213205');
2798 INSERT INTO schema_migrations (version) VALUES ('20130318002138');
2800 INSERT INTO schema_migrations (version) VALUES ('20130319165853');
2802 INSERT INTO schema_migrations (version) VALUES ('20130319180730');
2804 INSERT INTO schema_migrations (version) VALUES ('20130319194637');
2806 INSERT INTO schema_migrations (version) VALUES ('20130319201431');
2808 INSERT INTO schema_migrations (version) VALUES ('20130319235957');
2810 INSERT INTO schema_migrations (version) VALUES ('20130320000107');
2812 INSERT INTO schema_migrations (version) VALUES ('20130326173804');
2814 INSERT INTO schema_migrations (version) VALUES ('20130326182917');
2816 INSERT INTO schema_migrations (version) VALUES ('20130415020241');
2818 INSERT INTO schema_migrations (version) VALUES ('20130425024459');
2820 INSERT INTO schema_migrations (version) VALUES ('20130425214427');
2822 INSERT INTO schema_migrations (version) VALUES ('20130523060112');
2824 INSERT INTO schema_migrations (version) VALUES ('20130523060213');
2826 INSERT INTO schema_migrations (version) VALUES ('20130524042319');
2828 INSERT INTO schema_migrations (version) VALUES ('20130528134100');
2830 INSERT INTO schema_migrations (version) VALUES ('20130606183519');
2832 INSERT INTO schema_migrations (version) VALUES ('20130608053730');
2834 INSERT INTO schema_migrations (version) VALUES ('20130610202538');
2836 INSERT INTO schema_migrations (version) VALUES ('20130611163736');
2838 INSERT INTO schema_migrations (version) VALUES ('20130612042554');
2840 INSERT INTO schema_migrations (version) VALUES ('20130617150007');
2842 INSERT INTO schema_migrations (version) VALUES ('20130626002829');
2844 INSERT INTO schema_migrations (version) VALUES ('20130626022810');
2846 INSERT INTO schema_migrations (version) VALUES ('20130627154537');
2848 INSERT INTO schema_migrations (version) VALUES ('20130627184333');
2850 INSERT INTO schema_migrations (version) VALUES ('20130708163414');
2852 INSERT INTO schema_migrations (version) VALUES ('20130708182912');
2854 INSERT INTO schema_migrations (version) VALUES ('20130708185153');
2856 INSERT INTO schema_migrations (version) VALUES ('20130724153034');
2858 INSERT INTO schema_migrations (version) VALUES ('20131007180607');
2860 INSERT INTO schema_migrations (version) VALUES ('20140117231056');
2862 INSERT INTO schema_migrations (version) VALUES ('20140124222114');
2864 INSERT INTO schema_migrations (version) VALUES ('20140129184311');
2866 INSERT INTO schema_migrations (version) VALUES ('20140317135600');
2868 INSERT INTO schema_migrations (version) VALUES ('20140319160547');
2870 INSERT INTO schema_migrations (version) VALUES ('20140321191343');
2872 INSERT INTO schema_migrations (version) VALUES ('20140324024606');
2874 INSERT INTO schema_migrations (version) VALUES ('20140325175653');
2876 INSERT INTO schema_migrations (version) VALUES ('20140402001908');
2878 INSERT INTO schema_migrations (version) VALUES ('20140407184311');
2880 INSERT INTO schema_migrations (version) VALUES ('20140421140924');
2882 INSERT INTO schema_migrations (version) VALUES ('20140421151939');
2884 INSERT INTO schema_migrations (version) VALUES ('20140421151940');
2886 INSERT INTO schema_migrations (version) VALUES ('20140422011506');
2888 INSERT INTO schema_migrations (version) VALUES ('20140423132913');
2890 INSERT INTO schema_migrations (version) VALUES ('20140423133559');
2892 INSERT INTO schema_migrations (version) VALUES ('20140501165548');
2894 INSERT INTO schema_migrations (version) VALUES ('20140519205916');
2896 INSERT INTO schema_migrations (version) VALUES ('20140527152921');
2898 INSERT INTO schema_migrations (version) VALUES ('20140530200539');
2900 INSERT INTO schema_migrations (version) VALUES ('20140601022548');
2902 INSERT INTO schema_migrations (version) VALUES ('20140602143352');
2904 INSERT INTO schema_migrations (version) VALUES ('20140607150616');
2906 INSERT INTO schema_migrations (version) VALUES ('20140611173003');
2908 INSERT INTO schema_migrations (version) VALUES ('20140627210837');
2910 INSERT INTO schema_migrations (version) VALUES ('20140709172343');
2912 INSERT INTO schema_migrations (version) VALUES ('20140714184006');
2914 INSERT INTO schema_migrations (version) VALUES ('20140811184643');
2916 INSERT INTO schema_migrations (version) VALUES ('20140817035914');
2918 INSERT INTO schema_migrations (version) VALUES ('20140818125735');
2920 INSERT INTO schema_migrations (version) VALUES ('20140826180337');
2922 INSERT INTO schema_migrations (version) VALUES ('20140828141043');
2924 INSERT INTO schema_migrations (version) VALUES ('20140909183946');
2926 INSERT INTO schema_migrations (version) VALUES ('20140911221252');
2928 INSERT INTO schema_migrations (version) VALUES ('20140918141529');
2930 INSERT INTO schema_migrations (version) VALUES ('20140918153541');
2932 INSERT INTO schema_migrations (version) VALUES ('20140918153705');
2934 INSERT INTO schema_migrations (version) VALUES ('20140924091559');
2936 INSERT INTO schema_migrations (version) VALUES ('20141111133038');
2938 INSERT INTO schema_migrations (version) VALUES ('20141208164553');
2940 INSERT INTO schema_migrations (version) VALUES ('20141208174553');
2942 INSERT INTO schema_migrations (version) VALUES ('20141208174653');
2944 INSERT INTO schema_migrations (version) VALUES ('20141208185217');
2946 INSERT INTO schema_migrations (version) VALUES ('20150122175935');
2948 INSERT INTO schema_migrations (version) VALUES ('20150123142953');
2950 INSERT INTO schema_migrations (version) VALUES ('20150203180223');
2952 INSERT INTO schema_migrations (version) VALUES ('20150206210804');
2954 INSERT INTO schema_migrations (version) VALUES ('20150206230342');
2956 INSERT INTO schema_migrations (version) VALUES ('20150216193428');
2958 INSERT INTO schema_migrations (version) VALUES ('20150303210106');
2960 INSERT INTO schema_migrations (version) VALUES ('20150312151136');
2962 INSERT INTO schema_migrations (version) VALUES ('20150317132720');
2964 INSERT INTO schema_migrations (version) VALUES ('20150324152204');
2966 INSERT INTO schema_migrations (version) VALUES ('20150423145759');
2968 INSERT INTO schema_migrations (version) VALUES ('20150512193020');
2970 INSERT INTO schema_migrations (version) VALUES ('20150526180251');
2972 INSERT INTO schema_migrations (version) VALUES ('20151202151426');
2974 INSERT INTO schema_migrations (version) VALUES ('20151215134304');
2976 INSERT INTO schema_migrations (version) VALUES ('20151229214707');
2978 INSERT INTO schema_migrations (version) VALUES ('20160208210629');
2980 INSERT INTO schema_migrations (version) VALUES ('20160209155729');
2982 INSERT INTO schema_migrations (version) VALUES ('20160324144017');
2984 INSERT INTO schema_migrations (version) VALUES ('20160506175108');
2986 INSERT INTO schema_migrations (version) VALUES ('20160509143250');
2988 INSERT INTO schema_migrations (version) VALUES ('20160808151559');
2990 INSERT INTO schema_migrations (version) VALUES ('20160819195557');
2992 INSERT INTO schema_migrations (version) VALUES ('20160819195725');
2994 INSERT INTO schema_migrations (version) VALUES ('20160901210110');
2996 INSERT INTO schema_migrations (version) VALUES ('20160909181442');
2998 INSERT INTO schema_migrations (version) VALUES ('20160926194129');
3000 INSERT INTO schema_migrations (version) VALUES ('20161019171346');
3002 INSERT INTO schema_migrations (version) VALUES ('20161111143147');
3004 INSERT INTO schema_migrations (version) VALUES ('20161115171221');
3006 INSERT INTO schema_migrations (version) VALUES ('20161115174218');
3008 INSERT INTO schema_migrations (version) VALUES ('20161213172944');
3010 INSERT INTO schema_migrations (version) VALUES ('20161222153434');
3012 INSERT INTO schema_migrations (version) VALUES ('20161223090712');
3014 INSERT INTO schema_migrations (version) VALUES ('20170102153111');
3016 INSERT INTO schema_migrations (version) VALUES ('20170105160301');
3018 INSERT INTO schema_migrations (version) VALUES ('20170105160302');
3020 INSERT INTO schema_migrations (version) VALUES ('20170216170823');
3022 INSERT INTO schema_migrations (version) VALUES ('20170301225558');
3024 INSERT INTO schema_migrations (version) VALUES ('20170319063406');
3026 INSERT INTO schema_migrations (version) VALUES ('20170328215436');
3028 INSERT INTO schema_migrations (version) VALUES ('20170330012505');
3030 INSERT INTO schema_migrations (version) VALUES ('20170419173031');
3032 INSERT INTO schema_migrations (version) VALUES ('20170419173712');
3034 INSERT INTO schema_migrations (version) VALUES ('20170419175801');
3036 INSERT INTO schema_migrations (version) VALUES ('20170628185847');
3038 INSERT INTO schema_migrations (version) VALUES ('20170704160233');
3040 INSERT INTO schema_migrations (version) VALUES ('20170706141334');
3042 INSERT INTO schema_migrations (version) VALUES ('20170824202826');
3044 INSERT INTO schema_migrations (version) VALUES ('20170906224040');
3046 INSERT INTO schema_migrations (version) VALUES ('20171027183824');
3048 INSERT INTO schema_migrations (version) VALUES ('20171208203841');
3050 INSERT INTO schema_migrations (version) VALUES ('20171212153352');