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,
303 secret_mounts jsonb DEFAULT '{}'::jsonb
308 -- Name: container_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
311 CREATE SEQUENCE container_requests_id_seq
320 -- Name: container_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
323 ALTER SEQUENCE container_requests_id_seq OWNED BY container_requests.id;
327 -- Name: containers; Type: TABLE; Schema: public; Owner: -
330 CREATE TABLE containers (
332 uuid character varying(255),
333 owner_uuid character varying(255),
334 created_at timestamp without time zone NOT NULL,
335 modified_at timestamp without time zone,
336 modified_by_client_uuid character varying(255),
337 modified_by_user_uuid character varying(255),
338 state character varying(255),
339 started_at timestamp without time zone,
340 finished_at timestamp without time zone,
341 log character varying(255),
343 cwd character varying(255),
345 output_path character varying(255),
347 runtime_constraints text,
348 output character varying(255),
349 container_image character varying(255),
350 progress double precision,
352 updated_at timestamp without time zone NOT NULL,
354 auth_uuid character varying(255),
355 locked_by_uuid character varying(255),
356 scheduling_parameters text,
357 secret_mounts jsonb DEFAULT '{}'::jsonb,
358 secret_mounts_md5 character varying DEFAULT '99914b932bd37a50b983c5e7c90ae93b'::character varying
363 -- Name: containers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
366 CREATE SEQUENCE containers_id_seq
375 -- Name: containers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
378 ALTER SEQUENCE containers_id_seq OWNED BY containers.id;
382 -- Name: groups; Type: TABLE; Schema: public; Owner: -
385 CREATE TABLE groups (
387 uuid character varying(255),
388 owner_uuid character varying(255),
389 created_at timestamp without time zone NOT NULL,
390 modified_by_client_uuid character varying(255),
391 modified_by_user_uuid character varying(255),
392 modified_at timestamp without time zone,
393 name character varying(255) NOT NULL,
394 description character varying(524288),
395 updated_at timestamp without time zone NOT NULL,
396 group_class character varying(255),
397 trash_at timestamp without time zone,
398 is_trashed boolean DEFAULT false NOT NULL,
399 delete_at timestamp without time zone
404 -- Name: groups_id_seq; Type: SEQUENCE; Schema: public; Owner: -
407 CREATE SEQUENCE groups_id_seq
416 -- Name: groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
419 ALTER SEQUENCE groups_id_seq OWNED BY groups.id;
423 -- Name: humans; Type: TABLE; Schema: public; Owner: -
426 CREATE TABLE humans (
428 uuid character varying(255) NOT NULL,
429 owner_uuid character varying(255) NOT NULL,
430 modified_by_client_uuid character varying(255),
431 modified_by_user_uuid character varying(255),
432 modified_at timestamp without time zone,
434 created_at timestamp without time zone NOT NULL,
435 updated_at timestamp without time zone NOT NULL
440 -- Name: humans_id_seq; Type: SEQUENCE; Schema: public; Owner: -
443 CREATE SEQUENCE humans_id_seq
452 -- Name: humans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
455 ALTER SEQUENCE humans_id_seq OWNED BY humans.id;
459 -- Name: job_tasks; Type: TABLE; Schema: public; Owner: -
462 CREATE TABLE job_tasks (
464 uuid character varying(255),
465 owner_uuid character varying(255),
466 modified_by_client_uuid character varying(255),
467 modified_by_user_uuid character varying(255),
468 modified_at timestamp without time zone,
469 job_uuid character varying(255),
473 progress double precision,
475 created_at timestamp without time zone NOT NULL,
476 updated_at timestamp without time zone NOT NULL,
477 created_by_job_task_uuid character varying(255),
479 started_at timestamp without time zone,
480 finished_at timestamp without time zone
485 -- Name: job_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
488 CREATE SEQUENCE job_tasks_id_seq
497 -- Name: job_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
500 ALTER SEQUENCE job_tasks_id_seq OWNED BY job_tasks.id;
504 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE; Schema: public; Owner: -
507 CREATE SEQUENCE job_tasks_qsequence_seq
516 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
519 ALTER SEQUENCE job_tasks_qsequence_seq OWNED BY job_tasks.qsequence;
523 -- Name: jobs; Type: TABLE; Schema: public; Owner: -
528 uuid character varying(255),
529 owner_uuid character varying(255),
530 modified_by_client_uuid character varying(255),
531 modified_by_user_uuid character varying(255),
532 modified_at timestamp without time zone,
533 submit_id character varying(255),
534 script character varying(255),
535 script_version character varying(255),
536 script_parameters text,
537 cancelled_by_client_uuid character varying(255),
538 cancelled_by_user_uuid character varying(255),
539 cancelled_at timestamp without time zone,
540 started_at timestamp without time zone,
541 finished_at timestamp without time zone,
544 output character varying(255),
545 created_at timestamp without time zone NOT NULL,
546 updated_at timestamp without time zone NOT NULL,
547 is_locked_by_uuid character varying(255),
548 log character varying(255),
550 runtime_constraints text,
551 nondeterministic boolean,
552 repository character varying(255),
553 supplied_script_version character varying(255),
554 docker_image_locator character varying(255),
555 priority integer DEFAULT 0 NOT NULL,
556 description character varying(524288),
557 state character varying(255),
558 arvados_sdk_version character varying(255),
560 script_parameters_digest character varying(255)
565 -- Name: jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
568 CREATE SEQUENCE jobs_id_seq
577 -- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
580 ALTER SEQUENCE jobs_id_seq OWNED BY jobs.id;
584 -- Name: keep_disks; Type: TABLE; Schema: public; Owner: -
587 CREATE TABLE keep_disks (
589 uuid character varying(255) NOT NULL,
590 owner_uuid character varying(255) NOT NULL,
591 modified_by_client_uuid character varying(255),
592 modified_by_user_uuid character varying(255),
593 modified_at timestamp without time zone,
594 ping_secret character varying(255) NOT NULL,
595 node_uuid character varying(255),
596 filesystem_uuid character varying(255),
599 is_readable boolean DEFAULT true NOT NULL,
600 is_writable boolean DEFAULT true NOT NULL,
601 last_read_at timestamp without time zone,
602 last_write_at timestamp without time zone,
603 last_ping_at timestamp without time zone,
604 created_at timestamp without time zone NOT NULL,
605 updated_at timestamp without time zone NOT NULL,
606 keep_service_uuid character varying(255)
611 -- Name: keep_disks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
614 CREATE SEQUENCE keep_disks_id_seq
623 -- Name: keep_disks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
626 ALTER SEQUENCE keep_disks_id_seq OWNED BY keep_disks.id;
630 -- Name: keep_services; Type: TABLE; Schema: public; Owner: -
633 CREATE TABLE keep_services (
635 uuid character varying(255) NOT NULL,
636 owner_uuid character varying(255) NOT NULL,
637 modified_by_client_uuid character varying(255),
638 modified_by_user_uuid character varying(255),
639 modified_at timestamp without time zone,
640 service_host character varying(255),
641 service_port integer,
642 service_ssl_flag boolean,
643 service_type character varying(255),
644 created_at timestamp without time zone NOT NULL,
645 updated_at timestamp without time zone NOT NULL,
646 read_only boolean DEFAULT false NOT NULL
651 -- Name: keep_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
654 CREATE SEQUENCE keep_services_id_seq
663 -- Name: keep_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
666 ALTER SEQUENCE keep_services_id_seq OWNED BY keep_services.id;
670 -- Name: links; Type: TABLE; Schema: public; Owner: -
675 uuid character varying(255),
676 owner_uuid character varying(255),
677 created_at timestamp without time zone NOT NULL,
678 modified_by_client_uuid character varying(255),
679 modified_by_user_uuid character varying(255),
680 modified_at timestamp without time zone,
681 tail_uuid character varying(255),
682 link_class character varying(255),
683 name character varying(255),
684 head_uuid character varying(255),
686 updated_at timestamp without time zone NOT NULL
691 -- Name: links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
694 CREATE SEQUENCE links_id_seq
703 -- Name: links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
706 ALTER SEQUENCE links_id_seq OWNED BY links.id;
710 -- Name: logs; Type: TABLE; Schema: public; Owner: -
715 uuid character varying(255),
716 owner_uuid character varying(255),
717 modified_by_client_uuid character varying(255),
718 modified_by_user_uuid character varying(255),
719 object_uuid character varying(255),
720 event_at timestamp without time zone,
721 event_type character varying(255),
724 created_at timestamp without time zone NOT NULL,
725 updated_at timestamp without time zone NOT NULL,
726 modified_at timestamp without time zone,
727 object_owner_uuid character varying(255)
732 -- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
735 CREATE SEQUENCE logs_id_seq
744 -- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
747 ALTER SEQUENCE logs_id_seq OWNED BY logs.id;
751 -- Name: users; Type: TABLE; Schema: public; Owner: -
756 uuid character varying(255),
757 owner_uuid character varying(255) NOT NULL,
758 created_at timestamp without time zone NOT NULL,
759 modified_by_client_uuid character varying(255),
760 modified_by_user_uuid character varying(255),
761 modified_at timestamp without time zone,
762 email character varying(255),
763 first_name character varying(255),
764 last_name character varying(255),
765 identity_url character varying(255),
768 updated_at timestamp without time zone NOT NULL,
769 default_owner_uuid character varying(255),
770 is_active boolean DEFAULT false,
771 username character varying(255)
776 -- Name: materialized_permission_view; Type: MATERIALIZED VIEW; Schema: public; Owner: -
779 CREATE MATERIALIZED VIEW materialized_permission_view AS
780 WITH RECURSIVE perm_value(name, val) AS (
781 VALUES ('can_read'::text,(1)::smallint), ('can_login'::text,1), ('can_write'::text,2), ('can_manage'::text,3)
782 ), perm_edges(tail_uuid, head_uuid, val, follow, trashed) AS (
783 SELECT links.tail_uuid,
786 ((pv.val = 3) OR (groups.uuid IS NOT NULL)) AS follow,
787 (0)::smallint AS trashed,
788 (0)::smallint AS followtrash
790 LEFT JOIN perm_value pv ON ((pv.name = (links.name)::text)))
791 LEFT JOIN groups ON (((pv.val < 3) AND ((groups.uuid)::text = (links.head_uuid)::text))))
792 WHERE ((links.link_class)::text = 'permission'::text)
794 SELECT groups.owner_uuid,
799 WHEN ((groups.trash_at IS NOT NULL) AND (groups.trash_at < clock_timestamp())) THEN 1
804 ), perm(val, follow, user_uuid, target_uuid, trashed) AS (
805 SELECT (3)::smallint AS val,
807 (users.uuid)::character varying(32) AS user_uuid,
808 (users.uuid)::character varying(32) AS target_uuid,
809 (0)::smallint AS trashed
812 SELECT (LEAST((perm_1.val)::integer, edges.val))::smallint AS val,
815 (edges.head_uuid)::character varying(32) AS target_uuid,
816 ((GREATEST((perm_1.trashed)::integer, edges.trashed) * edges.followtrash))::smallint AS trashed
818 JOIN perm_edges edges ON ((perm_1.follow AND ((edges.tail_uuid)::text = (perm_1.target_uuid)::text))))
820 SELECT perm.user_uuid,
822 max(perm.val) AS perm_level,
824 WHEN true THEN perm.target_uuid
825 ELSE NULL::character varying
826 END AS target_owner_uuid,
827 max(perm.trashed) AS trashed
829 GROUP BY perm.user_uuid, perm.target_uuid,
831 WHEN true THEN perm.target_uuid
832 ELSE NULL::character varying
838 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
843 uuid character varying(255),
844 owner_uuid character varying(255),
845 created_at timestamp without time zone NOT NULL,
846 modified_by_client_uuid character varying(255),
847 modified_by_user_uuid character varying(255),
848 modified_at timestamp without time zone,
850 hostname character varying(255),
851 domain character varying(255),
852 ip_address character varying(255),
853 first_ping_at timestamp without time zone,
854 last_ping_at timestamp without time zone,
856 updated_at timestamp without time zone NOT NULL,
858 job_uuid character varying(255)
863 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
866 CREATE SEQUENCE nodes_id_seq
875 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
878 ALTER SEQUENCE nodes_id_seq OWNED BY nodes.id;
882 -- Name: permission_refresh_lock; Type: TABLE; Schema: public; Owner: -
885 CREATE TABLE permission_refresh_lock (
891 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE; Schema: public; Owner: -
894 CREATE SEQUENCE permission_refresh_lock_id_seq
903 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
906 ALTER SEQUENCE permission_refresh_lock_id_seq OWNED BY permission_refresh_lock.id;
910 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -
913 CREATE TABLE pipeline_instances (
915 uuid character varying(255),
916 owner_uuid character varying(255),
917 created_at timestamp without time zone NOT NULL,
918 modified_by_client_uuid character varying(255),
919 modified_by_user_uuid character varying(255),
920 modified_at timestamp without time zone,
921 pipeline_template_uuid character varying(255),
922 name character varying(255),
924 updated_at timestamp without time zone NOT NULL,
926 state character varying(255),
927 components_summary text,
928 started_at timestamp without time zone,
929 finished_at timestamp without time zone,
930 description character varying(524288)
935 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
938 CREATE SEQUENCE pipeline_instances_id_seq
947 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
950 ALTER SEQUENCE pipeline_instances_id_seq OWNED BY pipeline_instances.id;
954 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -
957 CREATE TABLE pipeline_templates (
959 uuid character varying(255),
960 owner_uuid character varying(255),
961 created_at timestamp without time zone NOT NULL,
962 modified_by_client_uuid character varying(255),
963 modified_by_user_uuid character varying(255),
964 modified_at timestamp without time zone,
965 name character varying(255),
967 updated_at timestamp without time zone NOT NULL,
968 description character varying(524288)
973 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
976 CREATE SEQUENCE pipeline_templates_id_seq
985 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
988 ALTER SEQUENCE pipeline_templates_id_seq OWNED BY pipeline_templates.id;
992 -- Name: repositories; Type: TABLE; Schema: public; Owner: -
995 CREATE TABLE repositories (
997 uuid character varying(255) NOT NULL,
998 owner_uuid character varying(255) NOT NULL,
999 modified_by_client_uuid character varying(255),
1000 modified_by_user_uuid character varying(255),
1001 modified_at timestamp without time zone,
1002 name character varying(255),
1003 created_at timestamp without time zone NOT NULL,
1004 updated_at timestamp without time zone NOT NULL
1009 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1012 CREATE SEQUENCE repositories_id_seq
1021 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1024 ALTER SEQUENCE repositories_id_seq OWNED BY repositories.id;
1028 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
1031 CREATE TABLE schema_migrations (
1032 version character varying(255) NOT NULL
1037 -- Name: specimens; Type: TABLE; Schema: public; Owner: -
1040 CREATE TABLE specimens (
1041 id integer NOT NULL,
1042 uuid character varying(255),
1043 owner_uuid character varying(255),
1044 created_at timestamp without time zone NOT NULL,
1045 modified_by_client_uuid character varying(255),
1046 modified_by_user_uuid character varying(255),
1047 modified_at timestamp without time zone,
1048 material character varying(255),
1049 updated_at timestamp without time zone NOT NULL,
1055 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1058 CREATE SEQUENCE specimens_id_seq
1067 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1070 ALTER SEQUENCE specimens_id_seq OWNED BY specimens.id;
1074 -- Name: traits; Type: TABLE; Schema: public; Owner: -
1077 CREATE TABLE traits (
1078 id integer NOT NULL,
1079 uuid character varying(255) NOT NULL,
1080 owner_uuid character varying(255) NOT NULL,
1081 modified_by_client_uuid character varying(255),
1082 modified_by_user_uuid character varying(255),
1083 modified_at timestamp without time zone,
1084 name character varying(255),
1086 created_at timestamp without time zone NOT NULL,
1087 updated_at timestamp without time zone NOT NULL
1092 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1095 CREATE SEQUENCE traits_id_seq
1104 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1107 ALTER SEQUENCE traits_id_seq OWNED BY traits.id;
1111 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1114 CREATE SEQUENCE users_id_seq
1123 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1126 ALTER SEQUENCE users_id_seq OWNED BY users.id;
1130 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -
1133 CREATE TABLE virtual_machines (
1134 id integer NOT NULL,
1135 uuid character varying(255) NOT NULL,
1136 owner_uuid character varying(255) NOT NULL,
1137 modified_by_client_uuid character varying(255),
1138 modified_by_user_uuid character varying(255),
1139 modified_at timestamp without time zone,
1140 hostname character varying(255),
1141 created_at timestamp without time zone NOT NULL,
1142 updated_at timestamp without time zone NOT NULL
1147 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1150 CREATE SEQUENCE virtual_machines_id_seq
1159 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1162 ALTER SEQUENCE virtual_machines_id_seq OWNED BY virtual_machines.id;
1166 -- Name: workflows; Type: TABLE; Schema: public; Owner: -
1169 CREATE TABLE workflows (
1170 id integer NOT NULL,
1171 uuid character varying(255),
1172 owner_uuid character varying(255),
1173 created_at timestamp without time zone NOT NULL,
1174 modified_at timestamp without time zone,
1175 modified_by_client_uuid character varying(255),
1176 modified_by_user_uuid character varying(255),
1177 name character varying(255),
1180 updated_at timestamp without time zone NOT NULL
1185 -- Name: workflows_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1188 CREATE SEQUENCE workflows_id_seq
1197 -- Name: workflows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1200 ALTER SEQUENCE workflows_id_seq OWNED BY workflows.id;
1204 -- Name: api_client_authorizations id; Type: DEFAULT; Schema: public; Owner: -
1207 ALTER TABLE ONLY api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('api_client_authorizations_id_seq'::regclass);
1211 -- Name: api_clients id; Type: DEFAULT; Schema: public; Owner: -
1214 ALTER TABLE ONLY api_clients ALTER COLUMN id SET DEFAULT nextval('api_clients_id_seq'::regclass);
1218 -- Name: authorized_keys id; Type: DEFAULT; Schema: public; Owner: -
1221 ALTER TABLE ONLY authorized_keys ALTER COLUMN id SET DEFAULT nextval('authorized_keys_id_seq'::regclass);
1225 -- Name: collections id; Type: DEFAULT; Schema: public; Owner: -
1228 ALTER TABLE ONLY collections ALTER COLUMN id SET DEFAULT nextval('collections_id_seq'::regclass);
1232 -- Name: commit_ancestors id; Type: DEFAULT; Schema: public; Owner: -
1235 ALTER TABLE ONLY commit_ancestors ALTER COLUMN id SET DEFAULT nextval('commit_ancestors_id_seq'::regclass);
1239 -- Name: commits id; Type: DEFAULT; Schema: public; Owner: -
1242 ALTER TABLE ONLY commits ALTER COLUMN id SET DEFAULT nextval('commits_id_seq'::regclass);
1246 -- Name: container_requests id; Type: DEFAULT; Schema: public; Owner: -
1249 ALTER TABLE ONLY container_requests ALTER COLUMN id SET DEFAULT nextval('container_requests_id_seq'::regclass);
1253 -- Name: containers id; Type: DEFAULT; Schema: public; Owner: -
1256 ALTER TABLE ONLY containers ALTER COLUMN id SET DEFAULT nextval('containers_id_seq'::regclass);
1260 -- Name: groups id; Type: DEFAULT; Schema: public; Owner: -
1263 ALTER TABLE ONLY groups ALTER COLUMN id SET DEFAULT nextval('groups_id_seq'::regclass);
1267 -- Name: humans id; Type: DEFAULT; Schema: public; Owner: -
1270 ALTER TABLE ONLY humans ALTER COLUMN id SET DEFAULT nextval('humans_id_seq'::regclass);
1274 -- Name: job_tasks id; Type: DEFAULT; Schema: public; Owner: -
1277 ALTER TABLE ONLY job_tasks ALTER COLUMN id SET DEFAULT nextval('job_tasks_id_seq'::regclass);
1281 -- Name: jobs id; Type: DEFAULT; Schema: public; Owner: -
1284 ALTER TABLE ONLY jobs ALTER COLUMN id SET DEFAULT nextval('jobs_id_seq'::regclass);
1288 -- Name: keep_disks id; Type: DEFAULT; Schema: public; Owner: -
1291 ALTER TABLE ONLY keep_disks ALTER COLUMN id SET DEFAULT nextval('keep_disks_id_seq'::regclass);
1295 -- Name: keep_services id; Type: DEFAULT; Schema: public; Owner: -
1298 ALTER TABLE ONLY keep_services ALTER COLUMN id SET DEFAULT nextval('keep_services_id_seq'::regclass);
1302 -- Name: links id; Type: DEFAULT; Schema: public; Owner: -
1305 ALTER TABLE ONLY links ALTER COLUMN id SET DEFAULT nextval('links_id_seq'::regclass);
1309 -- Name: logs id; Type: DEFAULT; Schema: public; Owner: -
1312 ALTER TABLE ONLY logs ALTER COLUMN id SET DEFAULT nextval('logs_id_seq'::regclass);
1316 -- Name: nodes id; Type: DEFAULT; Schema: public; Owner: -
1319 ALTER TABLE ONLY nodes ALTER COLUMN id SET DEFAULT nextval('nodes_id_seq'::regclass);
1323 -- Name: permission_refresh_lock id; Type: DEFAULT; Schema: public; Owner: -
1326 ALTER TABLE ONLY permission_refresh_lock ALTER COLUMN id SET DEFAULT nextval('permission_refresh_lock_id_seq'::regclass);
1330 -- Name: pipeline_instances id; Type: DEFAULT; Schema: public; Owner: -
1333 ALTER TABLE ONLY pipeline_instances ALTER COLUMN id SET DEFAULT nextval('pipeline_instances_id_seq'::regclass);
1337 -- Name: pipeline_templates id; Type: DEFAULT; Schema: public; Owner: -
1340 ALTER TABLE ONLY pipeline_templates ALTER COLUMN id SET DEFAULT nextval('pipeline_templates_id_seq'::regclass);
1344 -- Name: repositories id; Type: DEFAULT; Schema: public; Owner: -
1347 ALTER TABLE ONLY repositories ALTER COLUMN id SET DEFAULT nextval('repositories_id_seq'::regclass);
1351 -- Name: specimens id; Type: DEFAULT; Schema: public; Owner: -
1354 ALTER TABLE ONLY specimens ALTER COLUMN id SET DEFAULT nextval('specimens_id_seq'::regclass);
1358 -- Name: traits id; Type: DEFAULT; Schema: public; Owner: -
1361 ALTER TABLE ONLY traits ALTER COLUMN id SET DEFAULT nextval('traits_id_seq'::regclass);
1365 -- Name: users id; Type: DEFAULT; Schema: public; Owner: -
1368 ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
1372 -- Name: virtual_machines id; Type: DEFAULT; Schema: public; Owner: -
1375 ALTER TABLE ONLY virtual_machines ALTER COLUMN id SET DEFAULT nextval('virtual_machines_id_seq'::regclass);
1379 -- Name: workflows id; Type: DEFAULT; Schema: public; Owner: -
1382 ALTER TABLE ONLY workflows ALTER COLUMN id SET DEFAULT nextval('workflows_id_seq'::regclass);
1386 -- Name: api_client_authorizations api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1389 ALTER TABLE ONLY api_client_authorizations
1390 ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1394 -- Name: api_clients api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1397 ALTER TABLE ONLY api_clients
1398 ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1402 -- Name: authorized_keys authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1405 ALTER TABLE ONLY authorized_keys
1406 ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1410 -- Name: collections collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1413 ALTER TABLE ONLY collections
1414 ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1418 -- Name: commit_ancestors commit_ancestors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1421 ALTER TABLE ONLY commit_ancestors
1422 ADD CONSTRAINT commit_ancestors_pkey PRIMARY KEY (id);
1426 -- Name: commits commits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1429 ALTER TABLE ONLY commits
1430 ADD CONSTRAINT commits_pkey PRIMARY KEY (id);
1434 -- Name: container_requests container_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1437 ALTER TABLE ONLY container_requests
1438 ADD CONSTRAINT container_requests_pkey PRIMARY KEY (id);
1442 -- Name: containers containers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1445 ALTER TABLE ONLY containers
1446 ADD CONSTRAINT containers_pkey PRIMARY KEY (id);
1450 -- Name: groups groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1453 ALTER TABLE ONLY groups
1454 ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1458 -- Name: humans humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1461 ALTER TABLE ONLY humans
1462 ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1466 -- Name: job_tasks job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1469 ALTER TABLE ONLY job_tasks
1470 ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1474 -- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1477 ALTER TABLE ONLY jobs
1478 ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1482 -- Name: keep_disks keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1485 ALTER TABLE ONLY keep_disks
1486 ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1490 -- Name: keep_services keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1493 ALTER TABLE ONLY keep_services
1494 ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1498 -- Name: links links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1501 ALTER TABLE ONLY links
1502 ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1506 -- Name: logs logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1509 ALTER TABLE ONLY logs
1510 ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1514 -- Name: nodes nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1517 ALTER TABLE ONLY nodes
1518 ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1522 -- Name: permission_refresh_lock permission_refresh_lock_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1525 ALTER TABLE ONLY permission_refresh_lock
1526 ADD CONSTRAINT permission_refresh_lock_pkey PRIMARY KEY (id);
1530 -- Name: pipeline_instances pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1533 ALTER TABLE ONLY pipeline_instances
1534 ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1538 -- Name: pipeline_templates pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1541 ALTER TABLE ONLY pipeline_templates
1542 ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1546 -- Name: repositories repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1549 ALTER TABLE ONLY repositories
1550 ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1554 -- Name: specimens specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1557 ALTER TABLE ONLY specimens
1558 ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1562 -- Name: traits traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1565 ALTER TABLE ONLY traits
1566 ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1570 -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1573 ALTER TABLE ONLY users
1574 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1578 -- Name: virtual_machines virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1581 ALTER TABLE ONLY virtual_machines
1582 ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1586 -- Name: workflows workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1589 ALTER TABLE ONLY workflows
1590 ADD CONSTRAINT workflows_pkey PRIMARY KEY (id);
1594 -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -
1597 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);
1601 -- Name: api_clients_search_index; Type: INDEX; Schema: public; Owner: -
1604 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);
1608 -- Name: authorized_keys_search_index; Type: INDEX; Schema: public; Owner: -
1611 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);
1615 -- Name: collection_index_on_properties; Type: INDEX; Schema: public; Owner: -
1618 CREATE INDEX collection_index_on_properties ON collections USING gin (properties);
1622 -- Name: collections_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1625 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)));
1629 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -
1632 CREATE INDEX collections_search_index ON collections USING btree (owner_uuid, modified_by_client_uuid, modified_by_user_uuid, portable_data_hash, uuid, name);
1636 -- Name: container_requests_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1639 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)));
1643 -- Name: container_requests_search_index; Type: INDEX; Schema: public; Owner: -
1646 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);
1650 -- Name: containers_search_index; Type: INDEX; Schema: public; Owner: -
1653 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);
1657 -- Name: groups_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1660 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)));
1664 -- Name: groups_search_index; Type: INDEX; Schema: public; Owner: -
1667 CREATE INDEX groups_search_index ON groups USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, group_class);
1671 -- Name: humans_search_index; Type: INDEX; Schema: public; Owner: -
1674 CREATE INDEX humans_search_index ON humans USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid);
1678 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -
1681 CREATE INDEX index_api_client_authorizations_on_api_client_id ON api_client_authorizations USING btree (api_client_id);
1685 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -
1688 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON api_client_authorizations USING btree (api_token);
1692 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -
1695 CREATE INDEX index_api_client_authorizations_on_expires_at ON api_client_authorizations USING btree (expires_at);
1699 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -
1702 CREATE INDEX index_api_client_authorizations_on_user_id ON api_client_authorizations USING btree (user_id);
1706 -- Name: index_api_client_authorizations_on_uuid; Type: INDEX; Schema: public; Owner: -
1709 CREATE UNIQUE INDEX index_api_client_authorizations_on_uuid ON api_client_authorizations USING btree (uuid);
1713 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -
1716 CREATE INDEX index_api_clients_on_created_at ON api_clients USING btree (created_at);
1720 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -
1723 CREATE INDEX index_api_clients_on_modified_at ON api_clients USING btree (modified_at);
1727 -- Name: index_api_clients_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1730 CREATE INDEX index_api_clients_on_owner_uuid ON api_clients USING btree (owner_uuid);
1734 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -
1737 CREATE UNIQUE INDEX index_api_clients_on_uuid ON api_clients USING btree (uuid);
1741 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -
1744 CREATE INDEX index_authkeys_on_user_and_expires_at ON authorized_keys USING btree (authorized_user_uuid, expires_at);
1748 -- Name: index_authorized_keys_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1751 CREATE INDEX index_authorized_keys_on_owner_uuid ON authorized_keys USING btree (owner_uuid);
1755 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -
1758 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON authorized_keys USING btree (uuid);
1762 -- Name: index_collections_on_created_at; Type: INDEX; Schema: public; Owner: -
1765 CREATE INDEX index_collections_on_created_at ON collections USING btree (created_at);
1769 -- Name: index_collections_on_delete_at; Type: INDEX; Schema: public; Owner: -
1772 CREATE INDEX index_collections_on_delete_at ON collections USING btree (delete_at);
1776 -- Name: index_collections_on_is_trashed; Type: INDEX; Schema: public; Owner: -
1779 CREATE INDEX index_collections_on_is_trashed ON collections USING btree (is_trashed);
1783 -- Name: index_collections_on_modified_at; Type: INDEX; Schema: public; Owner: -
1786 CREATE INDEX index_collections_on_modified_at ON collections USING btree (modified_at);
1790 -- Name: index_collections_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1793 CREATE INDEX index_collections_on_modified_at_uuid ON collections USING btree (modified_at DESC, uuid);
1797 -- Name: index_collections_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1800 CREATE INDEX index_collections_on_owner_uuid ON collections USING btree (owner_uuid);
1804 -- Name: index_collections_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
1807 CREATE UNIQUE INDEX index_collections_on_owner_uuid_and_name ON collections USING btree (owner_uuid, name) WHERE (is_trashed = false);
1811 -- Name: index_collections_on_portable_data_hash; Type: INDEX; Schema: public; Owner: -
1814 CREATE INDEX index_collections_on_portable_data_hash ON collections USING btree (portable_data_hash);
1818 -- Name: index_collections_on_trash_at; Type: INDEX; Schema: public; Owner: -
1821 CREATE INDEX index_collections_on_trash_at ON collections USING btree (trash_at);
1825 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -
1828 CREATE UNIQUE INDEX index_collections_on_uuid ON collections USING btree (uuid);
1832 -- Name: index_commit_ancestors_on_descendant_and_ancestor; Type: INDEX; Schema: public; Owner: -
1835 CREATE UNIQUE INDEX index_commit_ancestors_on_descendant_and_ancestor ON commit_ancestors USING btree (descendant, ancestor);
1839 -- Name: index_commits_on_repository_name_and_sha1; Type: INDEX; Schema: public; Owner: -
1842 CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON commits USING btree (repository_name, sha1);
1846 -- Name: index_container_requests_on_container_uuid; Type: INDEX; Schema: public; Owner: -
1849 CREATE INDEX index_container_requests_on_container_uuid ON container_requests USING btree (container_uuid);
1853 -- Name: index_container_requests_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1856 CREATE INDEX index_container_requests_on_modified_at_uuid ON container_requests USING btree (modified_at DESC, uuid);
1860 -- Name: index_container_requests_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1863 CREATE INDEX index_container_requests_on_owner_uuid ON container_requests USING btree (owner_uuid);
1867 -- Name: index_container_requests_on_requesting_container_uuid; Type: INDEX; Schema: public; Owner: -
1870 CREATE INDEX index_container_requests_on_requesting_container_uuid ON container_requests USING btree (requesting_container_uuid);
1874 -- Name: index_container_requests_on_uuid; Type: INDEX; Schema: public; Owner: -
1877 CREATE UNIQUE INDEX index_container_requests_on_uuid ON container_requests USING btree (uuid);
1881 -- Name: index_containers_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1884 CREATE INDEX index_containers_on_modified_at_uuid ON containers USING btree (modified_at DESC, uuid);
1888 -- Name: index_containers_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1891 CREATE INDEX index_containers_on_owner_uuid ON containers USING btree (owner_uuid);
1895 -- Name: index_containers_on_secret_mounts_md5; Type: INDEX; Schema: public; Owner: -
1898 CREATE INDEX index_containers_on_secret_mounts_md5 ON containers USING btree (secret_mounts_md5);
1902 -- Name: index_containers_on_uuid; Type: INDEX; Schema: public; Owner: -
1905 CREATE UNIQUE INDEX index_containers_on_uuid ON containers USING btree (uuid);
1909 -- Name: index_groups_on_created_at; Type: INDEX; Schema: public; Owner: -
1912 CREATE INDEX index_groups_on_created_at ON groups USING btree (created_at);
1916 -- Name: index_groups_on_delete_at; Type: INDEX; Schema: public; Owner: -
1919 CREATE INDEX index_groups_on_delete_at ON groups USING btree (delete_at);
1923 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -
1926 CREATE INDEX index_groups_on_group_class ON groups USING btree (group_class);
1930 -- Name: index_groups_on_is_trashed; Type: INDEX; Schema: public; Owner: -
1933 CREATE INDEX index_groups_on_is_trashed ON groups USING btree (is_trashed);
1937 -- Name: index_groups_on_modified_at; Type: INDEX; Schema: public; Owner: -
1940 CREATE INDEX index_groups_on_modified_at ON groups USING btree (modified_at);
1944 -- Name: index_groups_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1947 CREATE INDEX index_groups_on_modified_at_uuid ON groups USING btree (modified_at DESC, uuid);
1951 -- Name: index_groups_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1954 CREATE INDEX index_groups_on_owner_uuid ON groups USING btree (owner_uuid);
1958 -- Name: index_groups_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
1961 CREATE UNIQUE INDEX index_groups_on_owner_uuid_and_name ON groups USING btree (owner_uuid, name) WHERE (is_trashed = false);
1965 -- Name: index_groups_on_trash_at; Type: INDEX; Schema: public; Owner: -
1968 CREATE INDEX index_groups_on_trash_at ON groups USING btree (trash_at);
1972 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -
1975 CREATE UNIQUE INDEX index_groups_on_uuid ON groups USING btree (uuid);
1979 -- Name: index_humans_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1982 CREATE INDEX index_humans_on_owner_uuid ON humans USING btree (owner_uuid);
1986 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -
1989 CREATE UNIQUE INDEX index_humans_on_uuid ON humans USING btree (uuid);
1993 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -
1996 CREATE INDEX index_job_tasks_on_created_at ON job_tasks USING btree (created_at);
2000 -- Name: index_job_tasks_on_created_by_job_task_uuid; Type: INDEX; Schema: public; Owner: -
2003 CREATE INDEX index_job_tasks_on_created_by_job_task_uuid ON job_tasks USING btree (created_by_job_task_uuid);
2007 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -
2010 CREATE INDEX index_job_tasks_on_job_uuid ON job_tasks USING btree (job_uuid);
2014 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -
2017 CREATE INDEX index_job_tasks_on_modified_at ON job_tasks USING btree (modified_at);
2021 -- Name: index_job_tasks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2024 CREATE INDEX index_job_tasks_on_owner_uuid ON job_tasks USING btree (owner_uuid);
2028 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -
2031 CREATE INDEX index_job_tasks_on_sequence ON job_tasks USING btree (sequence);
2035 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -
2038 CREATE INDEX index_job_tasks_on_success ON job_tasks USING btree (success);
2042 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -
2045 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON job_tasks USING btree (uuid);
2049 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -
2052 CREATE INDEX index_jobs_on_created_at ON jobs USING btree (created_at);
2056 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -
2059 CREATE INDEX index_jobs_on_finished_at ON jobs USING btree (finished_at);
2063 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2066 CREATE INDEX index_jobs_on_modified_at ON jobs USING btree (modified_at);
2070 -- Name: index_jobs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2073 CREATE INDEX index_jobs_on_modified_at_uuid ON jobs USING btree (modified_at DESC, uuid);
2077 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -
2080 CREATE INDEX index_jobs_on_output ON jobs USING btree (output);
2084 -- Name: index_jobs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2087 CREATE INDEX index_jobs_on_owner_uuid ON jobs USING btree (owner_uuid);
2091 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -
2094 CREATE INDEX index_jobs_on_script ON jobs USING btree (script);
2098 -- Name: index_jobs_on_script_parameters_digest; Type: INDEX; Schema: public; Owner: -
2101 CREATE INDEX index_jobs_on_script_parameters_digest ON jobs USING btree (script_parameters_digest);
2105 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -
2108 CREATE INDEX index_jobs_on_started_at ON jobs USING btree (started_at);
2112 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -
2115 CREATE UNIQUE INDEX index_jobs_on_submit_id ON jobs USING btree (submit_id);
2119 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -
2122 CREATE UNIQUE INDEX index_jobs_on_uuid ON jobs USING btree (uuid);
2126 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -
2129 CREATE INDEX index_keep_disks_on_filesystem_uuid ON keep_disks USING btree (filesystem_uuid);
2133 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -
2136 CREATE INDEX index_keep_disks_on_last_ping_at ON keep_disks USING btree (last_ping_at);
2140 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -
2143 CREATE INDEX index_keep_disks_on_node_uuid ON keep_disks USING btree (node_uuid);
2147 -- Name: index_keep_disks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2150 CREATE INDEX index_keep_disks_on_owner_uuid ON keep_disks USING btree (owner_uuid);
2154 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -
2157 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON keep_disks USING btree (uuid);
2161 -- Name: index_keep_services_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2164 CREATE INDEX index_keep_services_on_owner_uuid ON keep_services USING btree (owner_uuid);
2168 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -
2171 CREATE UNIQUE INDEX index_keep_services_on_uuid ON keep_services USING btree (uuid);
2175 -- Name: index_links_on_created_at; Type: INDEX; Schema: public; Owner: -
2178 CREATE INDEX index_links_on_created_at ON links USING btree (created_at);
2182 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -
2185 CREATE INDEX index_links_on_head_uuid ON links USING btree (head_uuid);
2189 -- Name: index_links_on_modified_at; Type: INDEX; Schema: public; Owner: -
2192 CREATE INDEX index_links_on_modified_at ON links USING btree (modified_at);
2196 -- Name: index_links_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2199 CREATE INDEX index_links_on_modified_at_uuid ON links USING btree (modified_at DESC, uuid);
2203 -- Name: index_links_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2206 CREATE INDEX index_links_on_owner_uuid ON links USING btree (owner_uuid);
2210 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -
2213 CREATE INDEX index_links_on_tail_uuid ON links USING btree (tail_uuid);
2217 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -
2220 CREATE UNIQUE INDEX index_links_on_uuid ON links USING btree (uuid);
2224 -- Name: index_logs_on_created_at; Type: INDEX; Schema: public; Owner: -
2227 CREATE INDEX index_logs_on_created_at ON logs USING btree (created_at);
2231 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -
2234 CREATE INDEX index_logs_on_event_at ON logs USING btree (event_at);
2238 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -
2241 CREATE INDEX index_logs_on_event_type ON logs USING btree (event_type);
2245 -- Name: index_logs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2248 CREATE INDEX index_logs_on_modified_at ON logs USING btree (modified_at);
2252 -- Name: index_logs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2255 CREATE INDEX index_logs_on_modified_at_uuid ON logs USING btree (modified_at DESC, uuid);
2259 -- Name: index_logs_on_object_owner_uuid; Type: INDEX; Schema: public; Owner: -
2262 CREATE INDEX index_logs_on_object_owner_uuid ON logs USING btree (object_owner_uuid);
2266 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -
2269 CREATE INDEX index_logs_on_object_uuid ON logs USING btree (object_uuid);
2273 -- Name: index_logs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2276 CREATE INDEX index_logs_on_owner_uuid ON logs USING btree (owner_uuid);
2280 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -
2283 CREATE INDEX index_logs_on_summary ON logs USING btree (summary);
2287 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -
2290 CREATE UNIQUE INDEX index_logs_on_uuid ON logs USING btree (uuid);
2294 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -
2297 CREATE INDEX index_nodes_on_created_at ON nodes USING btree (created_at);
2301 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -
2304 CREATE INDEX index_nodes_on_hostname ON nodes USING btree (hostname);
2308 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -
2311 CREATE INDEX index_nodes_on_modified_at ON nodes USING btree (modified_at);
2315 -- Name: index_nodes_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2318 CREATE INDEX index_nodes_on_owner_uuid ON nodes USING btree (owner_uuid);
2322 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -
2325 CREATE UNIQUE INDEX index_nodes_on_slot_number ON nodes USING btree (slot_number);
2329 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -
2332 CREATE UNIQUE INDEX index_nodes_on_uuid ON nodes USING btree (uuid);
2336 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -
2339 CREATE INDEX index_pipeline_instances_on_created_at ON pipeline_instances USING btree (created_at);
2343 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -
2346 CREATE INDEX index_pipeline_instances_on_modified_at ON pipeline_instances USING btree (modified_at);
2350 -- Name: index_pipeline_instances_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2353 CREATE INDEX index_pipeline_instances_on_modified_at_uuid ON pipeline_instances USING btree (modified_at DESC, uuid);
2357 -- Name: index_pipeline_instances_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2360 CREATE INDEX index_pipeline_instances_on_owner_uuid ON pipeline_instances USING btree (owner_uuid);
2364 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -
2367 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON pipeline_instances USING btree (uuid);
2371 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -
2374 CREATE INDEX index_pipeline_templates_on_created_at ON pipeline_templates USING btree (created_at);
2378 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -
2381 CREATE INDEX index_pipeline_templates_on_modified_at ON pipeline_templates USING btree (modified_at);
2385 -- Name: index_pipeline_templates_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2388 CREATE INDEX index_pipeline_templates_on_modified_at_uuid ON pipeline_templates USING btree (modified_at DESC, uuid);
2392 -- Name: index_pipeline_templates_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2395 CREATE INDEX index_pipeline_templates_on_owner_uuid ON pipeline_templates USING btree (owner_uuid);
2399 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -
2402 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON pipeline_templates USING btree (uuid);
2406 -- Name: index_repositories_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2409 CREATE INDEX index_repositories_on_modified_at_uuid ON repositories USING btree (modified_at DESC, uuid);
2413 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -
2416 CREATE UNIQUE INDEX index_repositories_on_name ON repositories USING btree (name);
2420 -- Name: index_repositories_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2423 CREATE INDEX index_repositories_on_owner_uuid ON repositories USING btree (owner_uuid);
2427 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -
2430 CREATE UNIQUE INDEX index_repositories_on_uuid ON repositories USING btree (uuid);
2434 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -
2437 CREATE INDEX index_specimens_on_created_at ON specimens USING btree (created_at);
2441 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -
2444 CREATE INDEX index_specimens_on_modified_at ON specimens USING btree (modified_at);
2448 -- Name: index_specimens_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2451 CREATE INDEX index_specimens_on_owner_uuid ON specimens USING btree (owner_uuid);
2455 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -
2458 CREATE UNIQUE INDEX index_specimens_on_uuid ON specimens USING btree (uuid);
2462 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -
2465 CREATE INDEX index_traits_on_name ON traits USING btree (name);
2469 -- Name: index_traits_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2472 CREATE INDEX index_traits_on_owner_uuid ON traits USING btree (owner_uuid);
2476 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -
2479 CREATE UNIQUE INDEX index_traits_on_uuid ON traits USING btree (uuid);
2483 -- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: -
2486 CREATE INDEX index_users_on_created_at ON users USING btree (created_at);
2490 -- Name: index_users_on_modified_at; Type: INDEX; Schema: public; Owner: -
2493 CREATE INDEX index_users_on_modified_at ON users USING btree (modified_at);
2497 -- Name: index_users_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2500 CREATE INDEX index_users_on_modified_at_uuid ON users USING btree (modified_at DESC, uuid);
2504 -- Name: index_users_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2507 CREATE INDEX index_users_on_owner_uuid ON users USING btree (owner_uuid);
2511 -- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: -
2514 CREATE UNIQUE INDEX index_users_on_username ON users USING btree (username);
2518 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -
2521 CREATE UNIQUE INDEX index_users_on_uuid ON users USING btree (uuid);
2525 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -
2528 CREATE INDEX index_virtual_machines_on_hostname ON virtual_machines USING btree (hostname);
2532 -- Name: index_virtual_machines_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2535 CREATE INDEX index_virtual_machines_on_modified_at_uuid ON virtual_machines USING btree (modified_at DESC, uuid);
2539 -- Name: index_virtual_machines_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2542 CREATE INDEX index_virtual_machines_on_owner_uuid ON virtual_machines USING btree (owner_uuid);
2546 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -
2549 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON virtual_machines USING btree (uuid);
2553 -- Name: index_workflows_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2556 CREATE INDEX index_workflows_on_modified_at_uuid ON workflows USING btree (modified_at DESC, uuid);
2560 -- Name: index_workflows_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2563 CREATE INDEX index_workflows_on_owner_uuid ON workflows USING btree (owner_uuid);
2567 -- Name: index_workflows_on_uuid; Type: INDEX; Schema: public; Owner: -
2570 CREATE UNIQUE INDEX index_workflows_on_uuid ON workflows USING btree (uuid);
2574 -- Name: job_tasks_search_index; Type: INDEX; Schema: public; Owner: -
2577 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);
2581 -- Name: jobs_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2584 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))));
2588 -- Name: jobs_search_index; Type: INDEX; Schema: public; Owner: -
2591 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);
2595 -- Name: keep_disks_search_index; Type: INDEX; Schema: public; Owner: -
2598 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);
2602 -- Name: keep_services_search_index; Type: INDEX; Schema: public; Owner: -
2605 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);
2609 -- Name: links_search_index; Type: INDEX; Schema: public; Owner: -
2612 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);
2616 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -
2619 CREATE UNIQUE INDEX links_tail_name_unique_if_link_class_name ON links USING btree (tail_uuid, name) WHERE ((link_class)::text = 'name'::text);
2623 -- Name: logs_search_index; Type: INDEX; Schema: public; Owner: -
2626 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);
2630 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -
2633 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);
2637 -- Name: permission_target_trashed; Type: INDEX; Schema: public; Owner: -
2640 CREATE INDEX permission_target_trashed ON materialized_permission_view USING btree (trashed, target_uuid);
2644 -- Name: permission_target_user_trashed_level; Type: INDEX; Schema: public; Owner: -
2647 CREATE INDEX permission_target_user_trashed_level ON materialized_permission_view USING btree (user_uuid, trashed, perm_level);
2651 -- Name: pipeline_instances_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2654 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)));
2658 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -
2661 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);
2665 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -
2668 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON pipeline_templates USING btree (owner_uuid, name);
2672 -- Name: pipeline_templates_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2675 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)));
2679 -- Name: pipeline_templates_search_index; Type: INDEX; Schema: public; Owner: -
2682 CREATE INDEX pipeline_templates_search_index ON pipeline_templates USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2686 -- Name: repositories_search_index; Type: INDEX; Schema: public; Owner: -
2689 CREATE INDEX repositories_search_index ON repositories USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2693 -- Name: specimens_search_index; Type: INDEX; Schema: public; Owner: -
2696 CREATE INDEX specimens_search_index ON specimens USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, material);
2700 -- Name: traits_search_index; Type: INDEX; Schema: public; Owner: -
2703 CREATE INDEX traits_search_index ON traits USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2707 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
2710 CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
2714 -- Name: users_search_index; Type: INDEX; Schema: public; Owner: -
2717 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);
2721 -- Name: virtual_machines_search_index; Type: INDEX; Schema: public; Owner: -
2724 CREATE INDEX virtual_machines_search_index ON virtual_machines USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname);
2728 -- Name: workflows_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2731 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))));
2735 -- Name: workflows_search_idx; Type: INDEX; Schema: public; Owner: -
2738 CREATE INDEX workflows_search_idx ON workflows USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2742 -- PostgreSQL database dump complete
2745 SET search_path TO "$user", public;
2747 INSERT INTO schema_migrations (version) VALUES ('20121016005009');
2749 INSERT INTO schema_migrations (version) VALUES ('20130105203021');
2751 INSERT INTO schema_migrations (version) VALUES ('20130105224358');
2753 INSERT INTO schema_migrations (version) VALUES ('20130105224618');
2755 INSERT INTO schema_migrations (version) VALUES ('20130107181109');
2757 INSERT INTO schema_migrations (version) VALUES ('20130107212832');
2759 INSERT INTO schema_migrations (version) VALUES ('20130109175700');
2761 INSERT INTO schema_migrations (version) VALUES ('20130109220548');
2763 INSERT INTO schema_migrations (version) VALUES ('20130113214204');
2765 INSERT INTO schema_migrations (version) VALUES ('20130116024233');
2767 INSERT INTO schema_migrations (version) VALUES ('20130116215213');
2769 INSERT INTO schema_migrations (version) VALUES ('20130118002239');
2771 INSERT INTO schema_migrations (version) VALUES ('20130122020042');
2773 INSERT INTO schema_migrations (version) VALUES ('20130122201442');
2775 INSERT INTO schema_migrations (version) VALUES ('20130122221616');
2777 INSERT INTO schema_migrations (version) VALUES ('20130123174514');
2779 INSERT INTO schema_migrations (version) VALUES ('20130123180224');
2781 INSERT INTO schema_migrations (version) VALUES ('20130123180228');
2783 INSERT INTO schema_migrations (version) VALUES ('20130125220425');
2785 INSERT INTO schema_migrations (version) VALUES ('20130128202518');
2787 INSERT INTO schema_migrations (version) VALUES ('20130128231343');
2789 INSERT INTO schema_migrations (version) VALUES ('20130130205749');
2791 INSERT INTO schema_migrations (version) VALUES ('20130203104818');
2793 INSERT INTO schema_migrations (version) VALUES ('20130203104824');
2795 INSERT INTO schema_migrations (version) VALUES ('20130203115329');
2797 INSERT INTO schema_migrations (version) VALUES ('20130207195855');
2799 INSERT INTO schema_migrations (version) VALUES ('20130218181504');
2801 INSERT INTO schema_migrations (version) VALUES ('20130226170000');
2803 INSERT INTO schema_migrations (version) VALUES ('20130313175417');
2805 INSERT INTO schema_migrations (version) VALUES ('20130315155820');
2807 INSERT INTO schema_migrations (version) VALUES ('20130315183626');
2809 INSERT INTO schema_migrations (version) VALUES ('20130315213205');
2811 INSERT INTO schema_migrations (version) VALUES ('20130318002138');
2813 INSERT INTO schema_migrations (version) VALUES ('20130319165853');
2815 INSERT INTO schema_migrations (version) VALUES ('20130319180730');
2817 INSERT INTO schema_migrations (version) VALUES ('20130319194637');
2819 INSERT INTO schema_migrations (version) VALUES ('20130319201431');
2821 INSERT INTO schema_migrations (version) VALUES ('20130319235957');
2823 INSERT INTO schema_migrations (version) VALUES ('20130320000107');
2825 INSERT INTO schema_migrations (version) VALUES ('20130326173804');
2827 INSERT INTO schema_migrations (version) VALUES ('20130326182917');
2829 INSERT INTO schema_migrations (version) VALUES ('20130415020241');
2831 INSERT INTO schema_migrations (version) VALUES ('20130425024459');
2833 INSERT INTO schema_migrations (version) VALUES ('20130425214427');
2835 INSERT INTO schema_migrations (version) VALUES ('20130523060112');
2837 INSERT INTO schema_migrations (version) VALUES ('20130523060213');
2839 INSERT INTO schema_migrations (version) VALUES ('20130524042319');
2841 INSERT INTO schema_migrations (version) VALUES ('20130528134100');
2843 INSERT INTO schema_migrations (version) VALUES ('20130606183519');
2845 INSERT INTO schema_migrations (version) VALUES ('20130608053730');
2847 INSERT INTO schema_migrations (version) VALUES ('20130610202538');
2849 INSERT INTO schema_migrations (version) VALUES ('20130611163736');
2851 INSERT INTO schema_migrations (version) VALUES ('20130612042554');
2853 INSERT INTO schema_migrations (version) VALUES ('20130617150007');
2855 INSERT INTO schema_migrations (version) VALUES ('20130626002829');
2857 INSERT INTO schema_migrations (version) VALUES ('20130626022810');
2859 INSERT INTO schema_migrations (version) VALUES ('20130627154537');
2861 INSERT INTO schema_migrations (version) VALUES ('20130627184333');
2863 INSERT INTO schema_migrations (version) VALUES ('20130708163414');
2865 INSERT INTO schema_migrations (version) VALUES ('20130708182912');
2867 INSERT INTO schema_migrations (version) VALUES ('20130708185153');
2869 INSERT INTO schema_migrations (version) VALUES ('20130724153034');
2871 INSERT INTO schema_migrations (version) VALUES ('20131007180607');
2873 INSERT INTO schema_migrations (version) VALUES ('20140117231056');
2875 INSERT INTO schema_migrations (version) VALUES ('20140124222114');
2877 INSERT INTO schema_migrations (version) VALUES ('20140129184311');
2879 INSERT INTO schema_migrations (version) VALUES ('20140317135600');
2881 INSERT INTO schema_migrations (version) VALUES ('20140319160547');
2883 INSERT INTO schema_migrations (version) VALUES ('20140321191343');
2885 INSERT INTO schema_migrations (version) VALUES ('20140324024606');
2887 INSERT INTO schema_migrations (version) VALUES ('20140325175653');
2889 INSERT INTO schema_migrations (version) VALUES ('20140402001908');
2891 INSERT INTO schema_migrations (version) VALUES ('20140407184311');
2893 INSERT INTO schema_migrations (version) VALUES ('20140421140924');
2895 INSERT INTO schema_migrations (version) VALUES ('20140421151939');
2897 INSERT INTO schema_migrations (version) VALUES ('20140421151940');
2899 INSERT INTO schema_migrations (version) VALUES ('20140422011506');
2901 INSERT INTO schema_migrations (version) VALUES ('20140423132913');
2903 INSERT INTO schema_migrations (version) VALUES ('20140423133559');
2905 INSERT INTO schema_migrations (version) VALUES ('20140501165548');
2907 INSERT INTO schema_migrations (version) VALUES ('20140519205916');
2909 INSERT INTO schema_migrations (version) VALUES ('20140527152921');
2911 INSERT INTO schema_migrations (version) VALUES ('20140530200539');
2913 INSERT INTO schema_migrations (version) VALUES ('20140601022548');
2915 INSERT INTO schema_migrations (version) VALUES ('20140602143352');
2917 INSERT INTO schema_migrations (version) VALUES ('20140607150616');
2919 INSERT INTO schema_migrations (version) VALUES ('20140611173003');
2921 INSERT INTO schema_migrations (version) VALUES ('20140627210837');
2923 INSERT INTO schema_migrations (version) VALUES ('20140709172343');
2925 INSERT INTO schema_migrations (version) VALUES ('20140714184006');
2927 INSERT INTO schema_migrations (version) VALUES ('20140811184643');
2929 INSERT INTO schema_migrations (version) VALUES ('20140817035914');
2931 INSERT INTO schema_migrations (version) VALUES ('20140818125735');
2933 INSERT INTO schema_migrations (version) VALUES ('20140826180337');
2935 INSERT INTO schema_migrations (version) VALUES ('20140828141043');
2937 INSERT INTO schema_migrations (version) VALUES ('20140909183946');
2939 INSERT INTO schema_migrations (version) VALUES ('20140911221252');
2941 INSERT INTO schema_migrations (version) VALUES ('20140918141529');
2943 INSERT INTO schema_migrations (version) VALUES ('20140918153541');
2945 INSERT INTO schema_migrations (version) VALUES ('20140918153705');
2947 INSERT INTO schema_migrations (version) VALUES ('20140924091559');
2949 INSERT INTO schema_migrations (version) VALUES ('20141111133038');
2951 INSERT INTO schema_migrations (version) VALUES ('20141208164553');
2953 INSERT INTO schema_migrations (version) VALUES ('20141208174553');
2955 INSERT INTO schema_migrations (version) VALUES ('20141208174653');
2957 INSERT INTO schema_migrations (version) VALUES ('20141208185217');
2959 INSERT INTO schema_migrations (version) VALUES ('20150122175935');
2961 INSERT INTO schema_migrations (version) VALUES ('20150123142953');
2963 INSERT INTO schema_migrations (version) VALUES ('20150203180223');
2965 INSERT INTO schema_migrations (version) VALUES ('20150206210804');
2967 INSERT INTO schema_migrations (version) VALUES ('20150206230342');
2969 INSERT INTO schema_migrations (version) VALUES ('20150216193428');
2971 INSERT INTO schema_migrations (version) VALUES ('20150303210106');
2973 INSERT INTO schema_migrations (version) VALUES ('20150312151136');
2975 INSERT INTO schema_migrations (version) VALUES ('20150317132720');
2977 INSERT INTO schema_migrations (version) VALUES ('20150324152204');
2979 INSERT INTO schema_migrations (version) VALUES ('20150423145759');
2981 INSERT INTO schema_migrations (version) VALUES ('20150512193020');
2983 INSERT INTO schema_migrations (version) VALUES ('20150526180251');
2985 INSERT INTO schema_migrations (version) VALUES ('20151202151426');
2987 INSERT INTO schema_migrations (version) VALUES ('20151215134304');
2989 INSERT INTO schema_migrations (version) VALUES ('20151229214707');
2991 INSERT INTO schema_migrations (version) VALUES ('20160208210629');
2993 INSERT INTO schema_migrations (version) VALUES ('20160209155729');
2995 INSERT INTO schema_migrations (version) VALUES ('20160324144017');
2997 INSERT INTO schema_migrations (version) VALUES ('20160506175108');
2999 INSERT INTO schema_migrations (version) VALUES ('20160509143250');
3001 INSERT INTO schema_migrations (version) VALUES ('20160808151559');
3003 INSERT INTO schema_migrations (version) VALUES ('20160819195557');
3005 INSERT INTO schema_migrations (version) VALUES ('20160819195725');
3007 INSERT INTO schema_migrations (version) VALUES ('20160901210110');
3009 INSERT INTO schema_migrations (version) VALUES ('20160909181442');
3011 INSERT INTO schema_migrations (version) VALUES ('20160926194129');
3013 INSERT INTO schema_migrations (version) VALUES ('20161019171346');
3015 INSERT INTO schema_migrations (version) VALUES ('20161111143147');
3017 INSERT INTO schema_migrations (version) VALUES ('20161115171221');
3019 INSERT INTO schema_migrations (version) VALUES ('20161115174218');
3021 INSERT INTO schema_migrations (version) VALUES ('20161213172944');
3023 INSERT INTO schema_migrations (version) VALUES ('20161222153434');
3025 INSERT INTO schema_migrations (version) VALUES ('20161223090712');
3027 INSERT INTO schema_migrations (version) VALUES ('20170102153111');
3029 INSERT INTO schema_migrations (version) VALUES ('20170105160301');
3031 INSERT INTO schema_migrations (version) VALUES ('20170105160302');
3033 INSERT INTO schema_migrations (version) VALUES ('20170216170823');
3035 INSERT INTO schema_migrations (version) VALUES ('20170301225558');
3037 INSERT INTO schema_migrations (version) VALUES ('20170319063406');
3039 INSERT INTO schema_migrations (version) VALUES ('20170328215436');
3041 INSERT INTO schema_migrations (version) VALUES ('20170330012505');
3043 INSERT INTO schema_migrations (version) VALUES ('20170419173031');
3045 INSERT INTO schema_migrations (version) VALUES ('20170419173712');
3047 INSERT INTO schema_migrations (version) VALUES ('20170419175801');
3049 INSERT INTO schema_migrations (version) VALUES ('20170628185847');
3051 INSERT INTO schema_migrations (version) VALUES ('20170704160233');
3053 INSERT INTO schema_migrations (version) VALUES ('20170706141334');
3055 INSERT INTO schema_migrations (version) VALUES ('20170824202826');
3057 INSERT INTO schema_migrations (version) VALUES ('20170906224040');
3059 INSERT INTO schema_migrations (version) VALUES ('20171027183824');
3061 INSERT INTO schema_migrations (version) VALUES ('20171208203841');
3063 INSERT INTO schema_migrations (version) VALUES ('20171212153352');
3065 INSERT INTO schema_migrations (version) VALUES ('20180216203422');
3067 INSERT INTO schema_migrations (version) VALUES ('20180228220311');