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: pg_trgm; Type: EXTENSION; Schema: -; Owner: -
17 CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;
21 -- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner: -
24 -- COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams';
28 -- Name: compute_permission_subgraph(character varying, character varying, integer, character varying); Type: FUNCTION; Schema: public; Owner: -
31 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)
35 /* The purpose of this function is to compute the permissions for a
36 subgraph of the database, starting from a given edge. The newly
37 computed permissions are used to add and remove rows from the main
40 perm_origin_uuid: The object that 'gets' the permission.
42 starting_uuid: The starting object the permission applies to.
44 starting_perm: The permission that perm_origin_uuid 'has' on
45 starting_uuid One of 1, 2, 3 for can_read,
46 can_write, can_manage respectively, or 0 to revoke
49 perm_edge_id: Identifies the permission edge that is being updated.
50 Changes of ownership, this is starting_uuid.
51 For links, this is the uuid of the link object.
52 This is used to override the edge value in the database
53 with starting_perm. This is necessary when revoking
54 permissions because the update happens before edge is
58 /* Starting from starting_uuid, determine the set of objects that
59 could be affected by this permission change.
61 Note: We don't traverse users unless it is an "identity"
62 permission (permission origin is self).
64 perm_from_start(perm_origin_uuid, target_uuid, val, traverse_owned) as (
67 traverse_graph(origin_uuid, target_uuid, val, traverse_owned, starting_set) as (
69 values (perm_origin_uuid, starting_uuid, starting_perm,
70 should_traverse_owned(starting_uuid, starting_perm),
71 (perm_origin_uuid = starting_uuid or starting_uuid not like '_____-tpzed-_______________'))
74 (select traverse_graph.origin_uuid,
77 case (edges.edge_id = perm_edge_id)
78 when true then starting_perm
83 should_traverse_owned(edges.head_uuid, edges.val),
85 from permission_graph_edges as edges, traverse_graph
86 where traverse_graph.target_uuid = edges.tail_uuid
87 and (edges.tail_uuid like '_____-j7d0g-_______________' or
88 traverse_graph.starting_set)))
89 select traverse_graph.origin_uuid, target_uuid, max(val) as val, bool_or(traverse_owned) as traverse_owned from traverse_graph
90 group by (traverse_graph.origin_uuid, target_uuid)
93 /* Find other inbound edges that grant permissions to 'targets' in
94 perm_from_start, and compute permissions that originate from
97 This is necessary for two reasons:
99 1) Other users may have access to a subset of the objects
100 through other permission links than the one we started from.
101 If we don't recompute them, their permission will get dropped.
103 2) There may be more than one path through which a user gets
104 permission to an object. For example, a user owns a project
105 and also shares it can_read with a group the user belongs
106 to. adding the can_read link must not overwrite the existing
107 can_manage permission granted by ownership.
109 additional_perms(perm_origin_uuid, target_uuid, val, traverse_owned) as (
112 traverse_graph(origin_uuid, target_uuid, val, traverse_owned, starting_set) as (
114 select edges.tail_uuid as origin_uuid, edges.head_uuid as target_uuid, edges.val,
115 should_traverse_owned(edges.head_uuid, edges.val),
116 edges.head_uuid like '_____-j7d0g-_______________'
117 from permission_graph_edges as edges
118 where edges.edge_id != perm_edge_id and
119 edges.tail_uuid not in (select target_uuid from perm_from_start where target_uuid like '_____-j7d0g-_______________') and
120 edges.head_uuid in (select target_uuid from perm_from_start)
123 (select traverse_graph.origin_uuid,
126 case (edges.edge_id = perm_edge_id)
127 when true then starting_perm
132 should_traverse_owned(edges.head_uuid, edges.val),
134 from permission_graph_edges as edges, traverse_graph
135 where traverse_graph.target_uuid = edges.tail_uuid
136 and (edges.tail_uuid like '_____-j7d0g-_______________' or
137 traverse_graph.starting_set)))
138 select traverse_graph.origin_uuid, target_uuid, max(val) as val, bool_or(traverse_owned) as traverse_owned from traverse_graph
139 group by (traverse_graph.origin_uuid, target_uuid)
142 /* Combine the permissions computed in the first two phases. */
143 all_perms(perm_origin_uuid, target_uuid, val, traverse_owned) as (
144 select * from perm_from_start
146 select * from additional_perms
149 /* The actual query that produces rows to be added or removed
150 from the materialized_permissions table. This is the clever
155 * For every group, the materialized_permissions lists all users
156 that can access to that group.
158 * The all_perms subquery has computed permissions on on a set of
159 objects for all inbound "origins", which are users or groups.
161 * Permissions through groups are transitive.
165 1) The materialized_permissions table declares that user X has permission N on group Y
166 2) The all_perms result has determined group Y has permission M on object Z
167 3) Therefore, user X has permission min(N, M) on object Z
169 This allows us to efficiently determine the set of users that
170 have permissions on the subset of objects, without having to
171 follow the chain of permission back up to find those users.
173 In addition, because users always have permission on themselves, this
174 query also makes sure those permission rows are always
177 select v.user_uuid, v.target_uuid, max(v.perm_level), bool_or(v.traverse_owned) from
180 least(u.val, m.perm_level) as perm_level,
182 from all_perms as u, materialized_permissions as m
183 where u.perm_origin_uuid = m.target_uuid AND m.traverse_owned
184 AND (m.user_uuid = m.target_uuid or m.target_uuid not like '_____-tpzed-_______________')
186 select target_uuid as user_uuid, target_uuid, 3, true
188 where all_perms.target_uuid like '_____-tpzed-_______________') as v
189 group by v.user_uuid, v.target_uuid
194 -- Name: container_priority(character varying, bigint, character varying); Type: FUNCTION; Schema: public; Owner: -
197 CREATE FUNCTION public.container_priority(for_container_uuid character varying, inherited bigint, inherited_from character varying) RETURNS bigint
200 /* Determine the priority of an individual container.
201 The "inherited" priority comes from the path we followed from the root, the parent container
202 priority hasn't been updated in the table yet but we need to behave it like it has been.
204 select coalesce(max(case when containers.uuid = inherited_from then inherited
205 when containers.priority is not NULL then containers.priority
206 else container_requests.priority * 1125899906842624::bigint - (extract(epoch from container_requests.created_at)*1000)::bigint
208 container_requests left outer join containers on container_requests.requesting_container_uuid = containers.uuid
209 where container_requests.container_uuid = for_container_uuid and
210 container_requests.state = 'Committed' and
211 container_requests.priority > 0 and
212 container_requests.owner_uuid not in (select group_uuid from trashed_groups);
217 -- Name: container_tree(character varying); Type: FUNCTION; Schema: public; Owner: -
220 CREATE FUNCTION public.container_tree(for_container_uuid character varying) RETURNS TABLE(pri_container_uuid character varying)
223 /* A lighter weight version of the update_priorities query that only returns the containers in a tree,
224 used by SELECT FOR UPDATE.
226 with recursive tab(upd_container_uuid) as (
227 select for_container_uuid
229 select containers.uuid
230 from (tab join container_requests on tab.upd_container_uuid = container_requests.requesting_container_uuid) as child_requests
231 join containers on child_requests.container_uuid = containers.uuid
232 where containers.state in ('Queued', 'Locked', 'Running')
234 select upd_container_uuid from tab;
239 -- Name: container_tree_priorities(character varying); Type: FUNCTION; Schema: public; Owner: -
242 CREATE FUNCTION public.container_tree_priorities(for_container_uuid character varying) RETURNS TABLE(pri_container_uuid character varying, upd_priority bigint)
245 /* Calculate the priorities of all containers starting from for_container_uuid.
246 This traverses the process tree downward and calls container_priority for each container
247 and returns a table of container uuids and their new priorities.
249 with recursive tab(upd_container_uuid, upd_priority) as (
250 select for_container_uuid, container_priority(for_container_uuid, 0, '')
252 select containers.uuid, container_priority(containers.uuid, child_requests.upd_priority, child_requests.upd_container_uuid)
253 from (tab join container_requests on tab.upd_container_uuid = container_requests.requesting_container_uuid) as child_requests
254 join containers on child_requests.container_uuid = containers.uuid
255 where containers.state in ('Queued', 'Locked', 'Running')
257 select upd_container_uuid, upd_priority from tab;
262 -- Name: jsonb_exists_all_inline_op(jsonb, text[]); Type: FUNCTION; Schema: public; Owner: -
265 CREATE FUNCTION public.jsonb_exists_all_inline_op(jsonb, text[]) RETURNS boolean
266 LANGUAGE sql IMMUTABLE
267 AS $_$SELECT $1 ?& $2$_$;
271 -- Name: jsonb_exists_inline_op(jsonb, text); Type: FUNCTION; Schema: public; Owner: -
274 CREATE FUNCTION public.jsonb_exists_inline_op(jsonb, text) RETURNS boolean
275 LANGUAGE sql IMMUTABLE
276 AS $_$SELECT $1 ? $2$_$;
280 -- Name: project_subtree_with_is_frozen(character varying, boolean); Type: FUNCTION; Schema: public; Owner: -
283 CREATE FUNCTION public.project_subtree_with_is_frozen(starting_uuid character varying, starting_is_frozen boolean) RETURNS TABLE(uuid character varying, is_frozen boolean)
287 project_subtree(uuid, is_frozen) as (
288 values (starting_uuid, starting_is_frozen)
290 select groups.uuid, project_subtree.is_frozen or groups.frozen_by_uuid is not null
291 from groups join project_subtree on (groups.owner_uuid = project_subtree.uuid)
293 select uuid, is_frozen from project_subtree;
298 -- Name: project_subtree_with_trash_at(character varying, timestamp without time zone); Type: FUNCTION; Schema: public; Owner: -
301 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)
304 /* Starting from a project, recursively traverse all the projects
305 underneath it and return a set of project uuids and trash_at times
306 (may be null). The initial trash_at can be a timestamp or null.
307 The trash_at time propagates downward to groups it owns, i.e. when a
308 group is trashed, everything underneath it in the ownership
309 hierarchy is also considered trashed. However, this is fact is
310 recorded in the trashed_groups table, not by updating trash_at field
314 project_subtree(uuid, trash_at) as (
315 values (starting_uuid, starting_trash_at)
317 select groups.uuid, LEAST(project_subtree.trash_at, groups.trash_at)
318 from groups join project_subtree on (groups.owner_uuid = project_subtree.uuid)
320 select uuid, trash_at from project_subtree;
325 -- Name: should_traverse_owned(character varying, integer); Type: FUNCTION; Schema: public; Owner: -
328 CREATE FUNCTION public.should_traverse_owned(starting_uuid character varying, starting_perm integer) RETURNS boolean
329 LANGUAGE sql IMMUTABLE
331 /* Helper function. Determines if permission on an object implies
332 transitive permission to things the object owns. This is always
333 true for groups, but only true for users when the permission level
336 select starting_uuid like '_____-j7d0g-_______________' or
337 (starting_uuid like '_____-tpzed-_______________' and starting_perm >= 3);
341 SET default_tablespace = '';
343 SET default_with_oids = false;
346 -- Name: api_client_authorizations; Type: TABLE; Schema: public; Owner: -
349 CREATE TABLE public.api_client_authorizations (
351 api_token character varying(255) NOT NULL,
352 api_client_id bigint DEFAULT 0 NOT NULL,
353 user_id bigint NOT NULL,
354 created_by_ip_address character varying(255),
355 last_used_by_ip_address character varying(255),
356 last_used_at timestamp without time zone,
357 expires_at timestamp without time zone,
358 created_at timestamp without time zone NOT NULL,
359 updated_at timestamp without time zone NOT NULL,
360 default_owner_uuid character varying(255),
361 scopes text DEFAULT '["all"]'::text,
362 uuid character varying(255) NOT NULL
367 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
370 CREATE SEQUENCE public.api_client_authorizations_id_seq
379 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
382 ALTER SEQUENCE public.api_client_authorizations_id_seq OWNED BY public.api_client_authorizations.id;
386 -- Name: api_clients; Type: TABLE; Schema: public; Owner: -
389 CREATE TABLE public.api_clients (
391 uuid character varying(255),
392 owner_uuid character varying(255),
393 modified_by_client_uuid character varying(255),
394 modified_by_user_uuid character varying(255),
395 modified_at timestamp without time zone,
396 name character varying(255),
397 url_prefix character varying(255),
398 created_at timestamp without time zone NOT NULL,
399 updated_at timestamp without time zone NOT NULL,
400 is_trusted boolean DEFAULT false
405 -- Name: api_clients_id_seq; Type: SEQUENCE; Schema: public; Owner: -
408 CREATE SEQUENCE public.api_clients_id_seq
417 -- Name: api_clients_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
420 ALTER SEQUENCE public.api_clients_id_seq OWNED BY public.api_clients.id;
424 -- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: -
427 CREATE TABLE public.ar_internal_metadata (
428 key character varying NOT NULL,
429 value character varying,
430 created_at timestamp without time zone NOT NULL,
431 updated_at timestamp without time zone NOT NULL
436 -- Name: authorized_keys; Type: TABLE; Schema: public; Owner: -
439 CREATE TABLE public.authorized_keys (
441 uuid character varying(255) NOT NULL,
442 owner_uuid character varying(255) NOT NULL,
443 modified_by_client_uuid character varying(255),
444 modified_by_user_uuid character varying(255),
445 modified_at timestamp without time zone,
446 name character varying(255),
447 key_type character varying(255),
448 authorized_user_uuid character varying(255),
450 expires_at timestamp without time zone,
451 created_at timestamp without time zone NOT NULL,
452 updated_at timestamp without time zone NOT NULL
457 -- Name: authorized_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: -
460 CREATE SEQUENCE public.authorized_keys_id_seq
469 -- Name: authorized_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
472 ALTER SEQUENCE public.authorized_keys_id_seq OWNED BY public.authorized_keys.id;
476 -- Name: collections; Type: TABLE; Schema: public; Owner: -
479 CREATE TABLE public.collections (
481 owner_uuid character varying(255),
482 created_at timestamp without time zone NOT NULL,
483 modified_by_client_uuid character varying(255),
484 modified_by_user_uuid character varying(255),
485 modified_at timestamp without time zone,
486 portable_data_hash character varying(255),
487 replication_desired integer,
488 replication_confirmed_at timestamp without time zone,
489 replication_confirmed integer,
490 updated_at timestamp without time zone NOT NULL,
491 uuid character varying(255),
493 name character varying(255),
494 description character varying(524288),
496 delete_at timestamp without time zone,
498 trash_at timestamp without time zone,
499 is_trashed boolean DEFAULT false NOT NULL,
500 storage_classes_desired jsonb DEFAULT '["default"]'::jsonb,
501 storage_classes_confirmed jsonb DEFAULT '[]'::jsonb,
502 storage_classes_confirmed_at timestamp without time zone,
503 current_version_uuid character varying,
504 version integer DEFAULT 1 NOT NULL,
505 preserve_version boolean DEFAULT false,
506 file_count integer DEFAULT 0 NOT NULL,
507 file_size_total bigint DEFAULT 0 NOT NULL
512 -- Name: collections_id_seq; Type: SEQUENCE; Schema: public; Owner: -
515 CREATE SEQUENCE public.collections_id_seq
524 -- Name: collections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
527 ALTER SEQUENCE public.collections_id_seq OWNED BY public.collections.id;
531 -- Name: container_requests; Type: TABLE; Schema: public; Owner: -
534 CREATE TABLE public.container_requests (
536 uuid character varying(255),
537 owner_uuid character varying(255),
538 created_at timestamp without time zone NOT NULL,
539 modified_at timestamp without time zone,
540 modified_by_client_uuid character varying(255),
541 modified_by_user_uuid character varying(255),
542 name character varying(255),
545 state character varying(255),
546 requesting_container_uuid character varying(255),
547 container_uuid character varying(255),
548 container_count_max integer,
550 runtime_constraints text,
551 container_image character varying(255),
553 cwd character varying(255),
555 output_path character varying(255),
557 expires_at timestamp without time zone,
559 updated_at timestamp without time zone NOT NULL,
560 container_count integer DEFAULT 0,
561 use_existing boolean DEFAULT true,
562 scheduling_parameters text,
563 output_uuid character varying(255),
564 log_uuid character varying(255),
565 output_name character varying(255) DEFAULT NULL::character varying,
566 output_ttl integer DEFAULT 0 NOT NULL,
567 secret_mounts jsonb DEFAULT '{}'::jsonb,
569 output_storage_classes jsonb DEFAULT '["default"]'::jsonb,
570 output_properties jsonb DEFAULT '{}'::jsonb,
571 cumulative_cost double precision DEFAULT 0.0 NOT NULL,
572 output_glob text DEFAULT '[]'::text
577 -- Name: container_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
580 CREATE SEQUENCE public.container_requests_id_seq
589 -- Name: container_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
592 ALTER SEQUENCE public.container_requests_id_seq OWNED BY public.container_requests.id;
596 -- Name: containers; Type: TABLE; Schema: public; Owner: -
599 CREATE TABLE public.containers (
601 uuid character varying(255),
602 owner_uuid character varying(255),
603 created_at timestamp without time zone NOT NULL,
604 modified_at timestamp without time zone,
605 modified_by_client_uuid character varying(255),
606 modified_by_user_uuid character varying(255),
607 state character varying(255),
608 started_at timestamp without time zone,
609 finished_at timestamp without time zone,
610 log character varying(255),
612 cwd character varying(255),
614 output_path character varying(255),
616 runtime_constraints text,
617 output character varying(255),
618 container_image character varying(255),
619 progress double precision,
621 updated_at timestamp without time zone NOT NULL,
623 auth_uuid character varying(255),
624 locked_by_uuid character varying(255),
625 scheduling_parameters text,
626 secret_mounts jsonb DEFAULT '{}'::jsonb,
627 secret_mounts_md5 character varying DEFAULT '99914b932bd37a50b983c5e7c90ae93b'::character varying,
628 runtime_status jsonb DEFAULT '{}'::jsonb,
629 runtime_user_uuid text,
630 runtime_auth_scopes jsonb,
632 lock_count integer DEFAULT 0 NOT NULL,
633 gateway_address character varying,
634 interactive_session_started boolean DEFAULT false NOT NULL,
635 output_storage_classes jsonb DEFAULT '["default"]'::jsonb,
636 output_properties jsonb DEFAULT '{}'::jsonb,
637 cost double precision DEFAULT 0.0 NOT NULL,
638 subrequests_cost double precision DEFAULT 0.0 NOT NULL,
639 output_glob text DEFAULT '[]'::text
644 -- Name: containers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
647 CREATE SEQUENCE public.containers_id_seq
656 -- Name: containers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
659 ALTER SEQUENCE public.containers_id_seq OWNED BY public.containers.id;
663 -- Name: frozen_groups; Type: TABLE; Schema: public; Owner: -
666 CREATE TABLE public.frozen_groups (
667 uuid character varying
672 -- Name: groups; Type: TABLE; Schema: public; Owner: -
675 CREATE TABLE public.groups (
677 uuid character varying(255),
678 owner_uuid character varying(255),
679 created_at timestamp without time zone NOT NULL,
680 modified_by_client_uuid character varying(255),
681 modified_by_user_uuid character varying(255),
682 modified_at timestamp without time zone,
683 name character varying(255) NOT NULL,
684 description character varying(524288),
685 updated_at timestamp without time zone NOT NULL,
686 group_class character varying(255),
687 trash_at timestamp without time zone,
688 is_trashed boolean DEFAULT false NOT NULL,
689 delete_at timestamp without time zone,
690 properties jsonb DEFAULT '{}'::jsonb,
691 frozen_by_uuid character varying
696 -- Name: groups_id_seq; Type: SEQUENCE; Schema: public; Owner: -
699 CREATE SEQUENCE public.groups_id_seq
708 -- Name: groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
711 ALTER SEQUENCE public.groups_id_seq OWNED BY public.groups.id;
715 -- Name: humans; Type: TABLE; Schema: public; Owner: -
718 CREATE TABLE public.humans (
720 uuid character varying(255) NOT NULL,
721 owner_uuid character varying(255) NOT NULL,
722 modified_by_client_uuid character varying(255),
723 modified_by_user_uuid character varying(255),
724 modified_at timestamp without time zone,
726 created_at timestamp without time zone NOT NULL,
727 updated_at timestamp without time zone NOT NULL
732 -- Name: humans_id_seq; Type: SEQUENCE; Schema: public; Owner: -
735 CREATE SEQUENCE public.humans_id_seq
744 -- Name: humans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
747 ALTER SEQUENCE public.humans_id_seq OWNED BY public.humans.id;
751 -- Name: job_tasks; Type: TABLE; Schema: public; Owner: -
754 CREATE TABLE public.job_tasks (
756 uuid character varying(255),
757 owner_uuid character varying(255),
758 modified_by_client_uuid character varying(255),
759 modified_by_user_uuid character varying(255),
760 modified_at timestamp without time zone,
761 job_uuid character varying(255),
765 progress double precision,
767 created_at timestamp without time zone NOT NULL,
768 updated_at timestamp without time zone NOT NULL,
769 created_by_job_task_uuid character varying(255),
771 started_at timestamp without time zone,
772 finished_at timestamp without time zone
777 -- Name: job_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
780 CREATE SEQUENCE public.job_tasks_id_seq
789 -- Name: job_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
792 ALTER SEQUENCE public.job_tasks_id_seq OWNED BY public.job_tasks.id;
796 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE; Schema: public; Owner: -
799 CREATE SEQUENCE public.job_tasks_qsequence_seq
808 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
811 ALTER SEQUENCE public.job_tasks_qsequence_seq OWNED BY public.job_tasks.qsequence;
815 -- Name: jobs; Type: TABLE; Schema: public; Owner: -
818 CREATE TABLE public.jobs (
820 uuid character varying(255),
821 owner_uuid character varying(255),
822 modified_by_client_uuid character varying(255),
823 modified_by_user_uuid character varying(255),
824 modified_at timestamp without time zone,
825 submit_id character varying(255),
826 script character varying(255),
827 script_version character varying(255),
828 script_parameters text,
829 cancelled_by_client_uuid character varying(255),
830 cancelled_by_user_uuid character varying(255),
831 cancelled_at timestamp without time zone,
832 started_at timestamp without time zone,
833 finished_at timestamp without time zone,
836 output character varying(255),
837 created_at timestamp without time zone NOT NULL,
838 updated_at timestamp without time zone NOT NULL,
839 is_locked_by_uuid character varying(255),
840 log character varying(255),
842 runtime_constraints text,
843 nondeterministic boolean,
844 repository character varying(255),
845 supplied_script_version character varying(255),
846 docker_image_locator character varying(255),
847 priority integer DEFAULT 0 NOT NULL,
848 description character varying(524288),
849 state character varying(255),
850 arvados_sdk_version character varying(255),
852 script_parameters_digest character varying(255)
857 -- Name: jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
860 CREATE SEQUENCE public.jobs_id_seq
869 -- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
872 ALTER SEQUENCE public.jobs_id_seq OWNED BY public.jobs.id;
876 -- Name: keep_disks; Type: TABLE; Schema: public; Owner: -
879 CREATE TABLE public.keep_disks (
881 uuid character varying(255) NOT NULL,
882 owner_uuid character varying(255) NOT NULL,
883 modified_by_client_uuid character varying(255),
884 modified_by_user_uuid character varying(255),
885 modified_at timestamp without time zone,
886 ping_secret character varying(255) NOT NULL,
887 node_uuid character varying(255),
888 filesystem_uuid character varying(255),
891 is_readable boolean DEFAULT true NOT NULL,
892 is_writable boolean DEFAULT true NOT NULL,
893 last_read_at timestamp without time zone,
894 last_write_at timestamp without time zone,
895 last_ping_at timestamp without time zone,
896 created_at timestamp without time zone NOT NULL,
897 updated_at timestamp without time zone NOT NULL,
898 keep_service_uuid character varying(255)
903 -- Name: keep_disks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
906 CREATE SEQUENCE public.keep_disks_id_seq
915 -- Name: keep_disks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
918 ALTER SEQUENCE public.keep_disks_id_seq OWNED BY public.keep_disks.id;
922 -- Name: keep_services; Type: TABLE; Schema: public; Owner: -
925 CREATE TABLE public.keep_services (
927 uuid character varying(255) NOT NULL,
928 owner_uuid character varying(255) NOT NULL,
929 modified_by_client_uuid character varying(255),
930 modified_by_user_uuid character varying(255),
931 modified_at timestamp without time zone,
932 service_host character varying(255),
933 service_port integer,
934 service_ssl_flag boolean,
935 service_type character varying(255),
936 created_at timestamp without time zone NOT NULL,
937 updated_at timestamp without time zone NOT NULL,
938 read_only boolean DEFAULT false NOT NULL
943 -- Name: keep_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
946 CREATE SEQUENCE public.keep_services_id_seq
955 -- Name: keep_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
958 ALTER SEQUENCE public.keep_services_id_seq OWNED BY public.keep_services.id;
962 -- Name: links; Type: TABLE; Schema: public; Owner: -
965 CREATE TABLE public.links (
967 uuid character varying(255),
968 owner_uuid character varying(255),
969 created_at timestamp without time zone NOT NULL,
970 modified_by_client_uuid character varying(255),
971 modified_by_user_uuid character varying(255),
972 modified_at timestamp without time zone,
973 tail_uuid character varying(255),
974 link_class character varying(255),
975 name character varying(255),
976 head_uuid character varying(255),
978 updated_at timestamp without time zone NOT NULL
983 -- Name: links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
986 CREATE SEQUENCE public.links_id_seq
995 -- Name: links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
998 ALTER SEQUENCE public.links_id_seq OWNED BY public.links.id;
1002 -- Name: logs; Type: TABLE; Schema: public; Owner: -
1005 CREATE TABLE public.logs (
1007 uuid character varying(255),
1008 owner_uuid character varying(255),
1009 modified_by_client_uuid character varying(255),
1010 modified_by_user_uuid character varying(255),
1011 object_uuid character varying(255),
1012 event_at timestamp without time zone,
1013 event_type character varying(255),
1016 created_at timestamp without time zone NOT NULL,
1017 updated_at timestamp without time zone NOT NULL,
1018 modified_at timestamp without time zone,
1019 object_owner_uuid character varying(255)
1024 -- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1027 CREATE SEQUENCE public.logs_id_seq
1036 -- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1039 ALTER SEQUENCE public.logs_id_seq OWNED BY public.logs.id;
1043 -- Name: materialized_permissions; Type: TABLE; Schema: public; Owner: -
1046 CREATE TABLE public.materialized_permissions (
1047 user_uuid character varying,
1048 target_uuid character varying,
1050 traverse_owned boolean
1055 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
1058 CREATE TABLE public.nodes (
1060 uuid character varying(255),
1061 owner_uuid character varying(255),
1062 created_at timestamp without time zone NOT NULL,
1063 modified_by_client_uuid character varying(255),
1064 modified_by_user_uuid character varying(255),
1065 modified_at timestamp without time zone,
1066 slot_number integer,
1067 hostname character varying(255),
1068 domain character varying(255),
1069 ip_address character varying(255),
1070 first_ping_at timestamp without time zone,
1071 last_ping_at timestamp without time zone,
1073 updated_at timestamp without time zone NOT NULL,
1075 job_uuid character varying(255)
1080 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1083 CREATE SEQUENCE public.nodes_id_seq
1092 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1095 ALTER SEQUENCE public.nodes_id_seq OWNED BY public.nodes.id;
1099 -- Name: users; Type: TABLE; Schema: public; Owner: -
1102 CREATE TABLE public.users (
1104 uuid character varying(255),
1105 owner_uuid character varying(255) NOT NULL,
1106 created_at timestamp without time zone NOT NULL,
1107 modified_by_client_uuid character varying(255),
1108 modified_by_user_uuid character varying(255),
1109 modified_at timestamp without time zone,
1110 email character varying(255),
1111 first_name character varying(255),
1112 last_name character varying(255),
1113 identity_url character varying(255),
1116 updated_at timestamp without time zone NOT NULL,
1117 default_owner_uuid character varying(255),
1118 is_active boolean DEFAULT false,
1119 username character varying(255),
1120 redirect_to_user_uuid character varying
1125 -- Name: permission_graph_edges; Type: VIEW; Schema: public; Owner: -
1128 CREATE VIEW public.permission_graph_edges AS
1129 SELECT groups.owner_uuid AS tail_uuid,
1130 groups.uuid AS head_uuid,
1132 groups.uuid AS edge_id
1135 SELECT users.owner_uuid AS tail_uuid,
1136 users.uuid AS head_uuid,
1138 users.uuid AS edge_id
1141 SELECT users.uuid AS tail_uuid,
1142 users.uuid AS head_uuid,
1144 ''::character varying AS edge_id
1147 SELECT links.tail_uuid,
1150 WHEN ((links.name)::text = 'can_read'::text) THEN 1
1151 WHEN ((links.name)::text = 'can_login'::text) THEN 1
1152 WHEN ((links.name)::text = 'can_write'::text) THEN 2
1153 WHEN ((links.name)::text = 'can_manage'::text) THEN 3
1156 links.uuid AS edge_id
1158 WHERE ((links.link_class)::text = 'permission'::text);
1162 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -
1165 CREATE TABLE public.pipeline_instances (
1167 uuid character varying(255),
1168 owner_uuid character varying(255),
1169 created_at timestamp without time zone NOT NULL,
1170 modified_by_client_uuid character varying(255),
1171 modified_by_user_uuid character varying(255),
1172 modified_at timestamp without time zone,
1173 pipeline_template_uuid character varying(255),
1174 name character varying(255),
1176 updated_at timestamp without time zone NOT NULL,
1178 state character varying(255),
1179 components_summary text,
1180 started_at timestamp without time zone,
1181 finished_at timestamp without time zone,
1182 description character varying(524288)
1187 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1190 CREATE SEQUENCE public.pipeline_instances_id_seq
1199 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1202 ALTER SEQUENCE public.pipeline_instances_id_seq OWNED BY public.pipeline_instances.id;
1206 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -
1209 CREATE TABLE public.pipeline_templates (
1211 uuid character varying(255),
1212 owner_uuid character varying(255),
1213 created_at timestamp without time zone NOT NULL,
1214 modified_by_client_uuid character varying(255),
1215 modified_by_user_uuid character varying(255),
1216 modified_at timestamp without time zone,
1217 name character varying(255),
1219 updated_at timestamp without time zone NOT NULL,
1220 description character varying(524288)
1225 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1228 CREATE SEQUENCE public.pipeline_templates_id_seq
1237 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1240 ALTER SEQUENCE public.pipeline_templates_id_seq OWNED BY public.pipeline_templates.id;
1244 -- Name: repositories; Type: TABLE; Schema: public; Owner: -
1247 CREATE TABLE public.repositories (
1249 uuid character varying(255) NOT NULL,
1250 owner_uuid character varying(255) NOT NULL,
1251 modified_by_client_uuid character varying(255),
1252 modified_by_user_uuid character varying(255),
1253 modified_at timestamp without time zone,
1254 name character varying(255),
1255 created_at timestamp without time zone NOT NULL,
1256 updated_at timestamp without time zone NOT NULL
1261 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1264 CREATE SEQUENCE public.repositories_id_seq
1273 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1276 ALTER SEQUENCE public.repositories_id_seq OWNED BY public.repositories.id;
1280 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
1283 CREATE TABLE public.schema_migrations (
1284 version character varying(255) NOT NULL
1289 -- Name: specimens; Type: TABLE; Schema: public; Owner: -
1292 CREATE TABLE public.specimens (
1294 uuid character varying(255),
1295 owner_uuid character varying(255),
1296 created_at timestamp without time zone NOT NULL,
1297 modified_by_client_uuid character varying(255),
1298 modified_by_user_uuid character varying(255),
1299 modified_at timestamp without time zone,
1300 material character varying(255),
1301 updated_at timestamp without time zone NOT NULL,
1307 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1310 CREATE SEQUENCE public.specimens_id_seq
1319 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1322 ALTER SEQUENCE public.specimens_id_seq OWNED BY public.specimens.id;
1326 -- Name: traits; Type: TABLE; Schema: public; Owner: -
1329 CREATE TABLE public.traits (
1331 uuid character varying(255) NOT NULL,
1332 owner_uuid character varying(255) NOT NULL,
1333 modified_by_client_uuid character varying(255),
1334 modified_by_user_uuid character varying(255),
1335 modified_at timestamp without time zone,
1336 name character varying(255),
1338 created_at timestamp without time zone NOT NULL,
1339 updated_at timestamp without time zone NOT NULL
1344 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1347 CREATE SEQUENCE public.traits_id_seq
1356 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1359 ALTER SEQUENCE public.traits_id_seq OWNED BY public.traits.id;
1363 -- Name: trashed_groups; Type: TABLE; Schema: public; Owner: -
1366 CREATE TABLE public.trashed_groups (
1367 group_uuid character varying,
1368 trash_at timestamp without time zone
1373 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1376 CREATE SEQUENCE public.users_id_seq
1385 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1388 ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
1392 -- Name: uuid_locks; Type: TABLE; Schema: public; Owner: -
1395 CREATE TABLE public.uuid_locks (
1396 uuid character varying NOT NULL,
1397 n integer DEFAULT 0 NOT NULL
1402 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -
1405 CREATE TABLE public.virtual_machines (
1407 uuid character varying(255) NOT NULL,
1408 owner_uuid character varying(255) NOT NULL,
1409 modified_by_client_uuid character varying(255),
1410 modified_by_user_uuid character varying(255),
1411 modified_at timestamp without time zone,
1412 hostname character varying(255),
1413 created_at timestamp without time zone NOT NULL,
1414 updated_at timestamp without time zone NOT NULL
1419 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1422 CREATE SEQUENCE public.virtual_machines_id_seq
1431 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1434 ALTER SEQUENCE public.virtual_machines_id_seq OWNED BY public.virtual_machines.id;
1438 -- Name: workflows; Type: TABLE; Schema: public; Owner: -
1441 CREATE TABLE public.workflows (
1443 uuid character varying(255),
1444 owner_uuid character varying(255),
1445 created_at timestamp without time zone NOT NULL,
1446 modified_at timestamp without time zone,
1447 modified_by_client_uuid character varying(255),
1448 modified_by_user_uuid character varying(255),
1449 name character varying(255),
1452 updated_at timestamp without time zone NOT NULL
1457 -- Name: workflows_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1460 CREATE SEQUENCE public.workflows_id_seq
1469 -- Name: workflows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1472 ALTER SEQUENCE public.workflows_id_seq OWNED BY public.workflows.id;
1476 -- Name: api_client_authorizations id; Type: DEFAULT; Schema: public; Owner: -
1479 ALTER TABLE ONLY public.api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('public.api_client_authorizations_id_seq'::regclass);
1483 -- Name: api_clients id; Type: DEFAULT; Schema: public; Owner: -
1486 ALTER TABLE ONLY public.api_clients ALTER COLUMN id SET DEFAULT nextval('public.api_clients_id_seq'::regclass);
1490 -- Name: authorized_keys id; Type: DEFAULT; Schema: public; Owner: -
1493 ALTER TABLE ONLY public.authorized_keys ALTER COLUMN id SET DEFAULT nextval('public.authorized_keys_id_seq'::regclass);
1497 -- Name: collections id; Type: DEFAULT; Schema: public; Owner: -
1500 ALTER TABLE ONLY public.collections ALTER COLUMN id SET DEFAULT nextval('public.collections_id_seq'::regclass);
1504 -- Name: container_requests id; Type: DEFAULT; Schema: public; Owner: -
1507 ALTER TABLE ONLY public.container_requests ALTER COLUMN id SET DEFAULT nextval('public.container_requests_id_seq'::regclass);
1511 -- Name: containers id; Type: DEFAULT; Schema: public; Owner: -
1514 ALTER TABLE ONLY public.containers ALTER COLUMN id SET DEFAULT nextval('public.containers_id_seq'::regclass);
1518 -- Name: groups id; Type: DEFAULT; Schema: public; Owner: -
1521 ALTER TABLE ONLY public.groups ALTER COLUMN id SET DEFAULT nextval('public.groups_id_seq'::regclass);
1525 -- Name: humans id; Type: DEFAULT; Schema: public; Owner: -
1528 ALTER TABLE ONLY public.humans ALTER COLUMN id SET DEFAULT nextval('public.humans_id_seq'::regclass);
1532 -- Name: job_tasks id; Type: DEFAULT; Schema: public; Owner: -
1535 ALTER TABLE ONLY public.job_tasks ALTER COLUMN id SET DEFAULT nextval('public.job_tasks_id_seq'::regclass);
1539 -- Name: jobs id; Type: DEFAULT; Schema: public; Owner: -
1542 ALTER TABLE ONLY public.jobs ALTER COLUMN id SET DEFAULT nextval('public.jobs_id_seq'::regclass);
1546 -- Name: keep_disks id; Type: DEFAULT; Schema: public; Owner: -
1549 ALTER TABLE ONLY public.keep_disks ALTER COLUMN id SET DEFAULT nextval('public.keep_disks_id_seq'::regclass);
1553 -- Name: keep_services id; Type: DEFAULT; Schema: public; Owner: -
1556 ALTER TABLE ONLY public.keep_services ALTER COLUMN id SET DEFAULT nextval('public.keep_services_id_seq'::regclass);
1560 -- Name: links id; Type: DEFAULT; Schema: public; Owner: -
1563 ALTER TABLE ONLY public.links ALTER COLUMN id SET DEFAULT nextval('public.links_id_seq'::regclass);
1567 -- Name: logs id; Type: DEFAULT; Schema: public; Owner: -
1570 ALTER TABLE ONLY public.logs ALTER COLUMN id SET DEFAULT nextval('public.logs_id_seq'::regclass);
1574 -- Name: nodes id; Type: DEFAULT; Schema: public; Owner: -
1577 ALTER TABLE ONLY public.nodes ALTER COLUMN id SET DEFAULT nextval('public.nodes_id_seq'::regclass);
1581 -- Name: pipeline_instances id; Type: DEFAULT; Schema: public; Owner: -
1584 ALTER TABLE ONLY public.pipeline_instances ALTER COLUMN id SET DEFAULT nextval('public.pipeline_instances_id_seq'::regclass);
1588 -- Name: pipeline_templates id; Type: DEFAULT; Schema: public; Owner: -
1591 ALTER TABLE ONLY public.pipeline_templates ALTER COLUMN id SET DEFAULT nextval('public.pipeline_templates_id_seq'::regclass);
1595 -- Name: repositories id; Type: DEFAULT; Schema: public; Owner: -
1598 ALTER TABLE ONLY public.repositories ALTER COLUMN id SET DEFAULT nextval('public.repositories_id_seq'::regclass);
1602 -- Name: specimens id; Type: DEFAULT; Schema: public; Owner: -
1605 ALTER TABLE ONLY public.specimens ALTER COLUMN id SET DEFAULT nextval('public.specimens_id_seq'::regclass);
1609 -- Name: traits id; Type: DEFAULT; Schema: public; Owner: -
1612 ALTER TABLE ONLY public.traits ALTER COLUMN id SET DEFAULT nextval('public.traits_id_seq'::regclass);
1616 -- Name: users id; Type: DEFAULT; Schema: public; Owner: -
1619 ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
1623 -- Name: virtual_machines id; Type: DEFAULT; Schema: public; Owner: -
1626 ALTER TABLE ONLY public.virtual_machines ALTER COLUMN id SET DEFAULT nextval('public.virtual_machines_id_seq'::regclass);
1630 -- Name: workflows id; Type: DEFAULT; Schema: public; Owner: -
1633 ALTER TABLE ONLY public.workflows ALTER COLUMN id SET DEFAULT nextval('public.workflows_id_seq'::regclass);
1637 -- Name: api_client_authorizations api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1640 ALTER TABLE ONLY public.api_client_authorizations
1641 ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1645 -- Name: api_clients api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1648 ALTER TABLE ONLY public.api_clients
1649 ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1653 -- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1656 ALTER TABLE ONLY public.ar_internal_metadata
1657 ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key);
1661 -- Name: authorized_keys authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1664 ALTER TABLE ONLY public.authorized_keys
1665 ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1669 -- Name: collections collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1672 ALTER TABLE ONLY public.collections
1673 ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1677 -- Name: container_requests container_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1680 ALTER TABLE ONLY public.container_requests
1681 ADD CONSTRAINT container_requests_pkey PRIMARY KEY (id);
1685 -- Name: containers containers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1688 ALTER TABLE ONLY public.containers
1689 ADD CONSTRAINT containers_pkey PRIMARY KEY (id);
1693 -- Name: groups groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1696 ALTER TABLE ONLY public.groups
1697 ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1701 -- Name: humans humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1704 ALTER TABLE ONLY public.humans
1705 ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1709 -- Name: job_tasks job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1712 ALTER TABLE ONLY public.job_tasks
1713 ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1717 -- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1720 ALTER TABLE ONLY public.jobs
1721 ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1725 -- Name: keep_disks keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1728 ALTER TABLE ONLY public.keep_disks
1729 ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1733 -- Name: keep_services keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1736 ALTER TABLE ONLY public.keep_services
1737 ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1741 -- Name: links links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1744 ALTER TABLE ONLY public.links
1745 ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1749 -- Name: logs logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1752 ALTER TABLE ONLY public.logs
1753 ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1757 -- Name: nodes nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1760 ALTER TABLE ONLY public.nodes
1761 ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1765 -- Name: pipeline_instances pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1768 ALTER TABLE ONLY public.pipeline_instances
1769 ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1773 -- Name: pipeline_templates pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1776 ALTER TABLE ONLY public.pipeline_templates
1777 ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1781 -- Name: repositories repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1784 ALTER TABLE ONLY public.repositories
1785 ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1789 -- Name: specimens specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1792 ALTER TABLE ONLY public.specimens
1793 ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1797 -- Name: traits traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1800 ALTER TABLE ONLY public.traits
1801 ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1805 -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1808 ALTER TABLE ONLY public.users
1809 ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1813 -- Name: virtual_machines virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1816 ALTER TABLE ONLY public.virtual_machines
1817 ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1821 -- Name: workflows workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1824 ALTER TABLE ONLY public.workflows
1825 ADD CONSTRAINT workflows_pkey PRIMARY KEY (id);
1829 -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -
1832 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);
1836 -- Name: api_clients_search_index; Type: INDEX; Schema: public; Owner: -
1839 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);
1843 -- Name: authorized_keys_search_index; Type: INDEX; Schema: public; Owner: -
1846 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);
1850 -- Name: collection_index_on_properties; Type: INDEX; Schema: public; Owner: -
1853 CREATE INDEX collection_index_on_properties ON public.collections USING gin (properties);
1857 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -
1860 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);
1864 -- Name: collections_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
1867 CREATE INDEX collections_trgm_text_search_idx ON public.collections USING gin (((((((((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);
1871 -- Name: container_requests_full_text_search_idx; Type: INDEX; Schema: public; Owner: -
1874 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) || ' '::text) || COALESCE((output_properties)::text, ''::text)) || ' '::text) || COALESCE(output_glob, ''::text)), 0, 8000)));
1878 -- Name: container_requests_index_on_properties; Type: INDEX; Schema: public; Owner: -
1881 CREATE INDEX container_requests_index_on_properties ON public.container_requests USING gin (properties);
1885 -- Name: container_requests_search_index; Type: INDEX; Schema: public; Owner: -
1888 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);
1892 -- Name: container_requests_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
1895 CREATE INDEX container_requests_trgm_text_search_idx ON public.container_requests USING gin (((((((((((((((((((((((((((((COALESCE(name, ''::character varying))::text || ' '::text) || COALESCE(description, ''::text)) || ' '::text) || COALESCE((properties)::text, ''::text)) || ' '::text) || (COALESCE(state, ''::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_name, ''::character varying))::text) || ' '::text) || COALESCE((output_properties)::text, ''::text))) public.gin_trgm_ops);
1899 -- Name: containers_search_index; Type: INDEX; Schema: public; Owner: -
1902 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);
1906 -- Name: group_index_on_properties; Type: INDEX; Schema: public; Owner: -
1909 CREATE INDEX group_index_on_properties ON public.groups USING gin (properties);
1913 -- Name: groups_search_index; Type: INDEX; Schema: public; Owner: -
1916 CREATE INDEX groups_search_index ON public.groups USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name, group_class, frozen_by_uuid);
1920 -- Name: groups_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
1923 CREATE INDEX groups_trgm_text_search_idx ON public.groups USING gin (((((((((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);
1927 -- Name: humans_search_index; Type: INDEX; Schema: public; Owner: -
1930 CREATE INDEX humans_search_index ON public.humans USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid);
1934 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -
1937 CREATE INDEX index_api_client_authorizations_on_api_client_id ON public.api_client_authorizations USING btree (api_client_id);
1941 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -
1944 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON public.api_client_authorizations USING btree (api_token);
1948 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -
1951 CREATE INDEX index_api_client_authorizations_on_expires_at ON public.api_client_authorizations USING btree (expires_at);
1955 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -
1958 CREATE INDEX index_api_client_authorizations_on_user_id ON public.api_client_authorizations USING btree (user_id);
1962 -- Name: index_api_client_authorizations_on_uuid; Type: INDEX; Schema: public; Owner: -
1965 CREATE UNIQUE INDEX index_api_client_authorizations_on_uuid ON public.api_client_authorizations USING btree (uuid);
1969 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -
1972 CREATE INDEX index_api_clients_on_created_at ON public.api_clients USING btree (created_at);
1976 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -
1979 CREATE INDEX index_api_clients_on_modified_at ON public.api_clients USING btree (modified_at);
1983 -- Name: index_api_clients_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1986 CREATE INDEX index_api_clients_on_owner_uuid ON public.api_clients USING btree (owner_uuid);
1990 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -
1993 CREATE UNIQUE INDEX index_api_clients_on_uuid ON public.api_clients USING btree (uuid);
1997 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -
2000 CREATE INDEX index_authkeys_on_user_and_expires_at ON public.authorized_keys USING btree (authorized_user_uuid, expires_at);
2004 -- Name: index_authorized_keys_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2007 CREATE INDEX index_authorized_keys_on_owner_uuid ON public.authorized_keys USING btree (owner_uuid);
2011 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -
2014 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON public.authorized_keys USING btree (uuid);
2018 -- Name: index_collections_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2021 CREATE INDEX index_collections_on_created_at_and_uuid ON public.collections USING btree (created_at, uuid);
2025 -- Name: index_collections_on_current_version_uuid_and_version; Type: INDEX; Schema: public; Owner: -
2028 CREATE UNIQUE INDEX index_collections_on_current_version_uuid_and_version ON public.collections USING btree (current_version_uuid, version);
2032 -- Name: index_collections_on_delete_at; Type: INDEX; Schema: public; Owner: -
2035 CREATE INDEX index_collections_on_delete_at ON public.collections USING btree (delete_at);
2039 -- Name: index_collections_on_is_trashed; Type: INDEX; Schema: public; Owner: -
2042 CREATE INDEX index_collections_on_is_trashed ON public.collections USING btree (is_trashed);
2046 -- Name: index_collections_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2049 CREATE INDEX index_collections_on_modified_at_and_uuid ON public.collections USING btree (modified_at, uuid);
2053 -- Name: index_collections_on_name; Type: INDEX; Schema: public; Owner: -
2056 CREATE INDEX index_collections_on_name ON public.collections USING gin (name public.gin_trgm_ops);
2060 -- Name: index_collections_on_name_btree; Type: INDEX; Schema: public; Owner: -
2063 CREATE INDEX index_collections_on_name_btree ON public.collections USING btree (name);
2067 -- Name: index_collections_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2070 CREATE INDEX index_collections_on_owner_uuid ON public.collections USING btree (owner_uuid);
2074 -- Name: index_collections_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
2077 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));
2081 -- Name: index_collections_on_portable_data_hash_and_trash_at; Type: INDEX; Schema: public; Owner: -
2084 CREATE INDEX index_collections_on_portable_data_hash_and_trash_at ON public.collections USING btree (portable_data_hash, trash_at);
2088 -- Name: index_collections_on_trash_at; Type: INDEX; Schema: public; Owner: -
2091 CREATE INDEX index_collections_on_trash_at ON public.collections USING btree (trash_at);
2095 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -
2098 CREATE UNIQUE INDEX index_collections_on_uuid ON public.collections USING btree (uuid);
2102 -- Name: index_container_requests_on_container_uuid; Type: INDEX; Schema: public; Owner: -
2105 CREATE INDEX index_container_requests_on_container_uuid ON public.container_requests USING btree (container_uuid);
2109 -- Name: index_container_requests_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2112 CREATE INDEX index_container_requests_on_created_at_and_uuid ON public.container_requests USING btree (created_at, uuid);
2116 -- Name: index_container_requests_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2119 CREATE INDEX index_container_requests_on_modified_at_and_uuid ON public.container_requests USING btree (modified_at, uuid);
2123 -- Name: index_container_requests_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2126 CREATE INDEX index_container_requests_on_owner_uuid ON public.container_requests USING btree (owner_uuid);
2130 -- Name: index_container_requests_on_requesting_container_uuid; Type: INDEX; Schema: public; Owner: -
2133 CREATE INDEX index_container_requests_on_requesting_container_uuid ON public.container_requests USING btree (requesting_container_uuid);
2137 -- Name: index_container_requests_on_uuid; Type: INDEX; Schema: public; Owner: -
2140 CREATE UNIQUE INDEX index_container_requests_on_uuid ON public.container_requests USING btree (uuid);
2144 -- Name: index_containers_on_auth_uuid; Type: INDEX; Schema: public; Owner: -
2147 CREATE INDEX index_containers_on_auth_uuid ON public.containers USING btree (auth_uuid);
2151 -- Name: index_containers_on_locked_by_uuid_and_priority; Type: INDEX; Schema: public; Owner: -
2154 CREATE INDEX index_containers_on_locked_by_uuid_and_priority ON public.containers USING btree (locked_by_uuid, priority);
2158 -- Name: index_containers_on_locked_by_uuid_and_uuid; Type: INDEX; Schema: public; Owner: -
2161 CREATE INDEX index_containers_on_locked_by_uuid_and_uuid ON public.containers USING btree (locked_by_uuid, uuid);
2165 -- Name: index_containers_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2168 CREATE INDEX index_containers_on_modified_at_uuid ON public.containers USING btree (modified_at DESC, uuid);
2172 -- Name: index_containers_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2175 CREATE INDEX index_containers_on_owner_uuid ON public.containers USING btree (owner_uuid);
2179 -- Name: index_containers_on_queued_state; Type: INDEX; Schema: public; Owner: -
2182 CREATE INDEX index_containers_on_queued_state ON public.containers USING btree (state, ((priority > 0)));
2186 -- Name: index_containers_on_reuse_columns; Type: INDEX; Schema: public; Owner: -
2189 CREATE INDEX index_containers_on_reuse_columns ON public.containers USING btree (md5(command), cwd, md5(environment), output_path, md5(output_glob), container_image, md5(mounts), secret_mounts_md5, md5(runtime_constraints));
2193 -- Name: index_containers_on_runtime_status; Type: INDEX; Schema: public; Owner: -
2196 CREATE INDEX index_containers_on_runtime_status ON public.containers USING gin (runtime_status);
2200 -- Name: index_containers_on_secret_mounts_md5; Type: INDEX; Schema: public; Owner: -
2203 CREATE INDEX index_containers_on_secret_mounts_md5 ON public.containers USING btree (secret_mounts_md5);
2207 -- Name: index_containers_on_uuid; Type: INDEX; Schema: public; Owner: -
2210 CREATE UNIQUE INDEX index_containers_on_uuid ON public.containers USING btree (uuid);
2214 -- Name: index_frozen_groups_on_uuid; Type: INDEX; Schema: public; Owner: -
2217 CREATE UNIQUE INDEX index_frozen_groups_on_uuid ON public.frozen_groups USING btree (uuid);
2221 -- Name: index_groups_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2224 CREATE INDEX index_groups_on_created_at_and_uuid ON public.groups USING btree (created_at, uuid);
2228 -- Name: index_groups_on_delete_at; Type: INDEX; Schema: public; Owner: -
2231 CREATE INDEX index_groups_on_delete_at ON public.groups USING btree (delete_at);
2235 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -
2238 CREATE INDEX index_groups_on_group_class ON public.groups USING btree (group_class);
2242 -- Name: index_groups_on_is_trashed; Type: INDEX; Schema: public; Owner: -
2245 CREATE INDEX index_groups_on_is_trashed ON public.groups USING btree (is_trashed);
2249 -- Name: index_groups_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2252 CREATE INDEX index_groups_on_modified_at_and_uuid ON public.groups USING btree (modified_at, uuid);
2256 -- Name: index_groups_on_name; Type: INDEX; Schema: public; Owner: -
2259 CREATE INDEX index_groups_on_name ON public.groups USING gin (name public.gin_trgm_ops);
2263 -- Name: index_groups_on_name_btree; Type: INDEX; Schema: public; Owner: -
2266 CREATE INDEX index_groups_on_name_btree ON public.groups USING btree (name);
2270 -- Name: index_groups_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2273 CREATE INDEX index_groups_on_owner_uuid ON public.groups USING btree (owner_uuid);
2277 -- Name: index_groups_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
2280 CREATE UNIQUE INDEX index_groups_on_owner_uuid_and_name ON public.groups USING btree (owner_uuid, name) WHERE (is_trashed = false);
2284 -- Name: index_groups_on_trash_at; Type: INDEX; Schema: public; Owner: -
2287 CREATE INDEX index_groups_on_trash_at ON public.groups USING btree (trash_at);
2291 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -
2294 CREATE UNIQUE INDEX index_groups_on_uuid ON public.groups USING btree (uuid);
2298 -- Name: index_humans_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2301 CREATE INDEX index_humans_on_owner_uuid ON public.humans USING btree (owner_uuid);
2305 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -
2308 CREATE UNIQUE INDEX index_humans_on_uuid ON public.humans USING btree (uuid);
2312 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -
2315 CREATE INDEX index_job_tasks_on_created_at ON public.job_tasks USING btree (created_at);
2319 -- Name: index_job_tasks_on_created_by_job_task_uuid; Type: INDEX; Schema: public; Owner: -
2322 CREATE INDEX index_job_tasks_on_created_by_job_task_uuid ON public.job_tasks USING btree (created_by_job_task_uuid);
2326 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -
2329 CREATE INDEX index_job_tasks_on_job_uuid ON public.job_tasks USING btree (job_uuid);
2333 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -
2336 CREATE INDEX index_job_tasks_on_modified_at ON public.job_tasks USING btree (modified_at);
2340 -- Name: index_job_tasks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2343 CREATE INDEX index_job_tasks_on_owner_uuid ON public.job_tasks USING btree (owner_uuid);
2347 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -
2350 CREATE INDEX index_job_tasks_on_sequence ON public.job_tasks USING btree (sequence);
2354 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -
2357 CREATE INDEX index_job_tasks_on_success ON public.job_tasks USING btree (success);
2361 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -
2364 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON public.job_tasks USING btree (uuid);
2368 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -
2371 CREATE INDEX index_jobs_on_created_at ON public.jobs USING btree (created_at);
2375 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -
2378 CREATE INDEX index_jobs_on_finished_at ON public.jobs USING btree (finished_at);
2382 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2385 CREATE INDEX index_jobs_on_modified_at ON public.jobs USING btree (modified_at);
2389 -- Name: index_jobs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2392 CREATE INDEX index_jobs_on_modified_at_uuid ON public.jobs USING btree (modified_at DESC, uuid);
2396 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -
2399 CREATE INDEX index_jobs_on_output ON public.jobs USING btree (output);
2403 -- Name: index_jobs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2406 CREATE INDEX index_jobs_on_owner_uuid ON public.jobs USING btree (owner_uuid);
2410 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -
2413 CREATE INDEX index_jobs_on_script ON public.jobs USING btree (script);
2417 -- Name: index_jobs_on_script_parameters_digest; Type: INDEX; Schema: public; Owner: -
2420 CREATE INDEX index_jobs_on_script_parameters_digest ON public.jobs USING btree (script_parameters_digest);
2424 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -
2427 CREATE INDEX index_jobs_on_started_at ON public.jobs USING btree (started_at);
2431 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -
2434 CREATE UNIQUE INDEX index_jobs_on_submit_id ON public.jobs USING btree (submit_id);
2438 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -
2441 CREATE UNIQUE INDEX index_jobs_on_uuid ON public.jobs USING btree (uuid);
2445 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -
2448 CREATE INDEX index_keep_disks_on_filesystem_uuid ON public.keep_disks USING btree (filesystem_uuid);
2452 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -
2455 CREATE INDEX index_keep_disks_on_last_ping_at ON public.keep_disks USING btree (last_ping_at);
2459 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -
2462 CREATE INDEX index_keep_disks_on_node_uuid ON public.keep_disks USING btree (node_uuid);
2466 -- Name: index_keep_disks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2469 CREATE INDEX index_keep_disks_on_owner_uuid ON public.keep_disks USING btree (owner_uuid);
2473 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -
2476 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON public.keep_disks USING btree (uuid);
2480 -- Name: index_keep_services_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2483 CREATE INDEX index_keep_services_on_owner_uuid ON public.keep_services USING btree (owner_uuid);
2487 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -
2490 CREATE UNIQUE INDEX index_keep_services_on_uuid ON public.keep_services USING btree (uuid);
2494 -- Name: index_links_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2497 CREATE INDEX index_links_on_created_at_and_uuid ON public.links USING btree (created_at, uuid);
2501 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -
2504 CREATE INDEX index_links_on_head_uuid ON public.links USING btree (head_uuid);
2508 -- Name: index_links_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2511 CREATE INDEX index_links_on_modified_at_and_uuid ON public.links USING btree (modified_at, uuid);
2515 -- Name: index_links_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2518 CREATE INDEX index_links_on_owner_uuid ON public.links USING btree (owner_uuid);
2522 -- Name: index_links_on_substring_head_uuid; Type: INDEX; Schema: public; Owner: -
2525 CREATE INDEX index_links_on_substring_head_uuid ON public.links USING btree ("substring"((head_uuid)::text, 7, 5));
2529 -- Name: index_links_on_substring_tail_uuid; Type: INDEX; Schema: public; Owner: -
2532 CREATE INDEX index_links_on_substring_tail_uuid ON public.links USING btree ("substring"((tail_uuid)::text, 7, 5));
2536 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -
2539 CREATE INDEX index_links_on_tail_uuid ON public.links USING btree (tail_uuid);
2543 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -
2546 CREATE UNIQUE INDEX index_links_on_uuid ON public.links USING btree (uuid);
2550 -- Name: index_logs_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2553 CREATE INDEX index_logs_on_created_at_and_uuid ON public.logs USING btree (created_at, uuid);
2557 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -
2560 CREATE INDEX index_logs_on_event_at ON public.logs USING btree (event_at);
2564 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -
2567 CREATE INDEX index_logs_on_event_type ON public.logs USING btree (event_type);
2571 -- Name: index_logs_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2574 CREATE INDEX index_logs_on_modified_at_and_uuid ON public.logs USING btree (modified_at, uuid);
2578 -- Name: index_logs_on_object_owner_uuid; Type: INDEX; Schema: public; Owner: -
2581 CREATE INDEX index_logs_on_object_owner_uuid ON public.logs USING btree (object_owner_uuid);
2585 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -
2588 CREATE INDEX index_logs_on_object_uuid ON public.logs USING btree (object_uuid);
2592 -- Name: index_logs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2595 CREATE INDEX index_logs_on_owner_uuid ON public.logs USING btree (owner_uuid);
2599 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -
2602 CREATE INDEX index_logs_on_summary ON public.logs USING btree (summary);
2606 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -
2609 CREATE UNIQUE INDEX index_logs_on_uuid ON public.logs USING btree (uuid);
2613 -- Name: index_materialized_permissions_target_is_not_user; Type: INDEX; Schema: public; Owner: -
2616 CREATE INDEX index_materialized_permissions_target_is_not_user ON public.materialized_permissions USING btree (target_uuid, traverse_owned, ((((user_uuid)::text = (target_uuid)::text) OR ((target_uuid)::text !~~ '_____-tpzed-_______________'::text))));
2620 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -
2623 CREATE INDEX index_nodes_on_created_at ON public.nodes USING btree (created_at);
2627 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -
2630 CREATE INDEX index_nodes_on_hostname ON public.nodes USING btree (hostname);
2634 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -
2637 CREATE INDEX index_nodes_on_modified_at ON public.nodes USING btree (modified_at);
2641 -- Name: index_nodes_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2644 CREATE INDEX index_nodes_on_owner_uuid ON public.nodes USING btree (owner_uuid);
2648 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -
2651 CREATE UNIQUE INDEX index_nodes_on_slot_number ON public.nodes USING btree (slot_number);
2655 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -
2658 CREATE UNIQUE INDEX index_nodes_on_uuid ON public.nodes USING btree (uuid);
2662 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -
2665 CREATE INDEX index_pipeline_instances_on_created_at ON public.pipeline_instances USING btree (created_at);
2669 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -
2672 CREATE INDEX index_pipeline_instances_on_modified_at ON public.pipeline_instances USING btree (modified_at);
2676 -- Name: index_pipeline_instances_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2679 CREATE INDEX index_pipeline_instances_on_modified_at_uuid ON public.pipeline_instances USING btree (modified_at DESC, uuid);
2683 -- Name: index_pipeline_instances_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2686 CREATE INDEX index_pipeline_instances_on_owner_uuid ON public.pipeline_instances USING btree (owner_uuid);
2690 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -
2693 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON public.pipeline_instances USING btree (uuid);
2697 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -
2700 CREATE INDEX index_pipeline_templates_on_created_at ON public.pipeline_templates USING btree (created_at);
2704 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -
2707 CREATE INDEX index_pipeline_templates_on_modified_at ON public.pipeline_templates USING btree (modified_at);
2711 -- Name: index_pipeline_templates_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2714 CREATE INDEX index_pipeline_templates_on_modified_at_uuid ON public.pipeline_templates USING btree (modified_at DESC, uuid);
2718 -- Name: index_pipeline_templates_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2721 CREATE INDEX index_pipeline_templates_on_owner_uuid ON public.pipeline_templates USING btree (owner_uuid);
2725 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -
2728 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON public.pipeline_templates USING btree (uuid);
2732 -- Name: index_repositories_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2735 CREATE INDEX index_repositories_on_created_at_and_uuid ON public.repositories USING btree (created_at, uuid);
2739 -- Name: index_repositories_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2742 CREATE INDEX index_repositories_on_modified_at_and_uuid ON public.repositories USING btree (modified_at, uuid);
2746 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -
2749 CREATE UNIQUE INDEX index_repositories_on_name ON public.repositories USING btree (name);
2753 -- Name: index_repositories_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2756 CREATE INDEX index_repositories_on_owner_uuid ON public.repositories USING btree (owner_uuid);
2760 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -
2763 CREATE UNIQUE INDEX index_repositories_on_uuid ON public.repositories USING btree (uuid);
2767 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -
2770 CREATE INDEX index_specimens_on_created_at ON public.specimens USING btree (created_at);
2774 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -
2777 CREATE INDEX index_specimens_on_modified_at ON public.specimens USING btree (modified_at);
2781 -- Name: index_specimens_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2784 CREATE INDEX index_specimens_on_owner_uuid ON public.specimens USING btree (owner_uuid);
2788 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -
2791 CREATE UNIQUE INDEX index_specimens_on_uuid ON public.specimens USING btree (uuid);
2795 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -
2798 CREATE INDEX index_traits_on_name ON public.traits USING btree (name);
2802 -- Name: index_traits_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2805 CREATE INDEX index_traits_on_owner_uuid ON public.traits USING btree (owner_uuid);
2809 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -
2812 CREATE UNIQUE INDEX index_traits_on_uuid ON public.traits USING btree (uuid);
2816 -- Name: index_trashed_groups_on_group_uuid; Type: INDEX; Schema: public; Owner: -
2819 CREATE UNIQUE INDEX index_trashed_groups_on_group_uuid ON public.trashed_groups USING btree (group_uuid);
2823 -- Name: index_users_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2826 CREATE INDEX index_users_on_created_at_and_uuid ON public.users USING btree (created_at, uuid);
2830 -- Name: index_users_on_identity_url; Type: INDEX; Schema: public; Owner: -
2833 CREATE UNIQUE INDEX index_users_on_identity_url ON public.users USING btree (identity_url);
2837 -- Name: index_users_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2840 CREATE INDEX index_users_on_modified_at_and_uuid ON public.users USING btree (modified_at, uuid);
2844 -- Name: index_users_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2847 CREATE INDEX index_users_on_owner_uuid ON public.users USING btree (owner_uuid);
2851 -- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: -
2854 CREATE UNIQUE INDEX index_users_on_username ON public.users USING btree (username);
2858 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -
2861 CREATE UNIQUE INDEX index_users_on_uuid ON public.users USING btree (uuid);
2865 -- Name: index_uuid_locks_on_uuid; Type: INDEX; Schema: public; Owner: -
2868 CREATE UNIQUE INDEX index_uuid_locks_on_uuid ON public.uuid_locks USING btree (uuid);
2872 -- Name: index_virtual_machines_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2875 CREATE INDEX index_virtual_machines_on_created_at_and_uuid ON public.virtual_machines USING btree (created_at, uuid);
2879 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -
2882 CREATE INDEX index_virtual_machines_on_hostname ON public.virtual_machines USING btree (hostname);
2886 -- Name: index_virtual_machines_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2889 CREATE INDEX index_virtual_machines_on_modified_at_and_uuid ON public.virtual_machines USING btree (modified_at, uuid);
2893 -- Name: index_virtual_machines_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2896 CREATE INDEX index_virtual_machines_on_owner_uuid ON public.virtual_machines USING btree (owner_uuid);
2900 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -
2903 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON public.virtual_machines USING btree (uuid);
2907 -- Name: index_workflows_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2910 CREATE INDEX index_workflows_on_created_at_and_uuid ON public.workflows USING btree (created_at, uuid);
2914 -- Name: index_workflows_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2917 CREATE INDEX index_workflows_on_modified_at_and_uuid ON public.workflows USING btree (modified_at, uuid);
2921 -- Name: index_workflows_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2924 CREATE INDEX index_workflows_on_owner_uuid ON public.workflows USING btree (owner_uuid);
2928 -- Name: index_workflows_on_uuid; Type: INDEX; Schema: public; Owner: -
2931 CREATE UNIQUE INDEX index_workflows_on_uuid ON public.workflows USING btree (uuid);
2935 -- Name: job_tasks_search_index; Type: INDEX; Schema: public; Owner: -
2938 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);
2942 -- Name: jobs_search_index; Type: INDEX; Schema: public; Owner: -
2945 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);
2949 -- Name: jobs_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
2952 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);
2956 -- Name: keep_disks_search_index; Type: INDEX; Schema: public; Owner: -
2959 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);
2963 -- Name: keep_services_search_index; Type: INDEX; Schema: public; Owner: -
2966 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);
2970 -- Name: links_index_on_properties; Type: INDEX; Schema: public; Owner: -
2973 CREATE INDEX links_index_on_properties ON public.links USING gin (properties);
2977 -- Name: links_search_index; Type: INDEX; Schema: public; Owner: -
2980 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);
2984 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -
2987 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);
2991 -- Name: logs_search_index; Type: INDEX; Schema: public; Owner: -
2994 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);
2998 -- Name: nodes_index_on_info; Type: INDEX; Schema: public; Owner: -
3001 CREATE INDEX nodes_index_on_info ON public.nodes USING gin (info);
3005 -- Name: nodes_index_on_properties; Type: INDEX; Schema: public; Owner: -
3008 CREATE INDEX nodes_index_on_properties ON public.nodes USING gin (properties);
3012 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -
3015 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);
3019 -- Name: permission_target; Type: INDEX; Schema: public; Owner: -
3022 CREATE INDEX permission_target ON public.materialized_permissions USING btree (target_uuid);
3026 -- Name: permission_user_target; Type: INDEX; Schema: public; Owner: -
3029 CREATE UNIQUE INDEX permission_user_target ON public.materialized_permissions USING btree (user_uuid, target_uuid);
3033 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -
3036 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);
3040 -- Name: pipeline_instances_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
3043 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);
3047 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -
3050 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON public.pipeline_templates USING btree (owner_uuid, name);
3054 -- Name: pipeline_templates_search_index; Type: INDEX; Schema: public; Owner: -
3057 CREATE INDEX pipeline_templates_search_index ON public.pipeline_templates USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
3061 -- Name: pipeline_templates_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
3064 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);
3068 -- Name: repositories_search_index; Type: INDEX; Schema: public; Owner: -
3071 CREATE INDEX repositories_search_index ON public.repositories USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
3075 -- Name: specimens_search_index; Type: INDEX; Schema: public; Owner: -
3078 CREATE INDEX specimens_search_index ON public.specimens USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, material);
3082 -- Name: traits_search_index; Type: INDEX; Schema: public; Owner: -
3085 CREATE INDEX traits_search_index ON public.traits USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
3089 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
3092 CREATE UNIQUE INDEX unique_schema_migrations ON public.schema_migrations USING btree (version);
3096 -- Name: users_search_index; Type: INDEX; Schema: public; Owner: -
3099 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);
3103 -- Name: virtual_machines_search_index; Type: INDEX; Schema: public; Owner: -
3106 CREATE INDEX virtual_machines_search_index ON public.virtual_machines USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname);
3110 -- Name: workflows_search_idx; Type: INDEX; Schema: public; Owner: -
3113 CREATE INDEX workflows_search_idx ON public.workflows USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
3117 -- Name: workflows_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
3120 CREATE INDEX workflows_trgm_text_search_idx ON public.workflows USING gin (((((COALESCE(name, ''::character varying))::text || ' '::text) || COALESCE(description, ''::text))) public.gin_trgm_ops);
3124 -- PostgreSQL database dump complete
3127 SET search_path TO "$user", public;
3129 INSERT INTO "schema_migrations" (version) VALUES