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
783 LEFT JOIN perm_value pv ON ((pv.name = (links.name)::text)))
784 LEFT JOIN groups ON (((pv.val < 3) AND ((groups.uuid)::text = (links.head_uuid)::text))))
785 WHERE ((links.link_class)::text = 'permission'::text)
787 SELECT groups.owner_uuid,
792 WHEN ((groups.trash_at IS NOT NULL) AND (groups.trash_at < clock_timestamp())) THEN 1
796 ), perm(val, follow, user_uuid, target_uuid, trashed) AS (
797 SELECT (3)::smallint AS val,
799 (users.uuid)::character varying(32) AS user_uuid,
800 (users.uuid)::character varying(32) AS target_uuid,
801 (0)::smallint AS trashed
804 SELECT (LEAST((perm_1.val)::integer, edges.val))::smallint AS val,
807 (edges.head_uuid)::character varying(32) AS target_uuid,
808 (GREATEST((perm_1.trashed)::integer, edges.trashed))::smallint AS trashed
810 JOIN perm_edges edges ON ((perm_1.follow AND ((edges.tail_uuid)::text = (perm_1.target_uuid)::text))))
812 SELECT perm.user_uuid,
814 max(perm.val) AS perm_level,
816 WHEN true THEN perm.target_uuid
817 ELSE NULL::character varying
818 END AS target_owner_uuid,
819 max(perm.trashed) AS trashed
821 GROUP BY perm.user_uuid, perm.target_uuid,
823 WHEN true THEN perm.target_uuid
824 ELSE NULL::character varying
830 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
835 uuid character varying(255),
836 owner_uuid character varying(255),
837 created_at timestamp without time zone NOT NULL,
838 modified_by_client_uuid character varying(255),
839 modified_by_user_uuid character varying(255),
840 modified_at timestamp without time zone,
842 hostname character varying(255),
843 domain character varying(255),
844 ip_address character varying(255),
845 first_ping_at timestamp without time zone,
846 last_ping_at timestamp without time zone,
848 updated_at timestamp without time zone NOT NULL,
850 job_uuid character varying(255)
855 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
858 CREATE SEQUENCE nodes_id_seq
867 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
870 ALTER SEQUENCE nodes_id_seq OWNED BY nodes.id;
874 -- Name: permission_refresh_lock; Type: TABLE; Schema: public; Owner: -
877 CREATE TABLE permission_refresh_lock (
883 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE; Schema: public; Owner: -
886 CREATE SEQUENCE permission_refresh_lock_id_seq
895 -- Name: permission_refresh_lock_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
898 ALTER SEQUENCE permission_refresh_lock_id_seq OWNED BY permission_refresh_lock.id;
902 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -
905 CREATE TABLE pipeline_instances (
907 uuid character varying(255),
908 owner_uuid character varying(255),
909 created_at timestamp without time zone NOT NULL,
910 modified_by_client_uuid character varying(255),
911 modified_by_user_uuid character varying(255),
912 modified_at timestamp without time zone,
913 pipeline_template_uuid character varying(255),
914 name character varying(255),
916 updated_at timestamp without time zone NOT NULL,
918 state character varying(255),
919 components_summary text,
920 started_at timestamp without time zone,
921 finished_at timestamp without time zone,
922 description character varying(524288)
927 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
930 CREATE SEQUENCE pipeline_instances_id_seq
939 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
942 ALTER SEQUENCE pipeline_instances_id_seq OWNED BY pipeline_instances.id;
946 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -
949 CREATE TABLE pipeline_templates (
951 uuid character varying(255),
952 owner_uuid character varying(255),
953 created_at timestamp without time zone NOT NULL,
954 modified_by_client_uuid character varying(255),
955 modified_by_user_uuid character varying(255),
956 modified_at timestamp without time zone,
957 name character varying(255),
959 updated_at timestamp without time zone NOT NULL,
960 description character varying(524288)
965 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
968 CREATE SEQUENCE pipeline_templates_id_seq
977 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
980 ALTER SEQUENCE pipeline_templates_id_seq OWNED BY pipeline_templates.id;
984 -- Name: repositories; Type: TABLE; Schema: public; Owner: -
987 CREATE TABLE repositories (
989 uuid character varying(255) NOT NULL,
990 owner_uuid character varying(255) NOT NULL,
991 modified_by_client_uuid character varying(255),
992 modified_by_user_uuid character varying(255),
993 modified_at timestamp without time zone,
994 name character varying(255),
995 created_at timestamp without time zone NOT NULL,
996 updated_at timestamp without time zone NOT NULL
1001 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1004 CREATE SEQUENCE repositories_id_seq
1013 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1016 ALTER SEQUENCE repositories_id_seq OWNED BY repositories.id;
1020 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
1023 CREATE TABLE schema_migrations (
1024 version character varying(255) NOT NULL
1029 -- Name: specimens; Type: TABLE; Schema: public; Owner: -
1032 CREATE TABLE specimens (
1033 id integer NOT NULL,
1034 uuid character varying(255),
1035 owner_uuid character varying(255),
1036 created_at timestamp without time zone NOT NULL,
1037 modified_by_client_uuid character varying(255),
1038 modified_by_user_uuid character varying(255),
1039 modified_at timestamp without time zone,
1040 material character varying(255),
1041 updated_at timestamp without time zone NOT NULL,
1047 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1050 CREATE SEQUENCE specimens_id_seq
1059 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1062 ALTER SEQUENCE specimens_id_seq OWNED BY specimens.id;
1066 -- Name: traits; Type: TABLE; Schema: public; Owner: -
1069 CREATE TABLE traits (
1070 id integer NOT NULL,
1071 uuid character varying(255) NOT NULL,
1072 owner_uuid character varying(255) NOT NULL,
1073 modified_by_client_uuid character varying(255),
1074 modified_by_user_uuid character varying(255),
1075 modified_at timestamp without time zone,
1076 name character varying(255),
1078 created_at timestamp without time zone NOT NULL,
1079 updated_at timestamp without time zone NOT NULL
1084 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1087 CREATE SEQUENCE traits_id_seq
1096 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1099 ALTER SEQUENCE traits_id_seq OWNED BY traits.id;
1103 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1106 CREATE SEQUENCE users_id_seq
1115 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1118 ALTER SEQUENCE users_id_seq OWNED BY users.id;
1122 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -
1125 CREATE TABLE virtual_machines (
1126 id integer NOT NULL,
1127 uuid character varying(255) NOT NULL,
1128 owner_uuid character varying(255) NOT NULL,
1129 modified_by_client_uuid character varying(255),
1130 modified_by_user_uuid character varying(255),
1131 modified_at timestamp without time zone,
1132 hostname character varying(255),
1133 created_at timestamp without time zone NOT NULL,
1134 updated_at timestamp without time zone NOT NULL
1139 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1142 CREATE SEQUENCE virtual_machines_id_seq
1151 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1154 ALTER SEQUENCE virtual_machines_id_seq OWNED BY virtual_machines.id;
1158 -- Name: workflows; Type: TABLE; Schema: public; Owner: -
1161 CREATE TABLE workflows (
1162 id integer NOT NULL,
1163 uuid character varying(255),
1164 owner_uuid character varying(255),
1165 created_at timestamp without time zone NOT NULL,
1166 modified_at timestamp without time zone,
1167 modified_by_client_uuid character varying(255),
1168 modified_by_user_uuid character varying(255),
1169 name character varying(255),
1172 updated_at timestamp without time zone NOT NULL
1177 -- Name: workflows_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1180 CREATE SEQUENCE workflows_id_seq
1189 -- Name: workflows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1192 ALTER SEQUENCE workflows_id_seq OWNED BY workflows.id;
1196 -- Name: api_client_authorizations id; Type: DEFAULT; Schema: public; Owner: -
1199 ALTER TABLE ONLY api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('api_client_authorizations_id_seq'::regclass);
1203 -- Name: api_clients id; Type: DEFAULT; Schema: public; Owner: -
1206 ALTER TABLE ONLY api_clients ALTER COLUMN id SET DEFAULT nextval('api_clients_id_seq'::regclass);
1210 -- Name: authorized_keys id; Type: DEFAULT; Schema: public; Owner: -
1213 ALTER TABLE ONLY authorized_keys ALTER COLUMN id SET DEFAULT nextval('authorized_keys_id_seq'::regclass);
1217 -- Name: collections id; Type: DEFAULT; Schema: public; Owner: -
1220 ALTER TABLE ONLY collections ALTER COLUMN id SET DEFAULT nextval('collections_id_seq'::regclass);
1224 -- Name: commit_ancestors id; Type: DEFAULT; Schema: public; Owner: -
1227 ALTER TABLE ONLY commit_ancestors ALTER COLUMN id SET DEFAULT nextval('commit_ancestors_id_seq'::regclass);
1231 -- Name: commits id; Type: DEFAULT; Schema: public; Owner: -
1234 ALTER TABLE ONLY commits ALTER COLUMN id SET DEFAULT nextval('commits_id_seq'::regclass);
1238 -- Name: container_requests id; Type: DEFAULT; Schema: public; Owner: -
1241 ALTER TABLE ONLY container_requests ALTER COLUMN id SET DEFAULT nextval('container_requests_id_seq'::regclass);
1245 -- Name: containers id; Type: DEFAULT; Schema: public; Owner: -
1248 ALTER TABLE ONLY containers ALTER COLUMN id SET DEFAULT nextval('containers_id_seq'::regclass);
1252 -- Name: groups id; Type: DEFAULT; Schema: public; Owner: -
1255 ALTER TABLE ONLY groups ALTER COLUMN id SET DEFAULT nextval('groups_id_seq'::regclass);
1259 -- Name: humans id; Type: DEFAULT; Schema: public; Owner: -
1262 ALTER TABLE ONLY humans ALTER COLUMN id SET DEFAULT nextval('humans_id_seq'::regclass);
1266 -- Name: job_tasks id; Type: DEFAULT; Schema: public; Owner: -
1269 ALTER TABLE ONLY job_tasks ALTER COLUMN id SET DEFAULT nextval('job_tasks_id_seq'::regclass);
1273 -- Name: jobs id; Type: DEFAULT; Schema: public; Owner: -
1276 ALTER TABLE ONLY jobs ALTER COLUMN id SET DEFAULT nextval('jobs_id_seq'::regclass);
1280 -- Name: keep_disks id; Type: DEFAULT; Schema: public; Owner: -
1283 ALTER TABLE ONLY keep_disks ALTER COLUMN id SET DEFAULT nextval('keep_disks_id_seq'::regclass);
1287 -- Name: keep_services id; Type: DEFAULT; Schema: public; Owner: -
1290 ALTER TABLE ONLY keep_services ALTER COLUMN id SET DEFAULT nextval('keep_services_id_seq'::regclass);
1294 -- Name: links id; Type: DEFAULT; Schema: public; Owner: -
1297 ALTER TABLE ONLY links ALTER COLUMN id SET DEFAULT nextval('links_id_seq'::regclass);
1301 -- Name: logs id; Type: DEFAULT; Schema: public; Owner: -
1304 ALTER TABLE ONLY logs ALTER COLUMN id SET DEFAULT nextval('logs_id_seq'::regclass);
1308 -- Name: nodes id; Type: DEFAULT; Schema: public; Owner: -
1311 ALTER TABLE ONLY nodes ALTER COLUMN id SET DEFAULT nextval('nodes_id_seq'::regclass);
1315 -- Name: permission_refresh_lock id; Type: DEFAULT; Schema: public; Owner: -
1318 ALTER TABLE ONLY permission_refresh_lock ALTER COLUMN id SET DEFAULT nextval('permission_refresh_lock_id_seq'::regclass);
1322 -- Name: pipeline_instances id; Type: DEFAULT; Schema: public; Owner: -
1325 ALTER TABLE ONLY pipeline_instances ALTER COLUMN id SET DEFAULT nextval('pipeline_instances_id_seq'::regclass);
1329 -- Name: pipeline_templates id; Type: DEFAULT; Schema: public; Owner: -
1332 ALTER TABLE ONLY pipeline_templates ALTER COLUMN id SET DEFAULT nextval('pipeline_templates_id_seq'::regclass);
1336 -- Name: repositories id; Type: DEFAULT; Schema: public; Owner: -
1339 ALTER TABLE ONLY repositories ALTER COLUMN id SET DEFAULT nextval('repositories_id_seq'::regclass);
1343 -- Name: specimens id; Type: DEFAULT; Schema: public; Owner: -
1346 ALTER TABLE ONLY specimens ALTER COLUMN id SET DEFAULT nextval('specimens_id_seq'::regclass);
1350 -- Name: traits id; Type: DEFAULT; Schema: public; Owner: -
1353 ALTER TABLE ONLY traits ALTER COLUMN id SET DEFAULT nextval('traits_id_seq'::regclass);
1357 -- Name: users id; Type: DEFAULT; Schema: public; Owner: -
1360 ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
1364 -- Name: virtual_machines id; Type: DEFAULT; Schema: public; Owner: -
1367 ALTER TABLE ONLY virtual_machines ALTER COLUMN id SET DEFAULT nextval('virtual_machines_id_seq'::regclass);
1371 -- Name: workflows id; Type: DEFAULT; Schema: public; Owner: -
1374 ALTER TABLE ONLY workflows ALTER COLUMN id SET DEFAULT nextval('workflows_id_seq'::regclass);
1378 -- Name: api_client_authorizations api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1381 ALTER TABLE ONLY api_client_authorizations
1382 ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1386 -- Name: api_clients api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1389 ALTER TABLE ONLY api_clients
1390 ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1394 -- Name: authorized_keys authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1397 ALTER TABLE ONLY authorized_keys
1398 ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1402 -- Name: collections collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1405 ALTER TABLE ONLY collections
1406 ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1410 -- Name: commit_ancestors commit_ancestors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1413 ALTER TABLE ONLY commit_ancestors
1414 ADD CONSTRAINT commit_ancestors_pkey PRIMARY KEY (id);
1418 -- Name: commits commits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1421 ALTER TABLE ONLY commits
1422 ADD CONSTRAINT commits_pkey PRIMARY KEY (id);
1426 -- Name: container_requests container_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1429 ALTER TABLE ONLY container_requests
1430 ADD CONSTRAINT container_requests_pkey PRIMARY KEY (id);
1434 -- Name: containers containers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1437 ALTER TABLE ONLY containers
1438 ADD CONSTRAINT containers_pkey PRIMARY KEY (id);
1442 -- Name: groups groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1445 ALTER TABLE ONLY groups
1446 ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1450 -- Name: humans humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1453 ALTER TABLE ONLY humans
1454 ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1458 -- Name: job_tasks job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1461 ALTER TABLE ONLY job_tasks
1462 ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1466 -- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1469 ALTER TABLE ONLY jobs
1470 ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1474 -- Name: keep_disks keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1477 ALTER TABLE ONLY keep_disks
1478 ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1482 -- Name: keep_services keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1485 ALTER TABLE ONLY keep_services
1486 ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1490 -- Name: links links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1493 ALTER TABLE ONLY links
1494 ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1498 -- Name: logs logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1501 ALTER TABLE ONLY logs
1502 ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1506 -- Name: nodes nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1509 ALTER TABLE ONLY nodes
1510 ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1514 -- Name: permission_refresh_lock permission_refresh_lock_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1517 ALTER TABLE ONLY permission_refresh_lock
1518 ADD CONSTRAINT permission_refresh_lock_pkey PRIMARY KEY (id);
1522 -- Name: pipeline_instances pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1525 ALTER TABLE ONLY pipeline_instances
1526 ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1530 -- Name: pipeline_templates pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1533 ALTER TABLE ONLY pipeline_templates
1534 ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1538 -- Name: repositories repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1541 ALTER TABLE ONLY repositories
1542 ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1546 -- Name: specimens specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1549 ALTER TABLE ONLY specimens
1550 ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1554 -- Name: traits traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1557 ALTER TABLE ONLY traits
1558 ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1562 -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1565 ALTER TABLE ONLY users
1566 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1570 -- Name: virtual_machines virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1573 ALTER TABLE ONLY virtual_machines
1574 ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1578 -- Name: workflows workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1581 ALTER TABLE ONLY workflows
1582 ADD CONSTRAINT workflows_pkey PRIMARY KEY (id);
1586 -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -
1589 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);
1593 -- Name: api_clients_search_index; Type: INDEX; Schema: public; Owner: -
1596 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);
1600 -- Name: authorized_keys_search_index; Type: INDEX; Schema: public; Owner: -
1603 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);
1607 -- Name: collections_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1610 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) || (COALESCE(file_names, ''::character varying))::text)));
1614 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -
1617 CREATE INDEX collections_search_index ON collections USING btree (owner_uuid, modified_by_client_uuid, modified_by_user_uuid, portable_data_hash, uuid, name);
1621 -- Name: container_requests_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1624 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)));
1628 -- Name: container_requests_search_index; Type: INDEX; Schema: public; Owner: -
1631 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);
1635 -- Name: containers_search_index; Type: INDEX; Schema: public; Owner: -
1638 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);
1642 -- Name: groups_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1645 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)));
1649 -- Name: groups_search_index; Type: INDEX; Schema: public; Owner: -
1652 CREATE INDEX groups_search_index ON groups USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, group_class);
1656 -- Name: humans_search_index; Type: INDEX; Schema: public; Owner: -
1659 CREATE INDEX humans_search_index ON humans USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid);
1663 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -
1666 CREATE INDEX index_api_client_authorizations_on_api_client_id ON api_client_authorizations USING btree (api_client_id);
1670 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -
1673 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON api_client_authorizations USING btree (api_token);
1677 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -
1680 CREATE INDEX index_api_client_authorizations_on_expires_at ON api_client_authorizations USING btree (expires_at);
1684 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -
1687 CREATE INDEX index_api_client_authorizations_on_user_id ON api_client_authorizations USING btree (user_id);
1691 -- Name: index_api_client_authorizations_on_uuid; Type: INDEX; Schema: public; Owner: -
1694 CREATE UNIQUE INDEX index_api_client_authorizations_on_uuid ON api_client_authorizations USING btree (uuid);
1698 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -
1701 CREATE INDEX index_api_clients_on_created_at ON api_clients USING btree (created_at);
1705 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -
1708 CREATE INDEX index_api_clients_on_modified_at ON api_clients USING btree (modified_at);
1712 -- Name: index_api_clients_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1715 CREATE INDEX index_api_clients_on_owner_uuid ON api_clients USING btree (owner_uuid);
1719 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -
1722 CREATE UNIQUE INDEX index_api_clients_on_uuid ON api_clients USING btree (uuid);
1726 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -
1729 CREATE INDEX index_authkeys_on_user_and_expires_at ON authorized_keys USING btree (authorized_user_uuid, expires_at);
1733 -- Name: index_authorized_keys_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1736 CREATE INDEX index_authorized_keys_on_owner_uuid ON authorized_keys USING btree (owner_uuid);
1740 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -
1743 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON authorized_keys USING btree (uuid);
1747 -- Name: index_collections_on_created_at; Type: INDEX; Schema: public; Owner: -
1750 CREATE INDEX index_collections_on_created_at ON collections USING btree (created_at);
1754 -- Name: index_collections_on_delete_at; Type: INDEX; Schema: public; Owner: -
1757 CREATE INDEX index_collections_on_delete_at ON collections USING btree (delete_at);
1761 -- Name: index_collections_on_is_trashed; Type: INDEX; Schema: public; Owner: -
1764 CREATE INDEX index_collections_on_is_trashed ON collections USING btree (is_trashed);
1768 -- Name: index_collections_on_modified_at; Type: INDEX; Schema: public; Owner: -
1771 CREATE INDEX index_collections_on_modified_at ON collections USING btree (modified_at);
1775 -- Name: index_collections_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1778 CREATE INDEX index_collections_on_modified_at_uuid ON collections USING btree (modified_at DESC, uuid);
1782 -- Name: index_collections_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1785 CREATE INDEX index_collections_on_owner_uuid ON collections USING btree (owner_uuid);
1789 -- Name: index_collections_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
1792 CREATE UNIQUE INDEX index_collections_on_owner_uuid_and_name ON collections USING btree (owner_uuid, name) WHERE (is_trashed = false);
1796 -- Name: index_collections_on_portable_data_hash; Type: INDEX; Schema: public; Owner: -
1799 CREATE INDEX index_collections_on_portable_data_hash ON collections USING btree (portable_data_hash);
1803 -- Name: index_collections_on_trash_at; Type: INDEX; Schema: public; Owner: -
1806 CREATE INDEX index_collections_on_trash_at ON collections USING btree (trash_at);
1810 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -
1813 CREATE UNIQUE INDEX index_collections_on_uuid ON collections USING btree (uuid);
1817 -- Name: index_commit_ancestors_on_descendant_and_ancestor; Type: INDEX; Schema: public; Owner: -
1820 CREATE UNIQUE INDEX index_commit_ancestors_on_descendant_and_ancestor ON commit_ancestors USING btree (descendant, ancestor);
1824 -- Name: index_commits_on_repository_name_and_sha1; Type: INDEX; Schema: public; Owner: -
1827 CREATE UNIQUE INDEX index_commits_on_repository_name_and_sha1 ON commits USING btree (repository_name, sha1);
1831 -- Name: index_container_requests_on_container_uuid; Type: INDEX; Schema: public; Owner: -
1834 CREATE INDEX index_container_requests_on_container_uuid ON container_requests USING btree (container_uuid);
1838 -- Name: index_container_requests_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1841 CREATE INDEX index_container_requests_on_modified_at_uuid ON container_requests USING btree (modified_at DESC, uuid);
1845 -- Name: index_container_requests_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1848 CREATE INDEX index_container_requests_on_owner_uuid ON container_requests USING btree (owner_uuid);
1852 -- Name: index_container_requests_on_requesting_container_uuid; Type: INDEX; Schema: public; Owner: -
1855 CREATE INDEX index_container_requests_on_requesting_container_uuid ON container_requests USING btree (requesting_container_uuid);
1859 -- Name: index_container_requests_on_uuid; Type: INDEX; Schema: public; Owner: -
1862 CREATE UNIQUE INDEX index_container_requests_on_uuid ON container_requests USING btree (uuid);
1866 -- Name: index_containers_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1869 CREATE INDEX index_containers_on_modified_at_uuid ON containers USING btree (modified_at DESC, uuid);
1873 -- Name: index_containers_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1876 CREATE INDEX index_containers_on_owner_uuid ON containers USING btree (owner_uuid);
1880 -- Name: index_containers_on_uuid; Type: INDEX; Schema: public; Owner: -
1883 CREATE UNIQUE INDEX index_containers_on_uuid ON containers USING btree (uuid);
1887 -- Name: index_groups_on_created_at; Type: INDEX; Schema: public; Owner: -
1890 CREATE INDEX index_groups_on_created_at ON groups USING btree (created_at);
1894 -- Name: index_groups_on_delete_at; Type: INDEX; Schema: public; Owner: -
1897 CREATE INDEX index_groups_on_delete_at ON groups USING btree (delete_at);
1901 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -
1904 CREATE INDEX index_groups_on_group_class ON groups USING btree (group_class);
1908 -- Name: index_groups_on_is_trashed; Type: INDEX; Schema: public; Owner: -
1911 CREATE INDEX index_groups_on_is_trashed ON groups USING btree (is_trashed);
1915 -- Name: index_groups_on_modified_at; Type: INDEX; Schema: public; Owner: -
1918 CREATE INDEX index_groups_on_modified_at ON groups USING btree (modified_at);
1922 -- Name: index_groups_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1925 CREATE INDEX index_groups_on_modified_at_uuid ON groups USING btree (modified_at DESC, uuid);
1929 -- Name: index_groups_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1932 CREATE INDEX index_groups_on_owner_uuid ON groups USING btree (owner_uuid);
1936 -- Name: index_groups_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
1939 CREATE UNIQUE INDEX index_groups_on_owner_uuid_and_name ON groups USING btree (owner_uuid, name) WHERE (is_trashed = false);
1943 -- Name: index_groups_on_trash_at; Type: INDEX; Schema: public; Owner: -
1946 CREATE INDEX index_groups_on_trash_at ON groups USING btree (trash_at);
1950 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -
1953 CREATE UNIQUE INDEX index_groups_on_uuid ON groups USING btree (uuid);
1957 -- Name: index_humans_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1960 CREATE INDEX index_humans_on_owner_uuid ON humans USING btree (owner_uuid);
1964 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -
1967 CREATE UNIQUE INDEX index_humans_on_uuid ON humans USING btree (uuid);
1971 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -
1974 CREATE INDEX index_job_tasks_on_created_at ON job_tasks USING btree (created_at);
1978 -- Name: index_job_tasks_on_created_by_job_task_uuid; Type: INDEX; Schema: public; Owner: -
1981 CREATE INDEX index_job_tasks_on_created_by_job_task_uuid ON job_tasks USING btree (created_by_job_task_uuid);
1985 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -
1988 CREATE INDEX index_job_tasks_on_job_uuid ON job_tasks USING btree (job_uuid);
1992 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -
1995 CREATE INDEX index_job_tasks_on_modified_at ON job_tasks USING btree (modified_at);
1999 -- Name: index_job_tasks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2002 CREATE INDEX index_job_tasks_on_owner_uuid ON job_tasks USING btree (owner_uuid);
2006 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -
2009 CREATE INDEX index_job_tasks_on_sequence ON job_tasks USING btree (sequence);
2013 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -
2016 CREATE INDEX index_job_tasks_on_success ON job_tasks USING btree (success);
2020 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -
2023 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON job_tasks USING btree (uuid);
2027 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -
2030 CREATE INDEX index_jobs_on_created_at ON jobs USING btree (created_at);
2034 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -
2037 CREATE INDEX index_jobs_on_finished_at ON jobs USING btree (finished_at);
2041 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2044 CREATE INDEX index_jobs_on_modified_at ON jobs USING btree (modified_at);
2048 -- Name: index_jobs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2051 CREATE INDEX index_jobs_on_modified_at_uuid ON jobs USING btree (modified_at DESC, uuid);
2055 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -
2058 CREATE INDEX index_jobs_on_output ON jobs USING btree (output);
2062 -- Name: index_jobs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2065 CREATE INDEX index_jobs_on_owner_uuid ON jobs USING btree (owner_uuid);
2069 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -
2072 CREATE INDEX index_jobs_on_script ON jobs USING btree (script);
2076 -- Name: index_jobs_on_script_parameters_digest; Type: INDEX; Schema: public; Owner: -
2079 CREATE INDEX index_jobs_on_script_parameters_digest ON jobs USING btree (script_parameters_digest);
2083 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -
2086 CREATE INDEX index_jobs_on_started_at ON jobs USING btree (started_at);
2090 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -
2093 CREATE UNIQUE INDEX index_jobs_on_submit_id ON jobs USING btree (submit_id);
2097 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -
2100 CREATE UNIQUE INDEX index_jobs_on_uuid ON jobs USING btree (uuid);
2104 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -
2107 CREATE INDEX index_keep_disks_on_filesystem_uuid ON keep_disks USING btree (filesystem_uuid);
2111 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -
2114 CREATE INDEX index_keep_disks_on_last_ping_at ON keep_disks USING btree (last_ping_at);
2118 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -
2121 CREATE INDEX index_keep_disks_on_node_uuid ON keep_disks USING btree (node_uuid);
2125 -- Name: index_keep_disks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2128 CREATE INDEX index_keep_disks_on_owner_uuid ON keep_disks USING btree (owner_uuid);
2132 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -
2135 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON keep_disks USING btree (uuid);
2139 -- Name: index_keep_services_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2142 CREATE INDEX index_keep_services_on_owner_uuid ON keep_services USING btree (owner_uuid);
2146 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -
2149 CREATE UNIQUE INDEX index_keep_services_on_uuid ON keep_services USING btree (uuid);
2153 -- Name: index_links_on_created_at; Type: INDEX; Schema: public; Owner: -
2156 CREATE INDEX index_links_on_created_at ON links USING btree (created_at);
2160 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -
2163 CREATE INDEX index_links_on_head_uuid ON links USING btree (head_uuid);
2167 -- Name: index_links_on_modified_at; Type: INDEX; Schema: public; Owner: -
2170 CREATE INDEX index_links_on_modified_at ON links USING btree (modified_at);
2174 -- Name: index_links_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2177 CREATE INDEX index_links_on_modified_at_uuid ON links USING btree (modified_at DESC, uuid);
2181 -- Name: index_links_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2184 CREATE INDEX index_links_on_owner_uuid ON links USING btree (owner_uuid);
2188 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -
2191 CREATE INDEX index_links_on_tail_uuid ON links USING btree (tail_uuid);
2195 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -
2198 CREATE UNIQUE INDEX index_links_on_uuid ON links USING btree (uuid);
2202 -- Name: index_logs_on_created_at; Type: INDEX; Schema: public; Owner: -
2205 CREATE INDEX index_logs_on_created_at ON logs USING btree (created_at);
2209 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -
2212 CREATE INDEX index_logs_on_event_at ON logs USING btree (event_at);
2216 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -
2219 CREATE INDEX index_logs_on_event_type ON logs USING btree (event_type);
2223 -- Name: index_logs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2226 CREATE INDEX index_logs_on_modified_at ON logs USING btree (modified_at);
2230 -- Name: index_logs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2233 CREATE INDEX index_logs_on_modified_at_uuid ON logs USING btree (modified_at DESC, uuid);
2237 -- Name: index_logs_on_object_owner_uuid; Type: INDEX; Schema: public; Owner: -
2240 CREATE INDEX index_logs_on_object_owner_uuid ON logs USING btree (object_owner_uuid);
2244 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -
2247 CREATE INDEX index_logs_on_object_uuid ON logs USING btree (object_uuid);
2251 -- Name: index_logs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2254 CREATE INDEX index_logs_on_owner_uuid ON logs USING btree (owner_uuid);
2258 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -
2261 CREATE INDEX index_logs_on_summary ON logs USING btree (summary);
2265 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -
2268 CREATE UNIQUE INDEX index_logs_on_uuid ON logs USING btree (uuid);
2272 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -
2275 CREATE INDEX index_nodes_on_created_at ON nodes USING btree (created_at);
2279 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -
2282 CREATE INDEX index_nodes_on_hostname ON nodes USING btree (hostname);
2286 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -
2289 CREATE INDEX index_nodes_on_modified_at ON nodes USING btree (modified_at);
2293 -- Name: index_nodes_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2296 CREATE INDEX index_nodes_on_owner_uuid ON nodes USING btree (owner_uuid);
2300 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -
2303 CREATE UNIQUE INDEX index_nodes_on_slot_number ON nodes USING btree (slot_number);
2307 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -
2310 CREATE UNIQUE INDEX index_nodes_on_uuid ON nodes USING btree (uuid);
2314 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -
2317 CREATE INDEX index_pipeline_instances_on_created_at ON pipeline_instances USING btree (created_at);
2321 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -
2324 CREATE INDEX index_pipeline_instances_on_modified_at ON pipeline_instances USING btree (modified_at);
2328 -- Name: index_pipeline_instances_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2331 CREATE INDEX index_pipeline_instances_on_modified_at_uuid ON pipeline_instances USING btree (modified_at DESC, uuid);
2335 -- Name: index_pipeline_instances_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2338 CREATE INDEX index_pipeline_instances_on_owner_uuid ON pipeline_instances USING btree (owner_uuid);
2342 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -
2345 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON pipeline_instances USING btree (uuid);
2349 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -
2352 CREATE INDEX index_pipeline_templates_on_created_at ON pipeline_templates USING btree (created_at);
2356 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -
2359 CREATE INDEX index_pipeline_templates_on_modified_at ON pipeline_templates USING btree (modified_at);
2363 -- Name: index_pipeline_templates_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2366 CREATE INDEX index_pipeline_templates_on_modified_at_uuid ON pipeline_templates USING btree (modified_at DESC, uuid);
2370 -- Name: index_pipeline_templates_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2373 CREATE INDEX index_pipeline_templates_on_owner_uuid ON pipeline_templates USING btree (owner_uuid);
2377 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -
2380 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON pipeline_templates USING btree (uuid);
2384 -- Name: index_repositories_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2387 CREATE INDEX index_repositories_on_modified_at_uuid ON repositories USING btree (modified_at DESC, uuid);
2391 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -
2394 CREATE UNIQUE INDEX index_repositories_on_name ON repositories USING btree (name);
2398 -- Name: index_repositories_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2401 CREATE INDEX index_repositories_on_owner_uuid ON repositories USING btree (owner_uuid);
2405 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -
2408 CREATE UNIQUE INDEX index_repositories_on_uuid ON repositories USING btree (uuid);
2412 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -
2415 CREATE INDEX index_specimens_on_created_at ON specimens USING btree (created_at);
2419 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -
2422 CREATE INDEX index_specimens_on_modified_at ON specimens USING btree (modified_at);
2426 -- Name: index_specimens_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2429 CREATE INDEX index_specimens_on_owner_uuid ON specimens USING btree (owner_uuid);
2433 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -
2436 CREATE UNIQUE INDEX index_specimens_on_uuid ON specimens USING btree (uuid);
2440 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -
2443 CREATE INDEX index_traits_on_name ON traits USING btree (name);
2447 -- Name: index_traits_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2450 CREATE INDEX index_traits_on_owner_uuid ON traits USING btree (owner_uuid);
2454 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -
2457 CREATE UNIQUE INDEX index_traits_on_uuid ON traits USING btree (uuid);
2461 -- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: -
2464 CREATE INDEX index_users_on_created_at ON users USING btree (created_at);
2468 -- Name: index_users_on_modified_at; Type: INDEX; Schema: public; Owner: -
2471 CREATE INDEX index_users_on_modified_at ON users USING btree (modified_at);
2475 -- Name: index_users_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2478 CREATE INDEX index_users_on_modified_at_uuid ON users USING btree (modified_at DESC, uuid);
2482 -- Name: index_users_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2485 CREATE INDEX index_users_on_owner_uuid ON users USING btree (owner_uuid);
2489 -- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: -
2492 CREATE UNIQUE INDEX index_users_on_username ON users USING btree (username);
2496 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -
2499 CREATE UNIQUE INDEX index_users_on_uuid ON users USING btree (uuid);
2503 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -
2506 CREATE INDEX index_virtual_machines_on_hostname ON virtual_machines USING btree (hostname);
2510 -- Name: index_virtual_machines_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2513 CREATE INDEX index_virtual_machines_on_modified_at_uuid ON virtual_machines USING btree (modified_at DESC, uuid);
2517 -- Name: index_virtual_machines_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2520 CREATE INDEX index_virtual_machines_on_owner_uuid ON virtual_machines USING btree (owner_uuid);
2524 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -
2527 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON virtual_machines USING btree (uuid);
2531 -- Name: index_workflows_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2534 CREATE INDEX index_workflows_on_modified_at_uuid ON workflows USING btree (modified_at DESC, uuid);
2538 -- Name: index_workflows_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2541 CREATE INDEX index_workflows_on_owner_uuid ON workflows USING btree (owner_uuid);
2545 -- Name: index_workflows_on_uuid; Type: INDEX; Schema: public; Owner: -
2548 CREATE UNIQUE INDEX index_workflows_on_uuid ON workflows USING btree (uuid);
2552 -- Name: job_tasks_search_index; Type: INDEX; Schema: public; Owner: -
2555 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);
2559 -- Name: jobs_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2562 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))));
2566 -- Name: jobs_search_index; Type: INDEX; Schema: public; Owner: -
2569 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);
2573 -- Name: keep_disks_search_index; Type: INDEX; Schema: public; Owner: -
2576 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);
2580 -- Name: keep_services_search_index; Type: INDEX; Schema: public; Owner: -
2583 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);
2587 -- Name: links_search_index; Type: INDEX; Schema: public; Owner: -
2590 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);
2594 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -
2597 CREATE UNIQUE INDEX links_tail_name_unique_if_link_class_name ON links USING btree (tail_uuid, name) WHERE ((link_class)::text = 'name'::text);
2601 -- Name: logs_search_index; Type: INDEX; Schema: public; Owner: -
2604 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);
2608 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -
2611 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);
2615 -- Name: permission_target_trashed; Type: INDEX; Schema: public; Owner: -
2618 CREATE INDEX permission_target_trashed ON materialized_permission_view USING btree (trashed, target_uuid);
2622 -- Name: permission_target_user_trashed_level; Type: INDEX; Schema: public; Owner: -
2625 CREATE INDEX permission_target_user_trashed_level ON materialized_permission_view USING btree (user_uuid, trashed, perm_level);
2629 -- Name: pipeline_instances_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2632 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)));
2636 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -
2639 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);
2643 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -
2646 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON pipeline_templates USING btree (owner_uuid, name);
2650 -- Name: pipeline_templates_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2653 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)));
2657 -- Name: pipeline_templates_search_index; Type: INDEX; Schema: public; Owner: -
2660 CREATE INDEX pipeline_templates_search_index ON pipeline_templates USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2664 -- Name: repositories_search_index; Type: INDEX; Schema: public; Owner: -
2667 CREATE INDEX repositories_search_index ON repositories USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2671 -- Name: specimens_search_index; Type: INDEX; Schema: public; Owner: -
2674 CREATE INDEX specimens_search_index ON specimens USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, material);
2678 -- Name: traits_search_index; Type: INDEX; Schema: public; Owner: -
2681 CREATE INDEX traits_search_index ON traits USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2685 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
2688 CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
2692 -- Name: users_search_index; Type: INDEX; Schema: public; Owner: -
2695 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);
2699 -- Name: virtual_machines_search_index; Type: INDEX; Schema: public; Owner: -
2702 CREATE INDEX virtual_machines_search_index ON virtual_machines USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname);
2706 -- Name: workflows_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2709 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))));
2713 -- Name: workflows_search_idx; Type: INDEX; Schema: public; Owner: -
2716 CREATE INDEX workflows_search_idx ON workflows USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2720 -- PostgreSQL database dump complete
2723 SET search_path TO "$user", public;
2725 INSERT INTO schema_migrations (version) VALUES ('20121016005009');
2727 INSERT INTO schema_migrations (version) VALUES ('20130105203021');
2729 INSERT INTO schema_migrations (version) VALUES ('20130105224358');
2731 INSERT INTO schema_migrations (version) VALUES ('20130105224618');
2733 INSERT INTO schema_migrations (version) VALUES ('20130107181109');
2735 INSERT INTO schema_migrations (version) VALUES ('20130107212832');
2737 INSERT INTO schema_migrations (version) VALUES ('20130109175700');
2739 INSERT INTO schema_migrations (version) VALUES ('20130109220548');
2741 INSERT INTO schema_migrations (version) VALUES ('20130113214204');
2743 INSERT INTO schema_migrations (version) VALUES ('20130116024233');
2745 INSERT INTO schema_migrations (version) VALUES ('20130116215213');
2747 INSERT INTO schema_migrations (version) VALUES ('20130118002239');
2749 INSERT INTO schema_migrations (version) VALUES ('20130122020042');
2751 INSERT INTO schema_migrations (version) VALUES ('20130122201442');
2753 INSERT INTO schema_migrations (version) VALUES ('20130122221616');
2755 INSERT INTO schema_migrations (version) VALUES ('20130123174514');
2757 INSERT INTO schema_migrations (version) VALUES ('20130123180224');
2759 INSERT INTO schema_migrations (version) VALUES ('20130123180228');
2761 INSERT INTO schema_migrations (version) VALUES ('20130125220425');
2763 INSERT INTO schema_migrations (version) VALUES ('20130128202518');
2765 INSERT INTO schema_migrations (version) VALUES ('20130128231343');
2767 INSERT INTO schema_migrations (version) VALUES ('20130130205749');
2769 INSERT INTO schema_migrations (version) VALUES ('20130203104818');
2771 INSERT INTO schema_migrations (version) VALUES ('20130203104824');
2773 INSERT INTO schema_migrations (version) VALUES ('20130203115329');
2775 INSERT INTO schema_migrations (version) VALUES ('20130207195855');
2777 INSERT INTO schema_migrations (version) VALUES ('20130218181504');
2779 INSERT INTO schema_migrations (version) VALUES ('20130226170000');
2781 INSERT INTO schema_migrations (version) VALUES ('20130313175417');
2783 INSERT INTO schema_migrations (version) VALUES ('20130315155820');
2785 INSERT INTO schema_migrations (version) VALUES ('20130315183626');
2787 INSERT INTO schema_migrations (version) VALUES ('20130315213205');
2789 INSERT INTO schema_migrations (version) VALUES ('20130318002138');
2791 INSERT INTO schema_migrations (version) VALUES ('20130319165853');
2793 INSERT INTO schema_migrations (version) VALUES ('20130319180730');
2795 INSERT INTO schema_migrations (version) VALUES ('20130319194637');
2797 INSERT INTO schema_migrations (version) VALUES ('20130319201431');
2799 INSERT INTO schema_migrations (version) VALUES ('20130319235957');
2801 INSERT INTO schema_migrations (version) VALUES ('20130320000107');
2803 INSERT INTO schema_migrations (version) VALUES ('20130326173804');
2805 INSERT INTO schema_migrations (version) VALUES ('20130326182917');
2807 INSERT INTO schema_migrations (version) VALUES ('20130415020241');
2809 INSERT INTO schema_migrations (version) VALUES ('20130425024459');
2811 INSERT INTO schema_migrations (version) VALUES ('20130425214427');
2813 INSERT INTO schema_migrations (version) VALUES ('20130523060112');
2815 INSERT INTO schema_migrations (version) VALUES ('20130523060213');
2817 INSERT INTO schema_migrations (version) VALUES ('20130524042319');
2819 INSERT INTO schema_migrations (version) VALUES ('20130528134100');
2821 INSERT INTO schema_migrations (version) VALUES ('20130606183519');
2823 INSERT INTO schema_migrations (version) VALUES ('20130608053730');
2825 INSERT INTO schema_migrations (version) VALUES ('20130610202538');
2827 INSERT INTO schema_migrations (version) VALUES ('20130611163736');
2829 INSERT INTO schema_migrations (version) VALUES ('20130612042554');
2831 INSERT INTO schema_migrations (version) VALUES ('20130617150007');
2833 INSERT INTO schema_migrations (version) VALUES ('20130626002829');
2835 INSERT INTO schema_migrations (version) VALUES ('20130626022810');
2837 INSERT INTO schema_migrations (version) VALUES ('20130627154537');
2839 INSERT INTO schema_migrations (version) VALUES ('20130627184333');
2841 INSERT INTO schema_migrations (version) VALUES ('20130708163414');
2843 INSERT INTO schema_migrations (version) VALUES ('20130708182912');
2845 INSERT INTO schema_migrations (version) VALUES ('20130708185153');
2847 INSERT INTO schema_migrations (version) VALUES ('20130724153034');
2849 INSERT INTO schema_migrations (version) VALUES ('20131007180607');
2851 INSERT INTO schema_migrations (version) VALUES ('20140117231056');
2853 INSERT INTO schema_migrations (version) VALUES ('20140124222114');
2855 INSERT INTO schema_migrations (version) VALUES ('20140129184311');
2857 INSERT INTO schema_migrations (version) VALUES ('20140317135600');
2859 INSERT INTO schema_migrations (version) VALUES ('20140319160547');
2861 INSERT INTO schema_migrations (version) VALUES ('20140321191343');
2863 INSERT INTO schema_migrations (version) VALUES ('20140324024606');
2865 INSERT INTO schema_migrations (version) VALUES ('20140325175653');
2867 INSERT INTO schema_migrations (version) VALUES ('20140402001908');
2869 INSERT INTO schema_migrations (version) VALUES ('20140407184311');
2871 INSERT INTO schema_migrations (version) VALUES ('20140421140924');
2873 INSERT INTO schema_migrations (version) VALUES ('20140421151939');
2875 INSERT INTO schema_migrations (version) VALUES ('20140421151940');
2877 INSERT INTO schema_migrations (version) VALUES ('20140422011506');
2879 INSERT INTO schema_migrations (version) VALUES ('20140423132913');
2881 INSERT INTO schema_migrations (version) VALUES ('20140423133559');
2883 INSERT INTO schema_migrations (version) VALUES ('20140501165548');
2885 INSERT INTO schema_migrations (version) VALUES ('20140519205916');
2887 INSERT INTO schema_migrations (version) VALUES ('20140527152921');
2889 INSERT INTO schema_migrations (version) VALUES ('20140530200539');
2891 INSERT INTO schema_migrations (version) VALUES ('20140601022548');
2893 INSERT INTO schema_migrations (version) VALUES ('20140602143352');
2895 INSERT INTO schema_migrations (version) VALUES ('20140607150616');
2897 INSERT INTO schema_migrations (version) VALUES ('20140611173003');
2899 INSERT INTO schema_migrations (version) VALUES ('20140627210837');
2901 INSERT INTO schema_migrations (version) VALUES ('20140709172343');
2903 INSERT INTO schema_migrations (version) VALUES ('20140714184006');
2905 INSERT INTO schema_migrations (version) VALUES ('20140811184643');
2907 INSERT INTO schema_migrations (version) VALUES ('20140817035914');
2909 INSERT INTO schema_migrations (version) VALUES ('20140818125735');
2911 INSERT INTO schema_migrations (version) VALUES ('20140826180337');
2913 INSERT INTO schema_migrations (version) VALUES ('20140828141043');
2915 INSERT INTO schema_migrations (version) VALUES ('20140909183946');
2917 INSERT INTO schema_migrations (version) VALUES ('20140911221252');
2919 INSERT INTO schema_migrations (version) VALUES ('20140918141529');
2921 INSERT INTO schema_migrations (version) VALUES ('20140918153541');
2923 INSERT INTO schema_migrations (version) VALUES ('20140918153705');
2925 INSERT INTO schema_migrations (version) VALUES ('20140924091559');
2927 INSERT INTO schema_migrations (version) VALUES ('20141111133038');
2929 INSERT INTO schema_migrations (version) VALUES ('20141208164553');
2931 INSERT INTO schema_migrations (version) VALUES ('20141208174553');
2933 INSERT INTO schema_migrations (version) VALUES ('20141208174653');
2935 INSERT INTO schema_migrations (version) VALUES ('20141208185217');
2937 INSERT INTO schema_migrations (version) VALUES ('20150122175935');
2939 INSERT INTO schema_migrations (version) VALUES ('20150123142953');
2941 INSERT INTO schema_migrations (version) VALUES ('20150203180223');
2943 INSERT INTO schema_migrations (version) VALUES ('20150206210804');
2945 INSERT INTO schema_migrations (version) VALUES ('20150206230342');
2947 INSERT INTO schema_migrations (version) VALUES ('20150216193428');
2949 INSERT INTO schema_migrations (version) VALUES ('20150303210106');
2951 INSERT INTO schema_migrations (version) VALUES ('20150312151136');
2953 INSERT INTO schema_migrations (version) VALUES ('20150317132720');
2955 INSERT INTO schema_migrations (version) VALUES ('20150324152204');
2957 INSERT INTO schema_migrations (version) VALUES ('20150423145759');
2959 INSERT INTO schema_migrations (version) VALUES ('20150512193020');
2961 INSERT INTO schema_migrations (version) VALUES ('20150526180251');
2963 INSERT INTO schema_migrations (version) VALUES ('20151202151426');
2965 INSERT INTO schema_migrations (version) VALUES ('20151215134304');
2967 INSERT INTO schema_migrations (version) VALUES ('20151229214707');
2969 INSERT INTO schema_migrations (version) VALUES ('20160208210629');
2971 INSERT INTO schema_migrations (version) VALUES ('20160209155729');
2973 INSERT INTO schema_migrations (version) VALUES ('20160324144017');
2975 INSERT INTO schema_migrations (version) VALUES ('20160506175108');
2977 INSERT INTO schema_migrations (version) VALUES ('20160509143250');
2979 INSERT INTO schema_migrations (version) VALUES ('20160808151559');
2981 INSERT INTO schema_migrations (version) VALUES ('20160819195557');
2983 INSERT INTO schema_migrations (version) VALUES ('20160819195725');
2985 INSERT INTO schema_migrations (version) VALUES ('20160901210110');
2987 INSERT INTO schema_migrations (version) VALUES ('20160909181442');
2989 INSERT INTO schema_migrations (version) VALUES ('20160926194129');
2991 INSERT INTO schema_migrations (version) VALUES ('20161019171346');
2993 INSERT INTO schema_migrations (version) VALUES ('20161111143147');
2995 INSERT INTO schema_migrations (version) VALUES ('20161115171221');
2997 INSERT INTO schema_migrations (version) VALUES ('20161115174218');
2999 INSERT INTO schema_migrations (version) VALUES ('20161213172944');
3001 INSERT INTO schema_migrations (version) VALUES ('20161222153434');
3003 INSERT INTO schema_migrations (version) VALUES ('20161223090712');
3005 INSERT INTO schema_migrations (version) VALUES ('20170102153111');
3007 INSERT INTO schema_migrations (version) VALUES ('20170105160301');
3009 INSERT INTO schema_migrations (version) VALUES ('20170105160302');
3011 INSERT INTO schema_migrations (version) VALUES ('20170216170823');
3013 INSERT INTO schema_migrations (version) VALUES ('20170301225558');
3015 INSERT INTO schema_migrations (version) VALUES ('20170319063406');
3017 INSERT INTO schema_migrations (version) VALUES ('20170328215436');
3019 INSERT INTO schema_migrations (version) VALUES ('20170330012505');
3021 INSERT INTO schema_migrations (version) VALUES ('20170419173031');
3023 INSERT INTO schema_migrations (version) VALUES ('20170419173712');
3025 INSERT INTO schema_migrations (version) VALUES ('20170419175801');
3027 INSERT INTO schema_migrations (version) VALUES ('20170628185847');
3029 INSERT INTO schema_migrations (version) VALUES ('20170824202826');
3031 INSERT INTO schema_migrations (version) VALUES ('20170906224040');
3033 INSERT INTO schema_migrations (version) VALUES ('20171027183824');