1 -- Copyright (C) The Arvados Authors. All rights reserved.
3 -- SPDX-License-Identifier: AGPL-3.0
5 SET statement_timeout = 0;
6 SET client_encoding = 'UTF8';
7 SET standard_conforming_strings = on;
8 SELECT pg_catalog.set_config('search_path', '', false);
9 SET check_function_bodies = false;
10 SET xmloption = content;
11 SET client_min_messages = warning;
14 -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
17 CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
21 -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
24 -- COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
28 -- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner: -
31 CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;
35 -- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner: -
38 -- COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams';
42 -- Name: compute_permission_subgraph(character varying, character varying, integer, character varying); Type: FUNCTION; Schema: public; Owner: -
45 CREATE FUNCTION public.compute_permission_subgraph(perm_origin_uuid character varying, starting_uuid character varying, starting_perm integer, perm_edge_id character varying) RETURNS TABLE(user_uuid character varying, target_uuid character varying, val integer, traverse_owned boolean)
49 /* The purpose of this function is to compute the permissions for a
50 subgraph of the database, starting from a given edge. The newly
51 computed permissions are used to add and remove rows from the main
54 perm_origin_uuid: The object that 'gets' the permission.
56 starting_uuid: The starting object the permission applies to.
58 starting_perm: The permission that perm_origin_uuid 'has' on
59 starting_uuid One of 1, 2, 3 for can_read,
60 can_write, can_manage respectively, or 0 to revoke
63 perm_edge_id: Identifies the permission edge that is being updated.
64 Changes of ownership, this is starting_uuid.
65 For links, this is the uuid of the link object.
66 This is used to override the edge value in the database
67 with starting_perm. This is necessary when revoking
68 permissions because the update happens before edge is
72 /* Starting from starting_uuid, determine the set of objects that
73 could be affected by this permission change.
75 Note: We don't traverse users unless it is an "identity"
76 permission (permission origin is self).
78 perm_from_start(perm_origin_uuid, target_uuid, val, traverse_owned) as (
81 traverse_graph(origin_uuid, target_uuid, val, traverse_owned, starting_set) as (
83 values (perm_origin_uuid, starting_uuid, starting_perm,
84 should_traverse_owned(starting_uuid, starting_perm),
85 (perm_origin_uuid = starting_uuid or starting_uuid not like '_____-tpzed-_______________'))
88 (select traverse_graph.origin_uuid,
91 case (edges.edge_id = perm_edge_id)
92 when true then starting_perm
97 should_traverse_owned(edges.head_uuid, edges.val),
99 from permission_graph_edges as edges, traverse_graph
100 where traverse_graph.target_uuid = edges.tail_uuid
101 and (edges.tail_uuid like '_____-j7d0g-_______________' or
102 traverse_graph.starting_set)))
103 select traverse_graph.origin_uuid, target_uuid, max(val) as val, bool_or(traverse_owned) as traverse_owned from traverse_graph
104 group by (traverse_graph.origin_uuid, target_uuid)
107 /* Find other inbound edges that grant permissions to 'targets' in
108 perm_from_start, and compute permissions that originate from
111 This is necessary for two reasons:
113 1) Other users may have access to a subset of the objects
114 through other permission links than the one we started from.
115 If we don't recompute them, their permission will get dropped.
117 2) There may be more than one path through which a user gets
118 permission to an object. For example, a user owns a project
119 and also shares it can_read with a group the user belongs
120 to. adding the can_read link must not overwrite the existing
121 can_manage permission granted by ownership.
123 additional_perms(perm_origin_uuid, target_uuid, val, traverse_owned) as (
126 traverse_graph(origin_uuid, target_uuid, val, traverse_owned, starting_set) as (
128 select edges.tail_uuid as origin_uuid, edges.head_uuid as target_uuid, edges.val,
129 should_traverse_owned(edges.head_uuid, edges.val),
130 edges.head_uuid like '_____-j7d0g-_______________'
131 from permission_graph_edges as edges
132 where edges.edge_id != perm_edge_id and
133 edges.tail_uuid not in (select target_uuid from perm_from_start where target_uuid like '_____-j7d0g-_______________') and
134 edges.head_uuid in (select target_uuid from perm_from_start)
137 (select traverse_graph.origin_uuid,
140 case (edges.edge_id = perm_edge_id)
141 when true then starting_perm
146 should_traverse_owned(edges.head_uuid, edges.val),
148 from permission_graph_edges as edges, traverse_graph
149 where traverse_graph.target_uuid = edges.tail_uuid
150 and (edges.tail_uuid like '_____-j7d0g-_______________' or
151 traverse_graph.starting_set)))
152 select traverse_graph.origin_uuid, target_uuid, max(val) as val, bool_or(traverse_owned) as traverse_owned from traverse_graph
153 group by (traverse_graph.origin_uuid, target_uuid)
156 /* Combine the permissions computed in the first two phases. */
157 all_perms(perm_origin_uuid, target_uuid, val, traverse_owned) as (
158 select * from perm_from_start
160 select * from additional_perms
163 /* The actual query that produces rows to be added or removed
164 from the materialized_permissions table. This is the clever
169 * For every group, the materialized_permissions lists all users
170 that can access to that group.
172 * The all_perms subquery has computed permissions on on a set of
173 objects for all inbound "origins", which are users or groups.
175 * Permissions through groups are transitive.
179 1) The materialized_permissions table declares that user X has permission N on group Y
180 2) The all_perms result has determined group Y has permission M on object Z
181 3) Therefore, user X has permission min(N, M) on object Z
183 This allows us to efficiently determine the set of users that
184 have permissions on the subset of objects, without having to
185 follow the chain of permission back up to find those users.
187 In addition, because users always have permission on themselves, this
188 query also makes sure those permission rows are always
191 select v.user_uuid, v.target_uuid, max(v.perm_level), bool_or(v.traverse_owned) from
194 least(u.val, m.perm_level) as perm_level,
196 from all_perms as u, materialized_permissions as m
197 where u.perm_origin_uuid = m.target_uuid AND m.traverse_owned
198 AND (m.user_uuid = m.target_uuid or m.target_uuid not like '_____-tpzed-_______________')
200 select target_uuid as user_uuid, target_uuid, 3, true
202 where all_perms.target_uuid like '_____-tpzed-_______________') as v
203 group by v.user_uuid, v.target_uuid
208 -- Name: project_subtree_with_trash_at(character varying, timestamp without time zone); Type: FUNCTION; Schema: public; Owner: -
211 CREATE FUNCTION public.project_subtree_with_trash_at(starting_uuid character varying, starting_trash_at timestamp without time zone) RETURNS TABLE(target_uuid character varying, trash_at timestamp without time zone)
214 /* Starting from a project, recursively traverse all the projects
215 underneath it and return a set of project uuids and trash_at times
216 (may be null). The initial trash_at can be a timestamp or null.
217 The trash_at time propagates downward to groups it owns, i.e. when a
218 group is trashed, everything underneath it in the ownership
219 hierarchy is also considered trashed. However, this is fact is
220 recorded in the trashed_groups table, not by updating trash_at field
224 project_subtree(uuid, trash_at) as (
225 values (starting_uuid, starting_trash_at)
227 select groups.uuid, LEAST(project_subtree.trash_at, groups.trash_at)
228 from groups join project_subtree on (groups.owner_uuid = project_subtree.uuid)
230 select uuid, trash_at from project_subtree;
235 -- Name: should_traverse_owned(character varying, integer); Type: FUNCTION; Schema: public; Owner: -
238 CREATE FUNCTION public.should_traverse_owned(starting_uuid character varying, starting_perm integer) RETURNS boolean
239 LANGUAGE sql IMMUTABLE
241 /* Helper function. Determines if permission on an object implies
242 transitive permission to things the object owns. This is always
243 true for groups, but only true for users when the permission level
246 select starting_uuid like '_____-j7d0g-_______________' or
247 (starting_uuid like '_____-tpzed-_______________' and starting_perm >= 3);
251 SET default_tablespace = '';
253 SET default_with_oids = false;
256 -- Name: api_client_authorizations; Type: TABLE; Schema: public; Owner: -
259 CREATE TABLE public.api_client_authorizations (
261 api_token character varying(255) NOT NULL,
262 api_client_id integer NOT NULL,
263 user_id integer NOT NULL,
264 created_by_ip_address character varying(255),
265 last_used_by_ip_address character varying(255),
266 last_used_at timestamp without time zone,
267 expires_at timestamp without time zone,
268 created_at timestamp without time zone NOT NULL,
269 updated_at timestamp without time zone NOT NULL,
270 default_owner_uuid character varying(255),
271 scopes text DEFAULT '["all"]'::text,
272 uuid character varying(255) NOT NULL
277 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
280 CREATE SEQUENCE public.api_client_authorizations_id_seq
289 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
292 ALTER SEQUENCE public.api_client_authorizations_id_seq OWNED BY public.api_client_authorizations.id;
296 -- Name: api_clients; Type: TABLE; Schema: public; Owner: -
299 CREATE TABLE public.api_clients (
301 uuid character varying(255),
302 owner_uuid character varying(255),
303 modified_by_client_uuid character varying(255),
304 modified_by_user_uuid character varying(255),
305 modified_at timestamp without time zone,
306 name character varying(255),
307 url_prefix character varying(255),
308 created_at timestamp without time zone NOT NULL,
309 updated_at timestamp without time zone NOT NULL,
310 is_trusted boolean DEFAULT false
315 -- Name: api_clients_id_seq; Type: SEQUENCE; Schema: public; Owner: -
318 CREATE SEQUENCE public.api_clients_id_seq
327 -- Name: api_clients_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
330 ALTER SEQUENCE public.api_clients_id_seq OWNED BY public.api_clients.id;
334 -- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: -
337 CREATE TABLE public.ar_internal_metadata (
338 key character varying NOT NULL,
339 value character varying,
340 created_at timestamp without time zone NOT NULL,
341 updated_at timestamp without time zone NOT NULL
346 -- Name: authorized_keys; Type: TABLE; Schema: public; Owner: -
349 CREATE TABLE public.authorized_keys (
351 uuid character varying(255) NOT NULL,
352 owner_uuid character varying(255) NOT NULL,
353 modified_by_client_uuid character varying(255),
354 modified_by_user_uuid character varying(255),
355 modified_at timestamp without time zone,
356 name character varying(255),
357 key_type character varying(255),
358 authorized_user_uuid character varying(255),
360 expires_at timestamp without time zone,
361 created_at timestamp without time zone NOT NULL,
362 updated_at timestamp without time zone NOT NULL
367 -- Name: authorized_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: -
370 CREATE SEQUENCE public.authorized_keys_id_seq
379 -- Name: authorized_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
382 ALTER SEQUENCE public.authorized_keys_id_seq OWNED BY public.authorized_keys.id;
386 -- Name: collections; Type: TABLE; Schema: public; Owner: -
389 CREATE TABLE public.collections (
391 owner_uuid character varying(255),
392 created_at timestamp without time zone NOT NULL,
393 modified_by_client_uuid character varying(255),
394 modified_by_user_uuid character varying(255),
395 modified_at timestamp without time zone,
396 portable_data_hash character varying(255),
397 replication_desired integer,
398 replication_confirmed_at timestamp without time zone,
399 replication_confirmed integer,
400 updated_at timestamp without time zone NOT NULL,
401 uuid character varying(255),
403 name character varying(255),
404 description character varying(524288),
406 delete_at timestamp without time zone,
408 trash_at timestamp without time zone,
409 is_trashed boolean DEFAULT false NOT NULL,
410 storage_classes_desired jsonb DEFAULT '["default"]'::jsonb,
411 storage_classes_confirmed jsonb DEFAULT '[]'::jsonb,
412 storage_classes_confirmed_at timestamp without time zone,
413 current_version_uuid character varying,
414 version integer DEFAULT 1 NOT NULL,
415 preserve_version boolean DEFAULT false,
416 file_count integer DEFAULT 0 NOT NULL,
417 file_size_total bigint DEFAULT 0 NOT NULL
422 -- Name: collections_id_seq; Type: SEQUENCE; Schema: public; Owner: -
425 CREATE SEQUENCE public.collections_id_seq
434 -- Name: collections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
437 ALTER SEQUENCE public.collections_id_seq OWNED BY public.collections.id;
441 -- Name: container_requests; Type: TABLE; Schema: public; Owner: -
444 CREATE TABLE public.container_requests (
446 uuid character varying(255),
447 owner_uuid character varying(255),
448 created_at timestamp without time zone NOT NULL,
449 modified_at timestamp without time zone,
450 modified_by_client_uuid character varying(255),
451 modified_by_user_uuid character varying(255),
452 name character varying(255),
455 state character varying(255),
456 requesting_container_uuid character varying(255),
457 container_uuid character varying(255),
458 container_count_max integer,
460 runtime_constraints text,
461 container_image character varying(255),
463 cwd character varying(255),
465 output_path character varying(255),
467 expires_at timestamp without time zone,
469 updated_at timestamp without time zone NOT NULL,
470 container_count integer DEFAULT 0,
471 use_existing boolean DEFAULT true,
472 scheduling_parameters text,
473 output_uuid character varying(255),
474 log_uuid character varying(255),
475 output_name character varying(255) DEFAULT NULL::character varying,
476 output_ttl integer DEFAULT 0 NOT NULL,
477 secret_mounts jsonb DEFAULT '{}'::jsonb,
483 -- Name: container_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
486 CREATE SEQUENCE public.container_requests_id_seq
495 -- Name: container_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
498 ALTER SEQUENCE public.container_requests_id_seq OWNED BY public.container_requests.id;
502 -- Name: containers; Type: TABLE; Schema: public; Owner: -
505 CREATE TABLE public.containers (
507 uuid character varying(255),
508 owner_uuid character varying(255),
509 created_at timestamp without time zone NOT NULL,
510 modified_at timestamp without time zone,
511 modified_by_client_uuid character varying(255),
512 modified_by_user_uuid character varying(255),
513 state character varying(255),
514 started_at timestamp without time zone,
515 finished_at timestamp without time zone,
516 log character varying(255),
518 cwd character varying(255),
520 output_path character varying(255),
522 runtime_constraints text,
523 output character varying(255),
524 container_image character varying(255),
525 progress double precision,
527 updated_at timestamp without time zone NOT NULL,
529 auth_uuid character varying(255),
530 locked_by_uuid character varying(255),
531 scheduling_parameters text,
532 secret_mounts jsonb DEFAULT '{}'::jsonb,
533 secret_mounts_md5 character varying DEFAULT '99914b932bd37a50b983c5e7c90ae93b'::character varying,
534 runtime_status jsonb DEFAULT '{}'::jsonb,
535 runtime_user_uuid text,
536 runtime_auth_scopes jsonb,
538 lock_count integer DEFAULT 0 NOT NULL
543 -- Name: containers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
546 CREATE SEQUENCE public.containers_id_seq
555 -- Name: containers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
558 ALTER SEQUENCE public.containers_id_seq OWNED BY public.containers.id;
562 -- Name: groups; Type: TABLE; Schema: public; Owner: -
565 CREATE TABLE public.groups (
567 uuid character varying(255),
568 owner_uuid character varying(255),
569 created_at timestamp without time zone NOT NULL,
570 modified_by_client_uuid character varying(255),
571 modified_by_user_uuid character varying(255),
572 modified_at timestamp without time zone,
573 name character varying(255) NOT NULL,
574 description character varying(524288),
575 updated_at timestamp without time zone NOT NULL,
576 group_class character varying(255),
577 trash_at timestamp without time zone,
578 is_trashed boolean DEFAULT false NOT NULL,
579 delete_at timestamp without time zone,
580 properties jsonb DEFAULT '{}'::jsonb
585 -- Name: groups_id_seq; Type: SEQUENCE; Schema: public; Owner: -
588 CREATE SEQUENCE public.groups_id_seq
597 -- Name: groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
600 ALTER SEQUENCE public.groups_id_seq OWNED BY public.groups.id;
604 -- Name: humans; Type: TABLE; Schema: public; Owner: -
607 CREATE TABLE public.humans (
609 uuid character varying(255) NOT NULL,
610 owner_uuid character varying(255) NOT NULL,
611 modified_by_client_uuid character varying(255),
612 modified_by_user_uuid character varying(255),
613 modified_at timestamp without time zone,
615 created_at timestamp without time zone NOT NULL,
616 updated_at timestamp without time zone NOT NULL
621 -- Name: humans_id_seq; Type: SEQUENCE; Schema: public; Owner: -
624 CREATE SEQUENCE public.humans_id_seq
633 -- Name: humans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
636 ALTER SEQUENCE public.humans_id_seq OWNED BY public.humans.id;
640 -- Name: job_tasks; Type: TABLE; Schema: public; Owner: -
643 CREATE TABLE public.job_tasks (
645 uuid character varying(255),
646 owner_uuid character varying(255),
647 modified_by_client_uuid character varying(255),
648 modified_by_user_uuid character varying(255),
649 modified_at timestamp without time zone,
650 job_uuid character varying(255),
654 progress double precision,
656 created_at timestamp without time zone NOT NULL,
657 updated_at timestamp without time zone NOT NULL,
658 created_by_job_task_uuid character varying(255),
660 started_at timestamp without time zone,
661 finished_at timestamp without time zone
666 -- Name: job_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
669 CREATE SEQUENCE public.job_tasks_id_seq
678 -- Name: job_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
681 ALTER SEQUENCE public.job_tasks_id_seq OWNED BY public.job_tasks.id;
685 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE; Schema: public; Owner: -
688 CREATE SEQUENCE public.job_tasks_qsequence_seq
697 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
700 ALTER SEQUENCE public.job_tasks_qsequence_seq OWNED BY public.job_tasks.qsequence;
704 -- Name: jobs; Type: TABLE; Schema: public; Owner: -
707 CREATE TABLE public.jobs (
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 modified_at timestamp without time zone,
714 submit_id character varying(255),
715 script character varying(255),
716 script_version character varying(255),
717 script_parameters text,
718 cancelled_by_client_uuid character varying(255),
719 cancelled_by_user_uuid character varying(255),
720 cancelled_at timestamp without time zone,
721 started_at timestamp without time zone,
722 finished_at timestamp without time zone,
725 output character varying(255),
726 created_at timestamp without time zone NOT NULL,
727 updated_at timestamp without time zone NOT NULL,
728 is_locked_by_uuid character varying(255),
729 log character varying(255),
731 runtime_constraints text,
732 nondeterministic boolean,
733 repository character varying(255),
734 supplied_script_version character varying(255),
735 docker_image_locator character varying(255),
736 priority integer DEFAULT 0 NOT NULL,
737 description character varying(524288),
738 state character varying(255),
739 arvados_sdk_version character varying(255),
741 script_parameters_digest character varying(255)
746 -- Name: jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
749 CREATE SEQUENCE public.jobs_id_seq
758 -- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
761 ALTER SEQUENCE public.jobs_id_seq OWNED BY public.jobs.id;
765 -- Name: keep_disks; Type: TABLE; Schema: public; Owner: -
768 CREATE TABLE public.keep_disks (
770 uuid character varying(255) NOT NULL,
771 owner_uuid character varying(255) NOT NULL,
772 modified_by_client_uuid character varying(255),
773 modified_by_user_uuid character varying(255),
774 modified_at timestamp without time zone,
775 ping_secret character varying(255) NOT NULL,
776 node_uuid character varying(255),
777 filesystem_uuid character varying(255),
780 is_readable boolean DEFAULT true NOT NULL,
781 is_writable boolean DEFAULT true NOT NULL,
782 last_read_at timestamp without time zone,
783 last_write_at timestamp without time zone,
784 last_ping_at timestamp without time zone,
785 created_at timestamp without time zone NOT NULL,
786 updated_at timestamp without time zone NOT NULL,
787 keep_service_uuid character varying(255)
792 -- Name: keep_disks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
795 CREATE SEQUENCE public.keep_disks_id_seq
804 -- Name: keep_disks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
807 ALTER SEQUENCE public.keep_disks_id_seq OWNED BY public.keep_disks.id;
811 -- Name: keep_services; Type: TABLE; Schema: public; Owner: -
814 CREATE TABLE public.keep_services (
816 uuid character varying(255) NOT NULL,
817 owner_uuid character varying(255) NOT NULL,
818 modified_by_client_uuid character varying(255),
819 modified_by_user_uuid character varying(255),
820 modified_at timestamp without time zone,
821 service_host character varying(255),
822 service_port integer,
823 service_ssl_flag boolean,
824 service_type character varying(255),
825 created_at timestamp without time zone NOT NULL,
826 updated_at timestamp without time zone NOT NULL,
827 read_only boolean DEFAULT false NOT NULL
832 -- Name: keep_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
835 CREATE SEQUENCE public.keep_services_id_seq
844 -- Name: keep_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
847 ALTER SEQUENCE public.keep_services_id_seq OWNED BY public.keep_services.id;
851 -- Name: links; Type: TABLE; Schema: public; Owner: -
854 CREATE TABLE public.links (
856 uuid character varying(255),
857 owner_uuid character varying(255),
858 created_at timestamp without time zone NOT NULL,
859 modified_by_client_uuid character varying(255),
860 modified_by_user_uuid character varying(255),
861 modified_at timestamp without time zone,
862 tail_uuid character varying(255),
863 link_class character varying(255),
864 name character varying(255),
865 head_uuid character varying(255),
867 updated_at timestamp without time zone NOT NULL
872 -- Name: links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
875 CREATE SEQUENCE public.links_id_seq
884 -- Name: links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
887 ALTER SEQUENCE public.links_id_seq OWNED BY public.links.id;
891 -- Name: logs; Type: TABLE; Schema: public; Owner: -
894 CREATE TABLE public.logs (
896 uuid character varying(255),
897 owner_uuid character varying(255),
898 modified_by_client_uuid character varying(255),
899 modified_by_user_uuid character varying(255),
900 object_uuid character varying(255),
901 event_at timestamp without time zone,
902 event_type character varying(255),
905 created_at timestamp without time zone NOT NULL,
906 updated_at timestamp without time zone NOT NULL,
907 modified_at timestamp without time zone,
908 object_owner_uuid character varying(255)
913 -- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
916 CREATE SEQUENCE public.logs_id_seq
925 -- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
928 ALTER SEQUENCE public.logs_id_seq OWNED BY public.logs.id;
932 -- Name: materialized_permissions; Type: TABLE; Schema: public; Owner: -
935 CREATE TABLE public.materialized_permissions (
936 user_uuid character varying,
937 target_uuid character varying,
939 traverse_owned boolean
944 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
947 CREATE TABLE public.nodes (
949 uuid character varying(255),
950 owner_uuid character varying(255),
951 created_at timestamp without time zone NOT NULL,
952 modified_by_client_uuid character varying(255),
953 modified_by_user_uuid character varying(255),
954 modified_at timestamp without time zone,
956 hostname character varying(255),
957 domain character varying(255),
958 ip_address character varying(255),
959 first_ping_at timestamp without time zone,
960 last_ping_at timestamp without time zone,
962 updated_at timestamp without time zone NOT NULL,
964 job_uuid character varying(255)
969 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
972 CREATE SEQUENCE public.nodes_id_seq
981 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
984 ALTER SEQUENCE public.nodes_id_seq OWNED BY public.nodes.id;
988 -- Name: users; Type: TABLE; Schema: public; Owner: -
991 CREATE TABLE public.users (
993 uuid character varying(255),
994 owner_uuid character varying(255) NOT NULL,
995 created_at timestamp without time zone NOT NULL,
996 modified_by_client_uuid character varying(255),
997 modified_by_user_uuid character varying(255),
998 modified_at timestamp without time zone,
999 email character varying(255),
1000 first_name character varying(255),
1001 last_name character varying(255),
1002 identity_url character varying(255),
1005 updated_at timestamp without time zone NOT NULL,
1006 default_owner_uuid character varying(255),
1007 is_active boolean DEFAULT false,
1008 username character varying(255),
1009 redirect_to_user_uuid character varying
1014 -- Name: permission_graph_edges; Type: VIEW; Schema: public; Owner: -
1017 CREATE VIEW public.permission_graph_edges AS
1018 SELECT groups.owner_uuid AS tail_uuid,
1019 groups.uuid AS head_uuid,
1021 groups.uuid AS edge_id
1024 SELECT users.owner_uuid AS tail_uuid,
1025 users.uuid AS head_uuid,
1027 users.uuid AS edge_id
1030 SELECT users.uuid AS tail_uuid,
1031 users.uuid AS head_uuid,
1033 ''::character varying AS edge_id
1036 SELECT links.tail_uuid,
1039 WHEN ((links.name)::text = 'can_read'::text) THEN 1
1040 WHEN ((links.name)::text = 'can_login'::text) THEN 1
1041 WHEN ((links.name)::text = 'can_write'::text) THEN 2
1042 WHEN ((links.name)::text = 'can_manage'::text) THEN 3
1045 links.uuid AS edge_id
1047 WHERE ((links.link_class)::text = 'permission'::text);
1051 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -
1054 CREATE TABLE public.pipeline_instances (
1055 id integer NOT NULL,
1056 uuid character varying(255),
1057 owner_uuid character varying(255),
1058 created_at timestamp without time zone NOT NULL,
1059 modified_by_client_uuid character varying(255),
1060 modified_by_user_uuid character varying(255),
1061 modified_at timestamp without time zone,
1062 pipeline_template_uuid character varying(255),
1063 name character varying(255),
1065 updated_at timestamp without time zone NOT NULL,
1067 state character varying(255),
1068 components_summary text,
1069 started_at timestamp without time zone,
1070 finished_at timestamp without time zone,
1071 description character varying(524288)
1076 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1079 CREATE SEQUENCE public.pipeline_instances_id_seq
1088 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1091 ALTER SEQUENCE public.pipeline_instances_id_seq OWNED BY public.pipeline_instances.id;
1095 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -
1098 CREATE TABLE public.pipeline_templates (
1099 id integer NOT NULL,
1100 uuid character varying(255),
1101 owner_uuid character varying(255),
1102 created_at timestamp without time zone NOT NULL,
1103 modified_by_client_uuid character varying(255),
1104 modified_by_user_uuid character varying(255),
1105 modified_at timestamp without time zone,
1106 name character varying(255),
1108 updated_at timestamp without time zone NOT NULL,
1109 description character varying(524288)
1114 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1117 CREATE SEQUENCE public.pipeline_templates_id_seq
1126 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1129 ALTER SEQUENCE public.pipeline_templates_id_seq OWNED BY public.pipeline_templates.id;
1133 -- Name: repositories; Type: TABLE; Schema: public; Owner: -
1136 CREATE TABLE public.repositories (
1137 id integer NOT NULL,
1138 uuid character varying(255) NOT NULL,
1139 owner_uuid character varying(255) NOT NULL,
1140 modified_by_client_uuid character varying(255),
1141 modified_by_user_uuid character varying(255),
1142 modified_at timestamp without time zone,
1143 name character varying(255),
1144 created_at timestamp without time zone NOT NULL,
1145 updated_at timestamp without time zone NOT NULL
1150 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1153 CREATE SEQUENCE public.repositories_id_seq
1162 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1165 ALTER SEQUENCE public.repositories_id_seq OWNED BY public.repositories.id;
1169 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
1172 CREATE TABLE public.schema_migrations (
1173 version character varying(255) NOT NULL
1178 -- Name: specimens; Type: TABLE; Schema: public; Owner: -
1181 CREATE TABLE public.specimens (
1182 id integer NOT NULL,
1183 uuid character varying(255),
1184 owner_uuid character varying(255),
1185 created_at timestamp without time zone NOT NULL,
1186 modified_by_client_uuid character varying(255),
1187 modified_by_user_uuid character varying(255),
1188 modified_at timestamp without time zone,
1189 material character varying(255),
1190 updated_at timestamp without time zone NOT NULL,
1196 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1199 CREATE SEQUENCE public.specimens_id_seq
1208 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1211 ALTER SEQUENCE public.specimens_id_seq OWNED BY public.specimens.id;
1215 -- Name: traits; Type: TABLE; Schema: public; Owner: -
1218 CREATE TABLE public.traits (
1219 id integer NOT NULL,
1220 uuid character varying(255) NOT NULL,
1221 owner_uuid character varying(255) NOT NULL,
1222 modified_by_client_uuid character varying(255),
1223 modified_by_user_uuid character varying(255),
1224 modified_at timestamp without time zone,
1225 name character varying(255),
1227 created_at timestamp without time zone NOT NULL,
1228 updated_at timestamp without time zone NOT NULL
1233 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1236 CREATE SEQUENCE public.traits_id_seq
1245 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1248 ALTER SEQUENCE public.traits_id_seq OWNED BY public.traits.id;
1252 -- Name: trashed_groups; Type: TABLE; Schema: public; Owner: -
1255 CREATE TABLE public.trashed_groups (
1256 group_uuid character varying,
1257 trash_at timestamp without time zone
1262 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1265 CREATE SEQUENCE public.users_id_seq
1274 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1277 ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
1281 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -
1284 CREATE TABLE public.virtual_machines (
1285 id integer NOT NULL,
1286 uuid character varying(255) NOT NULL,
1287 owner_uuid character varying(255) NOT NULL,
1288 modified_by_client_uuid character varying(255),
1289 modified_by_user_uuid character varying(255),
1290 modified_at timestamp without time zone,
1291 hostname character varying(255),
1292 created_at timestamp without time zone NOT NULL,
1293 updated_at timestamp without time zone NOT NULL
1298 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1301 CREATE SEQUENCE public.virtual_machines_id_seq
1310 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1313 ALTER SEQUENCE public.virtual_machines_id_seq OWNED BY public.virtual_machines.id;
1317 -- Name: workflows; Type: TABLE; Schema: public; Owner: -
1320 CREATE TABLE public.workflows (
1321 id integer NOT NULL,
1322 uuid character varying(255),
1323 owner_uuid character varying(255),
1324 created_at timestamp without time zone NOT NULL,
1325 modified_at timestamp without time zone,
1326 modified_by_client_uuid character varying(255),
1327 modified_by_user_uuid character varying(255),
1328 name character varying(255),
1331 updated_at timestamp without time zone NOT NULL
1336 -- Name: workflows_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1339 CREATE SEQUENCE public.workflows_id_seq
1348 -- Name: workflows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1351 ALTER SEQUENCE public.workflows_id_seq OWNED BY public.workflows.id;
1355 -- Name: api_client_authorizations id; Type: DEFAULT; Schema: public; Owner: -
1358 ALTER TABLE ONLY public.api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('public.api_client_authorizations_id_seq'::regclass);
1362 -- Name: api_clients id; Type: DEFAULT; Schema: public; Owner: -
1365 ALTER TABLE ONLY public.api_clients ALTER COLUMN id SET DEFAULT nextval('public.api_clients_id_seq'::regclass);
1369 -- Name: authorized_keys id; Type: DEFAULT; Schema: public; Owner: -
1372 ALTER TABLE ONLY public.authorized_keys ALTER COLUMN id SET DEFAULT nextval('public.authorized_keys_id_seq'::regclass);
1376 -- Name: collections id; Type: DEFAULT; Schema: public; Owner: -
1379 ALTER TABLE ONLY public.collections ALTER COLUMN id SET DEFAULT nextval('public.collections_id_seq'::regclass);
1383 -- Name: container_requests id; Type: DEFAULT; Schema: public; Owner: -
1386 ALTER TABLE ONLY public.container_requests ALTER COLUMN id SET DEFAULT nextval('public.container_requests_id_seq'::regclass);
1390 -- Name: containers id; Type: DEFAULT; Schema: public; Owner: -
1393 ALTER TABLE ONLY public.containers ALTER COLUMN id SET DEFAULT nextval('public.containers_id_seq'::regclass);
1397 -- Name: groups id; Type: DEFAULT; Schema: public; Owner: -
1400 ALTER TABLE ONLY public.groups ALTER COLUMN id SET DEFAULT nextval('public.groups_id_seq'::regclass);
1404 -- Name: humans id; Type: DEFAULT; Schema: public; Owner: -
1407 ALTER TABLE ONLY public.humans ALTER COLUMN id SET DEFAULT nextval('public.humans_id_seq'::regclass);
1411 -- Name: job_tasks id; Type: DEFAULT; Schema: public; Owner: -
1414 ALTER TABLE ONLY public.job_tasks ALTER COLUMN id SET DEFAULT nextval('public.job_tasks_id_seq'::regclass);
1418 -- Name: jobs id; Type: DEFAULT; Schema: public; Owner: -
1421 ALTER TABLE ONLY public.jobs ALTER COLUMN id SET DEFAULT nextval('public.jobs_id_seq'::regclass);
1425 -- Name: keep_disks id; Type: DEFAULT; Schema: public; Owner: -
1428 ALTER TABLE ONLY public.keep_disks ALTER COLUMN id SET DEFAULT nextval('public.keep_disks_id_seq'::regclass);
1432 -- Name: keep_services id; Type: DEFAULT; Schema: public; Owner: -
1435 ALTER TABLE ONLY public.keep_services ALTER COLUMN id SET DEFAULT nextval('public.keep_services_id_seq'::regclass);
1439 -- Name: links id; Type: DEFAULT; Schema: public; Owner: -
1442 ALTER TABLE ONLY public.links ALTER COLUMN id SET DEFAULT nextval('public.links_id_seq'::regclass);
1446 -- Name: logs id; Type: DEFAULT; Schema: public; Owner: -
1449 ALTER TABLE ONLY public.logs ALTER COLUMN id SET DEFAULT nextval('public.logs_id_seq'::regclass);
1453 -- Name: nodes id; Type: DEFAULT; Schema: public; Owner: -
1456 ALTER TABLE ONLY public.nodes ALTER COLUMN id SET DEFAULT nextval('public.nodes_id_seq'::regclass);
1460 -- Name: pipeline_instances id; Type: DEFAULT; Schema: public; Owner: -
1463 ALTER TABLE ONLY public.pipeline_instances ALTER COLUMN id SET DEFAULT nextval('public.pipeline_instances_id_seq'::regclass);
1467 -- Name: pipeline_templates id; Type: DEFAULT; Schema: public; Owner: -
1470 ALTER TABLE ONLY public.pipeline_templates ALTER COLUMN id SET DEFAULT nextval('public.pipeline_templates_id_seq'::regclass);
1474 -- Name: repositories id; Type: DEFAULT; Schema: public; Owner: -
1477 ALTER TABLE ONLY public.repositories ALTER COLUMN id SET DEFAULT nextval('public.repositories_id_seq'::regclass);
1481 -- Name: specimens id; Type: DEFAULT; Schema: public; Owner: -
1484 ALTER TABLE ONLY public.specimens ALTER COLUMN id SET DEFAULT nextval('public.specimens_id_seq'::regclass);
1488 -- Name: traits id; Type: DEFAULT; Schema: public; Owner: -
1491 ALTER TABLE ONLY public.traits ALTER COLUMN id SET DEFAULT nextval('public.traits_id_seq'::regclass);
1495 -- Name: users id; Type: DEFAULT; Schema: public; Owner: -
1498 ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
1502 -- Name: virtual_machines id; Type: DEFAULT; Schema: public; Owner: -
1505 ALTER TABLE ONLY public.virtual_machines ALTER COLUMN id SET DEFAULT nextval('public.virtual_machines_id_seq'::regclass);
1509 -- Name: workflows id; Type: DEFAULT; Schema: public; Owner: -
1512 ALTER TABLE ONLY public.workflows ALTER COLUMN id SET DEFAULT nextval('public.workflows_id_seq'::regclass);
1516 -- Name: api_client_authorizations api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1519 ALTER TABLE ONLY public.api_client_authorizations
1520 ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1524 -- Name: api_clients api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1527 ALTER TABLE ONLY public.api_clients
1528 ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1532 -- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1535 ALTER TABLE ONLY public.ar_internal_metadata
1536 ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key);
1540 -- Name: authorized_keys authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1543 ALTER TABLE ONLY public.authorized_keys
1544 ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1548 -- Name: collections collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1551 ALTER TABLE ONLY public.collections
1552 ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1556 -- Name: container_requests container_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1559 ALTER TABLE ONLY public.container_requests
1560 ADD CONSTRAINT container_requests_pkey PRIMARY KEY (id);
1564 -- Name: containers containers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1567 ALTER TABLE ONLY public.containers
1568 ADD CONSTRAINT containers_pkey PRIMARY KEY (id);
1572 -- Name: groups groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1575 ALTER TABLE ONLY public.groups
1576 ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1580 -- Name: humans humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1583 ALTER TABLE ONLY public.humans
1584 ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1588 -- Name: job_tasks job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1591 ALTER TABLE ONLY public.job_tasks
1592 ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1596 -- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1599 ALTER TABLE ONLY public.jobs
1600 ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1604 -- Name: keep_disks keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1607 ALTER TABLE ONLY public.keep_disks
1608 ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1612 -- Name: keep_services keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1615 ALTER TABLE ONLY public.keep_services
1616 ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1620 -- Name: links links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1623 ALTER TABLE ONLY public.links
1624 ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1628 -- Name: logs logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1631 ALTER TABLE ONLY public.logs
1632 ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1636 -- Name: nodes nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1639 ALTER TABLE ONLY public.nodes
1640 ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1644 -- Name: pipeline_instances pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1647 ALTER TABLE ONLY public.pipeline_instances
1648 ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1652 -- Name: pipeline_templates pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1655 ALTER TABLE ONLY public.pipeline_templates
1656 ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1660 -- Name: repositories repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1663 ALTER TABLE ONLY public.repositories
1664 ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1668 -- Name: specimens specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1671 ALTER TABLE ONLY public.specimens
1672 ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1676 -- Name: traits traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1679 ALTER TABLE ONLY public.traits
1680 ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1684 -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1687 ALTER TABLE ONLY public.users
1688 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1692 -- Name: virtual_machines virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1695 ALTER TABLE ONLY public.virtual_machines
1696 ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1700 -- Name: workflows workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1703 ALTER TABLE ONLY public.workflows
1704 ADD CONSTRAINT workflows_pkey PRIMARY KEY (id);
1708 -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -
1711 CREATE INDEX api_client_authorizations_search_index ON public.api_client_authorizations USING btree (api_token, created_by_ip_address, last_used_by_ip_address, default_owner_uuid, uuid);
1715 -- Name: api_clients_search_index; Type: INDEX; Schema: public; Owner: -
1718 CREATE INDEX api_clients_search_index ON public.api_clients USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, url_prefix);
1722 -- Name: authorized_keys_search_index; Type: INDEX; Schema: public; Owner: -
1725 CREATE INDEX authorized_keys_search_index ON public.authorized_keys USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, key_type, authorized_user_uuid);
1729 -- Name: collection_index_on_properties; Type: INDEX; Schema: public; Owner: -
1732 CREATE INDEX collection_index_on_properties ON public.collections USING gin (properties);
1736 -- Name: collections_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1739 CREATE INDEX collections_full_text_search_idx ON public.collections USING gin (to_tsvector('english'::regconfig, substr((((((((((((((((((COALESCE(owner_uuid, ''::character varying))::text || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(portable_data_hash, ''::character varying))::text) || ' '::text) || (COALESCE(uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || COALESCE((properties)::text, ''::text)) || ' '::text) || COALESCE(file_names, ''::text)), 0, 1000000)));
1743 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -
1746 CREATE INDEX collections_search_index ON public.collections USING btree (owner_uuid, modified_by_client_uuid, modified_by_user_uuid, portable_data_hash, uuid, name, current_version_uuid);
1750 -- Name: collections_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
1753 CREATE INDEX collections_trgm_text_search_idx ON public.collections USING gin (((((((((((((((((((COALESCE(owner_uuid, ''::character varying))::text || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(portable_data_hash, ''::character varying))::text) || ' '::text) || (COALESCE(uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || COALESCE((properties)::text, ''::text)) || ' '::text) || COALESCE(file_names, ''::text))) public.gin_trgm_ops);
1757 -- Name: container_requests_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1760 CREATE INDEX container_requests_full_text_search_idx ON public.container_requests USING gin (to_tsvector('english'::regconfig, substr((((((((((((((((((((((((((((((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || COALESCE(description, ''::text)) || ' '::text) || COALESCE((properties)::text, ''::text)) || ' '::text) || (COALESCE(state, ''::character varying))::text) || ' '::text) || (COALESCE(requesting_container_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(container_uuid, ''::character varying))::text) || ' '::text) || COALESCE(runtime_constraints, ''::text)) || ' '::text) || (COALESCE(container_image, ''::character varying))::text) || ' '::text) || COALESCE(environment, ''::text)) || ' '::text) || (COALESCE(cwd, ''::character varying))::text) || ' '::text) || COALESCE(command, ''::text)) || ' '::text) || (COALESCE(output_path, ''::character varying))::text) || ' '::text) || COALESCE(filters, ''::text)) || ' '::text) || COALESCE(scheduling_parameters, ''::text)) || ' '::text) || (COALESCE(output_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(log_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(output_name, ''::character varying))::text), 0, 1000000)));
1764 -- Name: container_requests_index_on_properties; Type: INDEX; Schema: public; Owner: -
1767 CREATE INDEX container_requests_index_on_properties ON public.container_requests USING gin (properties);
1771 -- Name: container_requests_search_index; Type: INDEX; Schema: public; Owner: -
1774 CREATE INDEX container_requests_search_index ON public.container_requests USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, state, requesting_container_uuid, container_uuid, container_image, cwd, output_path, output_uuid, log_uuid, output_name);
1778 -- Name: container_requests_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
1781 CREATE INDEX container_requests_trgm_text_search_idx ON public.container_requests USING gin (((((((((((((((((((((((((((((((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || COALESCE(description, ''::text)) || ' '::text) || COALESCE((properties)::text, ''::text)) || ' '::text) || (COALESCE(state, ''::character varying))::text) || ' '::text) || (COALESCE(requesting_container_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(container_uuid, ''::character varying))::text) || ' '::text) || COALESCE(runtime_constraints, ''::text)) || ' '::text) || (COALESCE(container_image, ''::character varying))::text) || ' '::text) || COALESCE(environment, ''::text)) || ' '::text) || (COALESCE(cwd, ''::character varying))::text) || ' '::text) || COALESCE(command, ''::text)) || ' '::text) || (COALESCE(output_path, ''::character varying))::text) || ' '::text) || COALESCE(filters, ''::text)) || ' '::text) || COALESCE(scheduling_parameters, ''::text)) || ' '::text) || (COALESCE(output_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(log_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(output_name, ''::character varying))::text)) public.gin_trgm_ops);
1785 -- Name: containers_search_index; Type: INDEX; Schema: public; Owner: -
1788 CREATE INDEX containers_search_index ON public.containers USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, state, log, cwd, output_path, output, container_image, auth_uuid, locked_by_uuid);
1792 -- Name: group_index_on_properties; Type: INDEX; Schema: public; Owner: -
1795 CREATE INDEX group_index_on_properties ON public.groups USING gin (properties);
1799 -- Name: groups_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1802 CREATE INDEX groups_full_text_search_idx ON public.groups USING gin (to_tsvector('english'::regconfig, substr((((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || (COALESCE(group_class, ''::character varying))::text) || ' '::text) || COALESCE((properties)::text, ''::text)), 0, 1000000)));
1806 -- Name: groups_search_index; Type: INDEX; Schema: public; Owner: -
1809 CREATE INDEX groups_search_index ON public.groups USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, group_class);
1813 -- Name: groups_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
1816 CREATE INDEX groups_trgm_text_search_idx ON public.groups USING gin (((((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || (COALESCE(group_class, ''::character varying))::text) || ' '::text) || COALESCE((properties)::text, ''::text))) public.gin_trgm_ops);
1820 -- Name: humans_search_index; Type: INDEX; Schema: public; Owner: -
1823 CREATE INDEX humans_search_index ON public.humans USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid);
1827 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -
1830 CREATE INDEX index_api_client_authorizations_on_api_client_id ON public.api_client_authorizations USING btree (api_client_id);
1834 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -
1837 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON public.api_client_authorizations USING btree (api_token);
1841 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -
1844 CREATE INDEX index_api_client_authorizations_on_expires_at ON public.api_client_authorizations USING btree (expires_at);
1848 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -
1851 CREATE INDEX index_api_client_authorizations_on_user_id ON public.api_client_authorizations USING btree (user_id);
1855 -- Name: index_api_client_authorizations_on_uuid; Type: INDEX; Schema: public; Owner: -
1858 CREATE UNIQUE INDEX index_api_client_authorizations_on_uuid ON public.api_client_authorizations USING btree (uuid);
1862 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -
1865 CREATE INDEX index_api_clients_on_created_at ON public.api_clients USING btree (created_at);
1869 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -
1872 CREATE INDEX index_api_clients_on_modified_at ON public.api_clients USING btree (modified_at);
1876 -- Name: index_api_clients_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1879 CREATE INDEX index_api_clients_on_owner_uuid ON public.api_clients USING btree (owner_uuid);
1883 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -
1886 CREATE UNIQUE INDEX index_api_clients_on_uuid ON public.api_clients USING btree (uuid);
1890 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -
1893 CREATE INDEX index_authkeys_on_user_and_expires_at ON public.authorized_keys USING btree (authorized_user_uuid, expires_at);
1897 -- Name: index_authorized_keys_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1900 CREATE INDEX index_authorized_keys_on_owner_uuid ON public.authorized_keys USING btree (owner_uuid);
1904 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -
1907 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON public.authorized_keys USING btree (uuid);
1911 -- Name: index_collections_on_created_at; Type: INDEX; Schema: public; Owner: -
1914 CREATE INDEX index_collections_on_created_at ON public.collections USING btree (created_at);
1918 -- Name: index_collections_on_current_version_uuid_and_version; Type: INDEX; Schema: public; Owner: -
1921 CREATE UNIQUE INDEX index_collections_on_current_version_uuid_and_version ON public.collections USING btree (current_version_uuid, version);
1925 -- Name: index_collections_on_delete_at; Type: INDEX; Schema: public; Owner: -
1928 CREATE INDEX index_collections_on_delete_at ON public.collections USING btree (delete_at);
1932 -- Name: index_collections_on_is_trashed; Type: INDEX; Schema: public; Owner: -
1935 CREATE INDEX index_collections_on_is_trashed ON public.collections USING btree (is_trashed);
1939 -- Name: index_collections_on_modified_at; Type: INDEX; Schema: public; Owner: -
1942 CREATE INDEX index_collections_on_modified_at ON public.collections USING btree (modified_at);
1946 -- Name: index_collections_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1949 CREATE INDEX index_collections_on_modified_at_uuid ON public.collections USING btree (modified_at DESC, uuid);
1953 -- Name: index_collections_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1956 CREATE INDEX index_collections_on_owner_uuid ON public.collections USING btree (owner_uuid);
1960 -- Name: index_collections_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
1963 CREATE UNIQUE INDEX index_collections_on_owner_uuid_and_name ON public.collections USING btree (owner_uuid, name) WHERE ((is_trashed = false) AND ((current_version_uuid)::text = (uuid)::text));
1967 -- Name: index_collections_on_portable_data_hash_and_trash_at; Type: INDEX; Schema: public; Owner: -
1970 CREATE INDEX index_collections_on_portable_data_hash_and_trash_at ON public.collections USING btree (portable_data_hash, trash_at);
1974 -- Name: index_collections_on_trash_at; Type: INDEX; Schema: public; Owner: -
1977 CREATE INDEX index_collections_on_trash_at ON public.collections USING btree (trash_at);
1981 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -
1984 CREATE UNIQUE INDEX index_collections_on_uuid ON public.collections USING btree (uuid);
1988 -- Name: index_container_requests_on_container_uuid; Type: INDEX; Schema: public; Owner: -
1991 CREATE INDEX index_container_requests_on_container_uuid ON public.container_requests USING btree (container_uuid);
1995 -- Name: index_container_requests_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
1998 CREATE INDEX index_container_requests_on_modified_at_uuid ON public.container_requests USING btree (modified_at DESC, uuid);
2002 -- Name: index_container_requests_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2005 CREATE INDEX index_container_requests_on_owner_uuid ON public.container_requests USING btree (owner_uuid);
2009 -- Name: index_container_requests_on_requesting_container_uuid; Type: INDEX; Schema: public; Owner: -
2012 CREATE INDEX index_container_requests_on_requesting_container_uuid ON public.container_requests USING btree (requesting_container_uuid);
2016 -- Name: index_container_requests_on_uuid; Type: INDEX; Schema: public; Owner: -
2019 CREATE UNIQUE INDEX index_container_requests_on_uuid ON public.container_requests USING btree (uuid);
2023 -- Name: index_containers_on_auth_uuid; Type: INDEX; Schema: public; Owner: -
2026 CREATE INDEX index_containers_on_auth_uuid ON public.containers USING btree (auth_uuid);
2030 -- Name: index_containers_on_locked_by_uuid_and_priority; Type: INDEX; Schema: public; Owner: -
2033 CREATE INDEX index_containers_on_locked_by_uuid_and_priority ON public.containers USING btree (locked_by_uuid, priority);
2037 -- Name: index_containers_on_locked_by_uuid_and_uuid; Type: INDEX; Schema: public; Owner: -
2040 CREATE INDEX index_containers_on_locked_by_uuid_and_uuid ON public.containers USING btree (locked_by_uuid, uuid);
2044 -- Name: index_containers_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2047 CREATE INDEX index_containers_on_modified_at_uuid ON public.containers USING btree (modified_at DESC, uuid);
2051 -- Name: index_containers_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2054 CREATE INDEX index_containers_on_owner_uuid ON public.containers USING btree (owner_uuid);
2058 -- Name: index_containers_on_queued_state; Type: INDEX; Schema: public; Owner: -
2061 CREATE INDEX index_containers_on_queued_state ON public.containers USING btree (state, ((priority > 0)));
2065 -- Name: index_containers_on_reuse_columns; Type: INDEX; Schema: public; Owner: -
2068 CREATE INDEX index_containers_on_reuse_columns ON public.containers USING btree (md5(command), cwd, md5(environment), output_path, container_image, md5(mounts), secret_mounts_md5, md5(runtime_constraints));
2072 -- Name: index_containers_on_runtime_status; Type: INDEX; Schema: public; Owner: -
2075 CREATE INDEX index_containers_on_runtime_status ON public.containers USING gin (runtime_status);
2079 -- Name: index_containers_on_secret_mounts_md5; Type: INDEX; Schema: public; Owner: -
2082 CREATE INDEX index_containers_on_secret_mounts_md5 ON public.containers USING btree (secret_mounts_md5);
2086 -- Name: index_containers_on_uuid; Type: INDEX; Schema: public; Owner: -
2089 CREATE UNIQUE INDEX index_containers_on_uuid ON public.containers USING btree (uuid);
2093 -- Name: index_groups_on_created_at; Type: INDEX; Schema: public; Owner: -
2096 CREATE INDEX index_groups_on_created_at ON public.groups USING btree (created_at);
2100 -- Name: index_groups_on_delete_at; Type: INDEX; Schema: public; Owner: -
2103 CREATE INDEX index_groups_on_delete_at ON public.groups USING btree (delete_at);
2107 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -
2110 CREATE INDEX index_groups_on_group_class ON public.groups USING btree (group_class);
2114 -- Name: index_groups_on_is_trashed; Type: INDEX; Schema: public; Owner: -
2117 CREATE INDEX index_groups_on_is_trashed ON public.groups USING btree (is_trashed);
2121 -- Name: index_groups_on_modified_at; Type: INDEX; Schema: public; Owner: -
2124 CREATE INDEX index_groups_on_modified_at ON public.groups USING btree (modified_at);
2128 -- Name: index_groups_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2131 CREATE INDEX index_groups_on_modified_at_uuid ON public.groups USING btree (modified_at DESC, uuid);
2135 -- Name: index_groups_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2138 CREATE INDEX index_groups_on_owner_uuid ON public.groups USING btree (owner_uuid);
2142 -- Name: index_groups_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
2145 CREATE UNIQUE INDEX index_groups_on_owner_uuid_and_name ON public.groups USING btree (owner_uuid, name) WHERE (is_trashed = false);
2149 -- Name: index_groups_on_trash_at; Type: INDEX; Schema: public; Owner: -
2152 CREATE INDEX index_groups_on_trash_at ON public.groups USING btree (trash_at);
2156 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -
2159 CREATE UNIQUE INDEX index_groups_on_uuid ON public.groups USING btree (uuid);
2163 -- Name: index_humans_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2166 CREATE INDEX index_humans_on_owner_uuid ON public.humans USING btree (owner_uuid);
2170 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -
2173 CREATE UNIQUE INDEX index_humans_on_uuid ON public.humans USING btree (uuid);
2177 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -
2180 CREATE INDEX index_job_tasks_on_created_at ON public.job_tasks USING btree (created_at);
2184 -- Name: index_job_tasks_on_created_by_job_task_uuid; Type: INDEX; Schema: public; Owner: -
2187 CREATE INDEX index_job_tasks_on_created_by_job_task_uuid ON public.job_tasks USING btree (created_by_job_task_uuid);
2191 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -
2194 CREATE INDEX index_job_tasks_on_job_uuid ON public.job_tasks USING btree (job_uuid);
2198 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -
2201 CREATE INDEX index_job_tasks_on_modified_at ON public.job_tasks USING btree (modified_at);
2205 -- Name: index_job_tasks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2208 CREATE INDEX index_job_tasks_on_owner_uuid ON public.job_tasks USING btree (owner_uuid);
2212 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -
2215 CREATE INDEX index_job_tasks_on_sequence ON public.job_tasks USING btree (sequence);
2219 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -
2222 CREATE INDEX index_job_tasks_on_success ON public.job_tasks USING btree (success);
2226 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -
2229 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON public.job_tasks USING btree (uuid);
2233 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -
2236 CREATE INDEX index_jobs_on_created_at ON public.jobs USING btree (created_at);
2240 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -
2243 CREATE INDEX index_jobs_on_finished_at ON public.jobs USING btree (finished_at);
2247 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2250 CREATE INDEX index_jobs_on_modified_at ON public.jobs USING btree (modified_at);
2254 -- Name: index_jobs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2257 CREATE INDEX index_jobs_on_modified_at_uuid ON public.jobs USING btree (modified_at DESC, uuid);
2261 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -
2264 CREATE INDEX index_jobs_on_output ON public.jobs USING btree (output);
2268 -- Name: index_jobs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2271 CREATE INDEX index_jobs_on_owner_uuid ON public.jobs USING btree (owner_uuid);
2275 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -
2278 CREATE INDEX index_jobs_on_script ON public.jobs USING btree (script);
2282 -- Name: index_jobs_on_script_parameters_digest; Type: INDEX; Schema: public; Owner: -
2285 CREATE INDEX index_jobs_on_script_parameters_digest ON public.jobs USING btree (script_parameters_digest);
2289 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -
2292 CREATE INDEX index_jobs_on_started_at ON public.jobs USING btree (started_at);
2296 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -
2299 CREATE UNIQUE INDEX index_jobs_on_submit_id ON public.jobs USING btree (submit_id);
2303 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -
2306 CREATE UNIQUE INDEX index_jobs_on_uuid ON public.jobs USING btree (uuid);
2310 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -
2313 CREATE INDEX index_keep_disks_on_filesystem_uuid ON public.keep_disks USING btree (filesystem_uuid);
2317 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -
2320 CREATE INDEX index_keep_disks_on_last_ping_at ON public.keep_disks USING btree (last_ping_at);
2324 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -
2327 CREATE INDEX index_keep_disks_on_node_uuid ON public.keep_disks USING btree (node_uuid);
2331 -- Name: index_keep_disks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2334 CREATE INDEX index_keep_disks_on_owner_uuid ON public.keep_disks USING btree (owner_uuid);
2338 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -
2341 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON public.keep_disks USING btree (uuid);
2345 -- Name: index_keep_services_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2348 CREATE INDEX index_keep_services_on_owner_uuid ON public.keep_services USING btree (owner_uuid);
2352 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -
2355 CREATE UNIQUE INDEX index_keep_services_on_uuid ON public.keep_services USING btree (uuid);
2359 -- Name: index_links_on_created_at; Type: INDEX; Schema: public; Owner: -
2362 CREATE INDEX index_links_on_created_at ON public.links USING btree (created_at);
2366 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -
2369 CREATE INDEX index_links_on_head_uuid ON public.links USING btree (head_uuid);
2373 -- Name: index_links_on_modified_at; Type: INDEX; Schema: public; Owner: -
2376 CREATE INDEX index_links_on_modified_at ON public.links USING btree (modified_at);
2380 -- Name: index_links_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2383 CREATE INDEX index_links_on_modified_at_uuid ON public.links USING btree (modified_at DESC, uuid);
2387 -- Name: index_links_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2390 CREATE INDEX index_links_on_owner_uuid ON public.links USING btree (owner_uuid);
2394 -- Name: index_links_on_substring_head_uuid; Type: INDEX; Schema: public; Owner: -
2397 CREATE INDEX index_links_on_substring_head_uuid ON public.links USING btree ("substring"((head_uuid)::text, 7, 5));
2401 -- Name: index_links_on_substring_tail_uuid; Type: INDEX; Schema: public; Owner: -
2404 CREATE INDEX index_links_on_substring_tail_uuid ON public.links USING btree ("substring"((tail_uuid)::text, 7, 5));
2408 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -
2411 CREATE INDEX index_links_on_tail_uuid ON public.links USING btree (tail_uuid);
2415 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -
2418 CREATE UNIQUE INDEX index_links_on_uuid ON public.links USING btree (uuid);
2422 -- Name: index_logs_on_created_at; Type: INDEX; Schema: public; Owner: -
2425 CREATE INDEX index_logs_on_created_at ON public.logs USING btree (created_at);
2429 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -
2432 CREATE INDEX index_logs_on_event_at ON public.logs USING btree (event_at);
2436 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -
2439 CREATE INDEX index_logs_on_event_type ON public.logs USING btree (event_type);
2443 -- Name: index_logs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2446 CREATE INDEX index_logs_on_modified_at ON public.logs USING btree (modified_at);
2450 -- Name: index_logs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2453 CREATE INDEX index_logs_on_modified_at_uuid ON public.logs USING btree (modified_at DESC, uuid);
2457 -- Name: index_logs_on_object_owner_uuid; Type: INDEX; Schema: public; Owner: -
2460 CREATE INDEX index_logs_on_object_owner_uuid ON public.logs USING btree (object_owner_uuid);
2464 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -
2467 CREATE INDEX index_logs_on_object_uuid ON public.logs USING btree (object_uuid);
2471 -- Name: index_logs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2474 CREATE INDEX index_logs_on_owner_uuid ON public.logs USING btree (owner_uuid);
2478 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -
2481 CREATE INDEX index_logs_on_summary ON public.logs USING btree (summary);
2485 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -
2488 CREATE UNIQUE INDEX index_logs_on_uuid ON public.logs USING btree (uuid);
2492 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -
2495 CREATE INDEX index_nodes_on_created_at ON public.nodes USING btree (created_at);
2499 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -
2502 CREATE INDEX index_nodes_on_hostname ON public.nodes USING btree (hostname);
2506 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -
2509 CREATE INDEX index_nodes_on_modified_at ON public.nodes USING btree (modified_at);
2513 -- Name: index_nodes_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2516 CREATE INDEX index_nodes_on_owner_uuid ON public.nodes USING btree (owner_uuid);
2520 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -
2523 CREATE UNIQUE INDEX index_nodes_on_slot_number ON public.nodes USING btree (slot_number);
2527 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -
2530 CREATE UNIQUE INDEX index_nodes_on_uuid ON public.nodes USING btree (uuid);
2534 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -
2537 CREATE INDEX index_pipeline_instances_on_created_at ON public.pipeline_instances USING btree (created_at);
2541 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -
2544 CREATE INDEX index_pipeline_instances_on_modified_at ON public.pipeline_instances USING btree (modified_at);
2548 -- Name: index_pipeline_instances_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2551 CREATE INDEX index_pipeline_instances_on_modified_at_uuid ON public.pipeline_instances USING btree (modified_at DESC, uuid);
2555 -- Name: index_pipeline_instances_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2558 CREATE INDEX index_pipeline_instances_on_owner_uuid ON public.pipeline_instances USING btree (owner_uuid);
2562 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -
2565 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON public.pipeline_instances USING btree (uuid);
2569 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -
2572 CREATE INDEX index_pipeline_templates_on_created_at ON public.pipeline_templates USING btree (created_at);
2576 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -
2579 CREATE INDEX index_pipeline_templates_on_modified_at ON public.pipeline_templates USING btree (modified_at);
2583 -- Name: index_pipeline_templates_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2586 CREATE INDEX index_pipeline_templates_on_modified_at_uuid ON public.pipeline_templates USING btree (modified_at DESC, uuid);
2590 -- Name: index_pipeline_templates_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2593 CREATE INDEX index_pipeline_templates_on_owner_uuid ON public.pipeline_templates USING btree (owner_uuid);
2597 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -
2600 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON public.pipeline_templates USING btree (uuid);
2604 -- Name: index_repositories_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2607 CREATE INDEX index_repositories_on_modified_at_uuid ON public.repositories USING btree (modified_at DESC, uuid);
2611 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -
2614 CREATE UNIQUE INDEX index_repositories_on_name ON public.repositories USING btree (name);
2618 -- Name: index_repositories_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2621 CREATE INDEX index_repositories_on_owner_uuid ON public.repositories USING btree (owner_uuid);
2625 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -
2628 CREATE UNIQUE INDEX index_repositories_on_uuid ON public.repositories USING btree (uuid);
2632 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -
2635 CREATE INDEX index_specimens_on_created_at ON public.specimens USING btree (created_at);
2639 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -
2642 CREATE INDEX index_specimens_on_modified_at ON public.specimens USING btree (modified_at);
2646 -- Name: index_specimens_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2649 CREATE INDEX index_specimens_on_owner_uuid ON public.specimens USING btree (owner_uuid);
2653 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -
2656 CREATE UNIQUE INDEX index_specimens_on_uuid ON public.specimens USING btree (uuid);
2660 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -
2663 CREATE INDEX index_traits_on_name ON public.traits USING btree (name);
2667 -- Name: index_traits_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2670 CREATE INDEX index_traits_on_owner_uuid ON public.traits USING btree (owner_uuid);
2674 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -
2677 CREATE UNIQUE INDEX index_traits_on_uuid ON public.traits USING btree (uuid);
2681 -- Name: index_trashed_groups_on_group_uuid; Type: INDEX; Schema: public; Owner: -
2684 CREATE UNIQUE INDEX index_trashed_groups_on_group_uuid ON public.trashed_groups USING btree (group_uuid);
2688 -- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: -
2691 CREATE INDEX index_users_on_created_at ON public.users USING btree (created_at);
2695 -- Name: index_users_on_identity_url; Type: INDEX; Schema: public; Owner: -
2698 CREATE UNIQUE INDEX index_users_on_identity_url ON public.users USING btree (identity_url);
2702 -- Name: index_users_on_modified_at; Type: INDEX; Schema: public; Owner: -
2705 CREATE INDEX index_users_on_modified_at ON public.users USING btree (modified_at);
2709 -- Name: index_users_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2712 CREATE INDEX index_users_on_modified_at_uuid ON public.users USING btree (modified_at DESC, uuid);
2716 -- Name: index_users_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2719 CREATE INDEX index_users_on_owner_uuid ON public.users USING btree (owner_uuid);
2723 -- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: -
2726 CREATE UNIQUE INDEX index_users_on_username ON public.users USING btree (username);
2730 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -
2733 CREATE UNIQUE INDEX index_users_on_uuid ON public.users USING btree (uuid);
2737 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -
2740 CREATE INDEX index_virtual_machines_on_hostname ON public.virtual_machines USING btree (hostname);
2744 -- Name: index_virtual_machines_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2747 CREATE INDEX index_virtual_machines_on_modified_at_uuid ON public.virtual_machines USING btree (modified_at DESC, uuid);
2751 -- Name: index_virtual_machines_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2754 CREATE INDEX index_virtual_machines_on_owner_uuid ON public.virtual_machines USING btree (owner_uuid);
2758 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -
2761 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON public.virtual_machines USING btree (uuid);
2765 -- Name: index_workflows_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2768 CREATE INDEX index_workflows_on_modified_at_uuid ON public.workflows USING btree (modified_at DESC, uuid);
2772 -- Name: index_workflows_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2775 CREATE INDEX index_workflows_on_owner_uuid ON public.workflows USING btree (owner_uuid);
2779 -- Name: index_workflows_on_uuid; Type: INDEX; Schema: public; Owner: -
2782 CREATE UNIQUE INDEX index_workflows_on_uuid ON public.workflows USING btree (uuid);
2786 -- Name: job_tasks_search_index; Type: INDEX; Schema: public; Owner: -
2789 CREATE INDEX job_tasks_search_index ON public.job_tasks USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, job_uuid, created_by_job_task_uuid);
2793 -- Name: jobs_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2796 CREATE INDEX jobs_full_text_search_idx ON public.jobs USING gin (to_tsvector('english'::regconfig, substr((((((((((((((((((((((((((((((((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(submit_id, ''::character varying))::text) || ' '::text) || (COALESCE(script, ''::character varying))::text) || ' '::text) || (COALESCE(script_version, ''::character varying))::text) || ' '::text) || COALESCE(script_parameters, ''::text)) || ' '::text) || (COALESCE(cancelled_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(cancelled_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(output, ''::character varying))::text) || ' '::text) || (COALESCE(is_locked_by_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(log, ''::character varying))::text) || ' '::text) || COALESCE(tasks_summary, ''::text)) || ' '::text) || COALESCE(runtime_constraints, ''::text)) || ' '::text) || (COALESCE(repository, ''::character varying))::text) || ' '::text) || (COALESCE(supplied_script_version, ''::character varying))::text) || ' '::text) || (COALESCE(docker_image_locator, ''::character varying))::text) || ' '::text) || (COALESCE(description, ''::character varying))::text) || ' '::text) || (COALESCE(state, ''::character varying))::text) || ' '::text) || (COALESCE(arvados_sdk_version, ''::character varying))::text) || ' '::text) || COALESCE(components, ''::text)), 0, 1000000)));
2800 -- Name: jobs_search_index; Type: INDEX; Schema: public; Owner: -
2803 CREATE INDEX jobs_search_index ON public.jobs USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, submit_id, script, script_version, cancelled_by_client_uuid, cancelled_by_user_uuid, output, is_locked_by_uuid, log, repository, supplied_script_version, docker_image_locator, state, arvados_sdk_version);
2807 -- Name: jobs_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
2810 CREATE INDEX jobs_trgm_text_search_idx ON public.jobs USING gin (((((((((((((((((((((((((((((((((((((((((((((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))) public.gin_trgm_ops);
2814 -- Name: keep_disks_search_index; Type: INDEX; Schema: public; Owner: -
2817 CREATE INDEX keep_disks_search_index ON public.keep_disks USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, ping_secret, node_uuid, filesystem_uuid, keep_service_uuid);
2821 -- Name: keep_services_search_index; Type: INDEX; Schema: public; Owner: -
2824 CREATE INDEX keep_services_search_index ON public.keep_services USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, service_host, service_type);
2828 -- Name: links_index_on_properties; Type: INDEX; Schema: public; Owner: -
2831 CREATE INDEX links_index_on_properties ON public.links USING gin (properties);
2835 -- Name: links_search_index; Type: INDEX; Schema: public; Owner: -
2838 CREATE INDEX links_search_index ON public.links USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, tail_uuid, link_class, name, head_uuid);
2842 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -
2845 CREATE UNIQUE INDEX links_tail_name_unique_if_link_class_name ON public.links USING btree (tail_uuid, name) WHERE ((link_class)::text = 'name'::text);
2849 -- Name: logs_search_index; Type: INDEX; Schema: public; Owner: -
2852 CREATE INDEX logs_search_index ON public.logs USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, object_uuid, event_type, object_owner_uuid);
2856 -- Name: nodes_index_on_info; Type: INDEX; Schema: public; Owner: -
2859 CREATE INDEX nodes_index_on_info ON public.nodes USING gin (info);
2863 -- Name: nodes_index_on_properties; Type: INDEX; Schema: public; Owner: -
2866 CREATE INDEX nodes_index_on_properties ON public.nodes USING gin (properties);
2870 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -
2873 CREATE INDEX nodes_search_index ON public.nodes USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname, domain, ip_address, job_uuid);
2877 -- Name: permission_target; Type: INDEX; Schema: public; Owner: -
2880 CREATE INDEX permission_target ON public.materialized_permissions USING btree (target_uuid);
2884 -- Name: permission_user_target; Type: INDEX; Schema: public; Owner: -
2887 CREATE UNIQUE INDEX permission_user_target ON public.materialized_permissions USING btree (user_uuid, target_uuid);
2891 -- Name: pipeline_instances_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2894 CREATE INDEX pipeline_instances_full_text_search_idx ON public.pipeline_instances USING gin (to_tsvector('english'::regconfig, substr((((((((((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(pipeline_template_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || COALESCE(components, ''::text)) || ' '::text) || COALESCE(properties, ''::text)) || ' '::text) || (COALESCE(state, ''::character varying))::text) || ' '::text) || COALESCE(components_summary, ''::text)) || ' '::text) || (COALESCE(description, ''::character varying))::text), 0, 1000000)));
2898 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -
2901 CREATE INDEX pipeline_instances_search_index ON public.pipeline_instances USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, pipeline_template_uuid, name, state);
2905 -- Name: pipeline_instances_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
2908 CREATE INDEX pipeline_instances_trgm_text_search_idx ON public.pipeline_instances USING gin (((((((((((((((((((((((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)) public.gin_trgm_ops);
2912 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -
2915 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON public.pipeline_templates USING btree (owner_uuid, name);
2919 -- Name: pipeline_templates_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2922 CREATE INDEX pipeline_templates_full_text_search_idx ON public.pipeline_templates USING gin (to_tsvector('english'::regconfig, substr((((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || COALESCE(components, ''::text)) || ' '::text) || (COALESCE(description, ''::character varying))::text), 0, 1000000)));
2926 -- Name: pipeline_templates_search_index; Type: INDEX; Schema: public; Owner: -
2929 CREATE INDEX pipeline_templates_search_index ON public.pipeline_templates USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2933 -- Name: pipeline_templates_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
2936 CREATE INDEX pipeline_templates_trgm_text_search_idx ON public.pipeline_templates USING gin (((((((((((((((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)) public.gin_trgm_ops);
2940 -- Name: repositories_search_index; Type: INDEX; Schema: public; Owner: -
2943 CREATE INDEX repositories_search_index ON public.repositories USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2947 -- Name: specimens_search_index; Type: INDEX; Schema: public; Owner: -
2950 CREATE INDEX specimens_search_index ON public.specimens USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, material);
2954 -- Name: traits_search_index; Type: INDEX; Schema: public; Owner: -
2957 CREATE INDEX traits_search_index ON public.traits USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2961 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
2964 CREATE UNIQUE INDEX unique_schema_migrations ON public.schema_migrations USING btree (version);
2968 -- Name: users_search_index; Type: INDEX; Schema: public; Owner: -
2971 CREATE INDEX users_search_index ON public.users USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, email, first_name, last_name, identity_url, default_owner_uuid, username, redirect_to_user_uuid);
2975 -- Name: virtual_machines_search_index; Type: INDEX; Schema: public; Owner: -
2978 CREATE INDEX virtual_machines_search_index ON public.virtual_machines USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname);
2982 -- Name: workflows_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
2985 CREATE INDEX workflows_full_text_search_idx ON public.workflows USING gin (to_tsvector('english'::regconfig, substr((((((((((((COALESCE(uuid, ''::character varying))::text || ' '::text) || (COALESCE(owner_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_client_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(modified_by_user_uuid, ''::character varying))::text) || ' '::text) || (COALESCE(name, ''::character varying))::text) || ' '::text) || COALESCE(description, ''::text)), 0, 1000000)));
2989 -- Name: workflows_search_idx; Type: INDEX; Schema: public; Owner: -
2992 CREATE INDEX workflows_search_idx ON public.workflows USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
2996 -- Name: workflows_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
2999 CREATE INDEX workflows_trgm_text_search_idx ON public.workflows USING gin (((((((((((((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))) public.gin_trgm_ops);
3003 -- PostgreSQL database dump complete
3006 SET search_path TO "$user", public;
3008 INSERT INTO "schema_migrations" (version) VALUES