18874: Merge branch 'main' into 18874-merge-wb2
[arvados.git] / services / api / db / structure.sql
1 -- Copyright (C) The Arvados Authors. All rights reserved.
2 --
3 -- SPDX-License-Identifier: AGPL-3.0
4
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;
12
13 --
14 -- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner: -
15 --
16
17 CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;
18
19
20 --
21 -- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner: -
22 --
23
24 -- COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams';
25
26
27 --
28 -- Name: compute_permission_subgraph(character varying, character varying, integer, character varying); Type: FUNCTION; Schema: public; Owner: -
29 --
30
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)
32     LANGUAGE sql STABLE
33     AS $$
34
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
38    permissions table.
39
40    perm_origin_uuid: The object that 'gets' the permission.
41
42    starting_uuid: The starting object the permission applies to.
43
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
47                   permissions.
48
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
55                  actually removed.
56 */
57 with
58   /* Starting from starting_uuid, determine the set of objects that
59      could be affected by this permission change.
60
61      Note: We don't traverse users unless it is an "identity"
62      permission (permission origin is self).
63   */
64   perm_from_start(perm_origin_uuid, target_uuid, val, traverse_owned) as (
65     
66 WITH RECURSIVE
67         traverse_graph(origin_uuid, target_uuid, val, traverse_owned, starting_set) as (
68             
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-_______________'))
72
73           union
74             (select traverse_graph.origin_uuid,
75                     edges.head_uuid,
76                       least(
77 case (edges.edge_id = perm_edge_id)
78                                when true then starting_perm
79                                else edges.val
80                             end
81 ,
82                             traverse_graph.val),
83                     should_traverse_owned(edges.head_uuid, edges.val),
84                     false
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)
91 ),
92
93   /* Find other inbound edges that grant permissions to 'targets' in
94      perm_from_start, and compute permissions that originate from
95      those.
96
97      This is necessary for two reasons:
98
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.
102
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.
108   */
109   additional_perms(perm_origin_uuid, target_uuid, val, traverse_owned) as (
110     
111 WITH RECURSIVE
112         traverse_graph(origin_uuid, target_uuid, val, traverse_owned, starting_set) as (
113             
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)
121
122           union
123             (select traverse_graph.origin_uuid,
124                     edges.head_uuid,
125                       least(
126 case (edges.edge_id = perm_edge_id)
127                                when true then starting_perm
128                                else edges.val
129                             end
130 ,
131                             traverse_graph.val),
132                     should_traverse_owned(edges.head_uuid, edges.val),
133                     false
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)
140 ),
141
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
145     union all
146       select * from additional_perms
147   )
148
149   /* The actual query that produces rows to be added or removed
150      from the materialized_permissions table.  This is the clever
151      bit.
152
153      Key insights:
154
155      * For every group, the materialized_permissions lists all users
156        that can access to that group.
157
158      * The all_perms subquery has computed permissions on on a set of
159        objects for all inbound "origins", which are users or groups.
160
161      * Permissions through groups are transitive.
162
163      We can infer:
164
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
168
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.
172
173      In addition, because users always have permission on themselves, this
174      query also makes sure those permission rows are always
175      returned.
176   */
177   select v.user_uuid, v.target_uuid, max(v.perm_level), bool_or(v.traverse_owned) from
178     (select m.user_uuid,
179          u.target_uuid,
180          least(u.val, m.perm_level) as perm_level,
181          u.traverse_owned
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-_______________')
185     union all
186       select target_uuid as user_uuid, target_uuid, 3, true
187         from all_perms
188         where all_perms.target_uuid like '_____-tpzed-_______________') as v
189     group by v.user_uuid, v.target_uuid
190 $$;
191
192
193 --
194 -- Name: container_priority(character varying, bigint, character varying); Type: FUNCTION; Schema: public; Owner: -
195 --
196
197 CREATE FUNCTION public.container_priority(for_container_uuid character varying, inherited bigint, inherited_from character varying) RETURNS bigint
198     LANGUAGE sql
199     AS $$
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.
203 */
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
207                     end), 0) from
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);
213 $$;
214
215
216 --
217 -- Name: container_tree(character varying); Type: FUNCTION; Schema: public; Owner: -
218 --
219
220 CREATE FUNCTION public.container_tree(for_container_uuid character varying) RETURNS TABLE(pri_container_uuid character varying)
221     LANGUAGE sql
222     AS $$
223 /* A lighter weight version of the update_priorities query that only returns the containers in a tree,
224    used by SELECT FOR UPDATE.
225 */
226 with recursive tab(upd_container_uuid) as (
227   select for_container_uuid
228 union
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')
233 )
234 select upd_container_uuid from tab;
235 $$;
236
237
238 --
239 -- Name: container_tree_priorities(character varying); Type: FUNCTION; Schema: public; Owner: -
240 --
241
242 CREATE FUNCTION public.container_tree_priorities(for_container_uuid character varying) RETURNS TABLE(pri_container_uuid character varying, upd_priority bigint)
243     LANGUAGE sql
244     AS $$
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.
248 */
249 with recursive tab(upd_container_uuid, upd_priority) as (
250   select for_container_uuid, container_priority(for_container_uuid, 0, '')
251 union
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')
256 )
257 select upd_container_uuid, upd_priority from tab;
258 $$;
259
260
261 --
262 -- Name: jsonb_exists_all_inline_op(jsonb, text[]); Type: FUNCTION; Schema: public; Owner: -
263 --
264
265 CREATE FUNCTION public.jsonb_exists_all_inline_op(jsonb, text[]) RETURNS boolean
266     LANGUAGE sql IMMUTABLE
267     AS $_$SELECT $1 ?& $2$_$;
268
269
270 --
271 -- Name: jsonb_exists_inline_op(jsonb, text); Type: FUNCTION; Schema: public; Owner: -
272 --
273
274 CREATE FUNCTION public.jsonb_exists_inline_op(jsonb, text) RETURNS boolean
275     LANGUAGE sql IMMUTABLE
276     AS $_$SELECT $1 ? $2$_$;
277
278
279 --
280 -- Name: project_subtree_with_is_frozen(character varying, boolean); Type: FUNCTION; Schema: public; Owner: -
281 --
282
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)
284     LANGUAGE sql STABLE
285     AS $$
286 WITH RECURSIVE
287   project_subtree(uuid, is_frozen) as (
288     values (starting_uuid, starting_is_frozen)
289     union
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)
292   )
293   select uuid, is_frozen from project_subtree;
294 $$;
295
296
297 --
298 -- Name: project_subtree_with_trash_at(character varying, timestamp without time zone); Type: FUNCTION; Schema: public; Owner: -
299 --
300
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)
302     LANGUAGE sql STABLE
303     AS $$
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
311   in the groups table.
312 */
313 WITH RECURSIVE
314         project_subtree(uuid, trash_at) as (
315         values (starting_uuid, starting_trash_at)
316         union
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)
319         )
320         select uuid, trash_at from project_subtree;
321 $$;
322
323
324 --
325 -- Name: should_traverse_owned(character varying, integer); Type: FUNCTION; Schema: public; Owner: -
326 --
327
328 CREATE FUNCTION public.should_traverse_owned(starting_uuid character varying, starting_perm integer) RETURNS boolean
329     LANGUAGE sql IMMUTABLE
330     AS $$
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
334    is can_manage.
335 */
336 select starting_uuid like '_____-j7d0g-_______________' or
337        (starting_uuid like '_____-tpzed-_______________' and starting_perm >= 3);
338 $$;
339
340
341 SET default_tablespace = '';
342
343 SET default_with_oids = false;
344
345 --
346 -- Name: groups; Type: TABLE; Schema: public; Owner: -
347 --
348
349 CREATE TABLE public.groups (
350     id bigint NOT NULL,
351     uuid character varying(255),
352     owner_uuid character varying(255),
353     created_at timestamp without time zone NOT NULL,
354     modified_by_client_uuid character varying(255),
355     modified_by_user_uuid character varying(255),
356     modified_at timestamp without time zone,
357     name character varying(255) NOT NULL,
358     description character varying(524288),
359     updated_at timestamp without time zone NOT NULL,
360     group_class character varying(255),
361     trash_at timestamp without time zone,
362     is_trashed boolean DEFAULT false NOT NULL,
363     delete_at timestamp without time zone,
364     properties jsonb DEFAULT '{}'::jsonb,
365     frozen_by_uuid character varying
366 );
367
368
369 --
370 -- Name: api_client_authorizations; Type: TABLE; Schema: public; Owner: -
371 --
372
373 CREATE TABLE public.api_client_authorizations (
374     id bigint NOT NULL,
375     api_token character varying(255) NOT NULL,
376     api_client_id bigint NOT NULL,
377     user_id bigint NOT NULL,
378     created_by_ip_address character varying(255),
379     last_used_by_ip_address character varying(255),
380     last_used_at timestamp without time zone,
381     expires_at timestamp without time zone,
382     created_at timestamp without time zone NOT NULL,
383     updated_at timestamp without time zone NOT NULL,
384     default_owner_uuid character varying(255),
385     scopes text DEFAULT '["all"]'::text,
386     uuid character varying(255) NOT NULL
387 );
388
389
390 --
391 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
392 --
393
394 CREATE SEQUENCE public.api_client_authorizations_id_seq
395     START WITH 1
396     INCREMENT BY 1
397     NO MINVALUE
398     NO MAXVALUE
399     CACHE 1;
400
401
402 --
403 -- Name: api_client_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
404 --
405
406 ALTER SEQUENCE public.api_client_authorizations_id_seq OWNED BY public.api_client_authorizations.id;
407
408
409 --
410 -- Name: api_clients; Type: TABLE; Schema: public; Owner: -
411 --
412
413 CREATE TABLE public.api_clients (
414     id bigint NOT NULL,
415     uuid character varying(255),
416     owner_uuid character varying(255),
417     modified_by_client_uuid character varying(255),
418     modified_by_user_uuid character varying(255),
419     modified_at timestamp without time zone,
420     name character varying(255),
421     url_prefix character varying(255),
422     created_at timestamp without time zone NOT NULL,
423     updated_at timestamp without time zone NOT NULL,
424     is_trusted boolean DEFAULT false
425 );
426
427
428 --
429 -- Name: api_clients_id_seq; Type: SEQUENCE; Schema: public; Owner: -
430 --
431
432 CREATE SEQUENCE public.api_clients_id_seq
433     START WITH 1
434     INCREMENT BY 1
435     NO MINVALUE
436     NO MAXVALUE
437     CACHE 1;
438
439
440 --
441 -- Name: api_clients_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
442 --
443
444 ALTER SEQUENCE public.api_clients_id_seq OWNED BY public.api_clients.id;
445
446
447 --
448 -- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: -
449 --
450
451 CREATE TABLE public.ar_internal_metadata (
452     key character varying NOT NULL,
453     value character varying,
454     created_at timestamp without time zone NOT NULL,
455     updated_at timestamp without time zone NOT NULL
456 );
457
458
459 --
460 -- Name: authorized_keys; Type: TABLE; Schema: public; Owner: -
461 --
462
463 CREATE TABLE public.authorized_keys (
464     id bigint NOT NULL,
465     uuid character varying(255) NOT NULL,
466     owner_uuid character varying(255) NOT NULL,
467     modified_by_client_uuid character varying(255),
468     modified_by_user_uuid character varying(255),
469     modified_at timestamp without time zone,
470     name character varying(255),
471     key_type character varying(255),
472     authorized_user_uuid character varying(255),
473     public_key text,
474     expires_at timestamp without time zone,
475     created_at timestamp without time zone NOT NULL,
476     updated_at timestamp without time zone NOT NULL
477 );
478
479
480 --
481 -- Name: authorized_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: -
482 --
483
484 CREATE SEQUENCE public.authorized_keys_id_seq
485     START WITH 1
486     INCREMENT BY 1
487     NO MINVALUE
488     NO MAXVALUE
489     CACHE 1;
490
491
492 --
493 -- Name: authorized_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
494 --
495
496 ALTER SEQUENCE public.authorized_keys_id_seq OWNED BY public.authorized_keys.id;
497
498
499 --
500 -- Name: collections; Type: TABLE; Schema: public; Owner: -
501 --
502
503 CREATE TABLE public.collections (
504     id bigint NOT NULL,
505     owner_uuid character varying(255),
506     created_at timestamp without time zone NOT NULL,
507     modified_by_client_uuid character varying(255),
508     modified_by_user_uuid character varying(255),
509     modified_at timestamp without time zone,
510     portable_data_hash character varying(255),
511     replication_desired integer,
512     replication_confirmed_at timestamp without time zone,
513     replication_confirmed integer,
514     updated_at timestamp without time zone NOT NULL,
515     uuid character varying(255),
516     manifest_text text,
517     name character varying(255),
518     description character varying(524288),
519     properties jsonb,
520     delete_at timestamp without time zone,
521     file_names text,
522     trash_at timestamp without time zone,
523     is_trashed boolean DEFAULT false NOT NULL,
524     storage_classes_desired jsonb DEFAULT '["default"]'::jsonb,
525     storage_classes_confirmed jsonb DEFAULT '[]'::jsonb,
526     storage_classes_confirmed_at timestamp without time zone,
527     current_version_uuid character varying,
528     version integer DEFAULT 1 NOT NULL,
529     preserve_version boolean DEFAULT false,
530     file_count integer DEFAULT 0 NOT NULL,
531     file_size_total bigint DEFAULT 0 NOT NULL
532 );
533
534
535 --
536 -- Name: collections_id_seq; Type: SEQUENCE; Schema: public; Owner: -
537 --
538
539 CREATE SEQUENCE public.collections_id_seq
540     START WITH 1
541     INCREMENT BY 1
542     NO MINVALUE
543     NO MAXVALUE
544     CACHE 1;
545
546
547 --
548 -- Name: collections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
549 --
550
551 ALTER SEQUENCE public.collections_id_seq OWNED BY public.collections.id;
552
553
554 --
555 -- Name: container_requests; Type: TABLE; Schema: public; Owner: -
556 --
557
558 CREATE TABLE public.container_requests (
559     id bigint NOT NULL,
560     uuid character varying(255),
561     owner_uuid character varying(255),
562     created_at timestamp without time zone NOT NULL,
563     modified_at timestamp without time zone,
564     modified_by_client_uuid character varying(255),
565     modified_by_user_uuid character varying(255),
566     name character varying(255),
567     description text,
568     properties jsonb,
569     state character varying(255),
570     requesting_container_uuid character varying(255),
571     container_uuid character varying(255),
572     container_count_max integer,
573     mounts text,
574     runtime_constraints text,
575     container_image character varying(255),
576     environment text,
577     cwd character varying(255),
578     command text,
579     output_path character varying(255),
580     priority integer,
581     expires_at timestamp without time zone,
582     filters text,
583     updated_at timestamp without time zone NOT NULL,
584     container_count integer DEFAULT 0,
585     use_existing boolean DEFAULT true,
586     scheduling_parameters text,
587     output_uuid character varying(255),
588     log_uuid character varying(255),
589     output_name character varying(255) DEFAULT NULL::character varying,
590     output_ttl integer DEFAULT 0 NOT NULL,
591     secret_mounts jsonb DEFAULT '{}'::jsonb,
592     runtime_token text,
593     output_storage_classes jsonb DEFAULT '["default"]'::jsonb,
594     output_properties jsonb DEFAULT '{}'::jsonb,
595     cumulative_cost double precision DEFAULT 0.0 NOT NULL
596 );
597
598
599 --
600 -- Name: container_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: -
601 --
602
603 CREATE SEQUENCE public.container_requests_id_seq
604     START WITH 1
605     INCREMENT BY 1
606     NO MINVALUE
607     NO MAXVALUE
608     CACHE 1;
609
610
611 --
612 -- Name: container_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
613 --
614
615 ALTER SEQUENCE public.container_requests_id_seq OWNED BY public.container_requests.id;
616
617
618 --
619 -- Name: containers; Type: TABLE; Schema: public; Owner: -
620 --
621
622 CREATE TABLE public.containers (
623     id bigint NOT NULL,
624     uuid character varying(255),
625     owner_uuid character varying(255),
626     created_at timestamp without time zone NOT NULL,
627     modified_at timestamp without time zone,
628     modified_by_client_uuid character varying(255),
629     modified_by_user_uuid character varying(255),
630     state character varying(255),
631     started_at timestamp without time zone,
632     finished_at timestamp without time zone,
633     log character varying(255),
634     environment text,
635     cwd character varying(255),
636     command text,
637     output_path character varying(255),
638     mounts text,
639     runtime_constraints text,
640     output character varying(255),
641     container_image character varying(255),
642     progress double precision,
643     priority bigint,
644     updated_at timestamp without time zone NOT NULL,
645     exit_code integer,
646     auth_uuid character varying(255),
647     locked_by_uuid character varying(255),
648     scheduling_parameters text,
649     secret_mounts jsonb DEFAULT '{}'::jsonb,
650     secret_mounts_md5 character varying DEFAULT '99914b932bd37a50b983c5e7c90ae93b'::character varying,
651     runtime_status jsonb DEFAULT '{}'::jsonb,
652     runtime_user_uuid text,
653     runtime_auth_scopes jsonb,
654     runtime_token text,
655     lock_count integer DEFAULT 0 NOT NULL,
656     gateway_address character varying,
657     interactive_session_started boolean DEFAULT false NOT NULL,
658     output_storage_classes jsonb DEFAULT '["default"]'::jsonb,
659     output_properties jsonb DEFAULT '{}'::jsonb,
660     cost double precision DEFAULT 0.0 NOT NULL,
661     subrequests_cost double precision DEFAULT 0.0 NOT NULL
662 );
663
664
665 --
666 -- Name: containers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
667 --
668
669 CREATE SEQUENCE public.containers_id_seq
670     START WITH 1
671     INCREMENT BY 1
672     NO MINVALUE
673     NO MAXVALUE
674     CACHE 1;
675
676
677 --
678 -- Name: containers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
679 --
680
681 ALTER SEQUENCE public.containers_id_seq OWNED BY public.containers.id;
682
683
684 --
685 -- Name: frozen_groups; Type: TABLE; Schema: public; Owner: -
686 --
687
688 CREATE TABLE public.frozen_groups (
689     uuid character varying
690 );
691
692
693 --
694 -- Name: groups_id_seq; Type: SEQUENCE; Schema: public; Owner: -
695 --
696
697 CREATE SEQUENCE public.groups_id_seq
698     START WITH 1
699     INCREMENT BY 1
700     NO MINVALUE
701     NO MAXVALUE
702     CACHE 1;
703
704
705 --
706 -- Name: groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
707 --
708
709 ALTER SEQUENCE public.groups_id_seq OWNED BY public.groups.id;
710
711
712 --
713 -- Name: humans; Type: TABLE; Schema: public; Owner: -
714 --
715
716 CREATE TABLE public.humans (
717     id bigint NOT NULL,
718     uuid character varying(255) NOT NULL,
719     owner_uuid character varying(255) NOT NULL,
720     modified_by_client_uuid character varying(255),
721     modified_by_user_uuid character varying(255),
722     modified_at timestamp without time zone,
723     properties text,
724     created_at timestamp without time zone NOT NULL,
725     updated_at timestamp without time zone NOT NULL
726 );
727
728
729 --
730 -- Name: humans_id_seq; Type: SEQUENCE; Schema: public; Owner: -
731 --
732
733 CREATE SEQUENCE public.humans_id_seq
734     START WITH 1
735     INCREMENT BY 1
736     NO MINVALUE
737     NO MAXVALUE
738     CACHE 1;
739
740
741 --
742 -- Name: humans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
743 --
744
745 ALTER SEQUENCE public.humans_id_seq OWNED BY public.humans.id;
746
747
748 --
749 -- Name: job_tasks; Type: TABLE; Schema: public; Owner: -
750 --
751
752 CREATE TABLE public.job_tasks (
753     id bigint NOT NULL,
754     uuid character varying(255),
755     owner_uuid character varying(255),
756     modified_by_client_uuid character varying(255),
757     modified_by_user_uuid character varying(255),
758     modified_at timestamp without time zone,
759     job_uuid character varying(255),
760     sequence integer,
761     parameters text,
762     output text,
763     progress double precision,
764     success boolean,
765     created_at timestamp without time zone NOT NULL,
766     updated_at timestamp without time zone NOT NULL,
767     created_by_job_task_uuid character varying(255),
768     qsequence bigint,
769     started_at timestamp without time zone,
770     finished_at timestamp without time zone
771 );
772
773
774 --
775 -- Name: job_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
776 --
777
778 CREATE SEQUENCE public.job_tasks_id_seq
779     START WITH 1
780     INCREMENT BY 1
781     NO MINVALUE
782     NO MAXVALUE
783     CACHE 1;
784
785
786 --
787 -- Name: job_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
788 --
789
790 ALTER SEQUENCE public.job_tasks_id_seq OWNED BY public.job_tasks.id;
791
792
793 --
794 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE; Schema: public; Owner: -
795 --
796
797 CREATE SEQUENCE public.job_tasks_qsequence_seq
798     START WITH 1
799     INCREMENT BY 1
800     NO MINVALUE
801     NO MAXVALUE
802     CACHE 1;
803
804
805 --
806 -- Name: job_tasks_qsequence_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
807 --
808
809 ALTER SEQUENCE public.job_tasks_qsequence_seq OWNED BY public.job_tasks.qsequence;
810
811
812 --
813 -- Name: jobs; Type: TABLE; Schema: public; Owner: -
814 --
815
816 CREATE TABLE public.jobs (
817     id bigint NOT NULL,
818     uuid character varying(255),
819     owner_uuid character varying(255),
820     modified_by_client_uuid character varying(255),
821     modified_by_user_uuid character varying(255),
822     modified_at timestamp without time zone,
823     submit_id character varying(255),
824     script character varying(255),
825     script_version character varying(255),
826     script_parameters text,
827     cancelled_by_client_uuid character varying(255),
828     cancelled_by_user_uuid character varying(255),
829     cancelled_at timestamp without time zone,
830     started_at timestamp without time zone,
831     finished_at timestamp without time zone,
832     running boolean,
833     success boolean,
834     output character varying(255),
835     created_at timestamp without time zone NOT NULL,
836     updated_at timestamp without time zone NOT NULL,
837     is_locked_by_uuid character varying(255),
838     log character varying(255),
839     tasks_summary text,
840     runtime_constraints text,
841     nondeterministic boolean,
842     repository character varying(255),
843     supplied_script_version character varying(255),
844     docker_image_locator character varying(255),
845     priority integer DEFAULT 0 NOT NULL,
846     description character varying(524288),
847     state character varying(255),
848     arvados_sdk_version character varying(255),
849     components text,
850     script_parameters_digest character varying(255)
851 );
852
853
854 --
855 -- Name: jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
856 --
857
858 CREATE SEQUENCE public.jobs_id_seq
859     START WITH 1
860     INCREMENT BY 1
861     NO MINVALUE
862     NO MAXVALUE
863     CACHE 1;
864
865
866 --
867 -- Name: jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
868 --
869
870 ALTER SEQUENCE public.jobs_id_seq OWNED BY public.jobs.id;
871
872
873 --
874 -- Name: keep_disks; Type: TABLE; Schema: public; Owner: -
875 --
876
877 CREATE TABLE public.keep_disks (
878     id bigint NOT NULL,
879     uuid character varying(255) NOT NULL,
880     owner_uuid character varying(255) NOT NULL,
881     modified_by_client_uuid character varying(255),
882     modified_by_user_uuid character varying(255),
883     modified_at timestamp without time zone,
884     ping_secret character varying(255) NOT NULL,
885     node_uuid character varying(255),
886     filesystem_uuid character varying(255),
887     bytes_total integer,
888     bytes_free integer,
889     is_readable boolean DEFAULT true NOT NULL,
890     is_writable boolean DEFAULT true NOT NULL,
891     last_read_at timestamp without time zone,
892     last_write_at timestamp without time zone,
893     last_ping_at timestamp without time zone,
894     created_at timestamp without time zone NOT NULL,
895     updated_at timestamp without time zone NOT NULL,
896     keep_service_uuid character varying(255)
897 );
898
899
900 --
901 -- Name: keep_disks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
902 --
903
904 CREATE SEQUENCE public.keep_disks_id_seq
905     START WITH 1
906     INCREMENT BY 1
907     NO MINVALUE
908     NO MAXVALUE
909     CACHE 1;
910
911
912 --
913 -- Name: keep_disks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
914 --
915
916 ALTER SEQUENCE public.keep_disks_id_seq OWNED BY public.keep_disks.id;
917
918
919 --
920 -- Name: keep_services; Type: TABLE; Schema: public; Owner: -
921 --
922
923 CREATE TABLE public.keep_services (
924     id bigint NOT NULL,
925     uuid character varying(255) NOT NULL,
926     owner_uuid character varying(255) NOT NULL,
927     modified_by_client_uuid character varying(255),
928     modified_by_user_uuid character varying(255),
929     modified_at timestamp without time zone,
930     service_host character varying(255),
931     service_port integer,
932     service_ssl_flag boolean,
933     service_type character varying(255),
934     created_at timestamp without time zone NOT NULL,
935     updated_at timestamp without time zone NOT NULL,
936     read_only boolean DEFAULT false NOT NULL
937 );
938
939
940 --
941 -- Name: keep_services_id_seq; Type: SEQUENCE; Schema: public; Owner: -
942 --
943
944 CREATE SEQUENCE public.keep_services_id_seq
945     START WITH 1
946     INCREMENT BY 1
947     NO MINVALUE
948     NO MAXVALUE
949     CACHE 1;
950
951
952 --
953 -- Name: keep_services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
954 --
955
956 ALTER SEQUENCE public.keep_services_id_seq OWNED BY public.keep_services.id;
957
958
959 --
960 -- Name: links; Type: TABLE; Schema: public; Owner: -
961 --
962
963 CREATE TABLE public.links (
964     id bigint NOT NULL,
965     uuid character varying(255),
966     owner_uuid character varying(255),
967     created_at timestamp without time zone NOT NULL,
968     modified_by_client_uuid character varying(255),
969     modified_by_user_uuid character varying(255),
970     modified_at timestamp without time zone,
971     tail_uuid character varying(255),
972     link_class character varying(255),
973     name character varying(255),
974     head_uuid character varying(255),
975     properties jsonb,
976     updated_at timestamp without time zone NOT NULL
977 );
978
979
980 --
981 -- Name: links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
982 --
983
984 CREATE SEQUENCE public.links_id_seq
985     START WITH 1
986     INCREMENT BY 1
987     NO MINVALUE
988     NO MAXVALUE
989     CACHE 1;
990
991
992 --
993 -- Name: links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
994 --
995
996 ALTER SEQUENCE public.links_id_seq OWNED BY public.links.id;
997
998
999 --
1000 -- Name: logs; Type: TABLE; Schema: public; Owner: -
1001 --
1002
1003 CREATE TABLE public.logs (
1004     id bigint NOT NULL,
1005     uuid character varying(255),
1006     owner_uuid character varying(255),
1007     modified_by_client_uuid character varying(255),
1008     modified_by_user_uuid character varying(255),
1009     object_uuid character varying(255),
1010     event_at timestamp without time zone,
1011     event_type character varying(255),
1012     summary text,
1013     properties text,
1014     created_at timestamp without time zone NOT NULL,
1015     updated_at timestamp without time zone NOT NULL,
1016     modified_at timestamp without time zone,
1017     object_owner_uuid character varying(255)
1018 );
1019
1020
1021 --
1022 -- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1023 --
1024
1025 CREATE SEQUENCE public.logs_id_seq
1026     START WITH 1
1027     INCREMENT BY 1
1028     NO MINVALUE
1029     NO MAXVALUE
1030     CACHE 1;
1031
1032
1033 --
1034 -- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1035 --
1036
1037 ALTER SEQUENCE public.logs_id_seq OWNED BY public.logs.id;
1038
1039
1040 --
1041 -- Name: materialized_permissions; Type: TABLE; Schema: public; Owner: -
1042 --
1043
1044 CREATE TABLE public.materialized_permissions (
1045     user_uuid character varying,
1046     target_uuid character varying,
1047     perm_level integer,
1048     traverse_owned boolean
1049 );
1050
1051
1052 --
1053 -- Name: nodes; Type: TABLE; Schema: public; Owner: -
1054 --
1055
1056 CREATE TABLE public.nodes (
1057     id bigint NOT NULL,
1058     uuid character varying(255),
1059     owner_uuid character varying(255),
1060     created_at timestamp without time zone NOT NULL,
1061     modified_by_client_uuid character varying(255),
1062     modified_by_user_uuid character varying(255),
1063     modified_at timestamp without time zone,
1064     slot_number integer,
1065     hostname character varying(255),
1066     domain character varying(255),
1067     ip_address character varying(255),
1068     first_ping_at timestamp without time zone,
1069     last_ping_at timestamp without time zone,
1070     info jsonb,
1071     updated_at timestamp without time zone NOT NULL,
1072     properties jsonb,
1073     job_uuid character varying(255)
1074 );
1075
1076
1077 --
1078 -- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1079 --
1080
1081 CREATE SEQUENCE public.nodes_id_seq
1082     START WITH 1
1083     INCREMENT BY 1
1084     NO MINVALUE
1085     NO MAXVALUE
1086     CACHE 1;
1087
1088
1089 --
1090 -- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1091 --
1092
1093 ALTER SEQUENCE public.nodes_id_seq OWNED BY public.nodes.id;
1094
1095
1096 --
1097 -- Name: users; Type: TABLE; Schema: public; Owner: -
1098 --
1099
1100 CREATE TABLE public.users (
1101     id bigint NOT NULL,
1102     uuid character varying(255),
1103     owner_uuid character varying(255) NOT NULL,
1104     created_at timestamp without time zone NOT NULL,
1105     modified_by_client_uuid character varying(255),
1106     modified_by_user_uuid character varying(255),
1107     modified_at timestamp without time zone,
1108     email character varying(255),
1109     first_name character varying(255),
1110     last_name character varying(255),
1111     identity_url character varying(255),
1112     is_admin boolean,
1113     prefs text,
1114     updated_at timestamp without time zone NOT NULL,
1115     default_owner_uuid character varying(255),
1116     is_active boolean DEFAULT false,
1117     username character varying(255),
1118     redirect_to_user_uuid character varying
1119 );
1120
1121
1122 --
1123 -- Name: permission_graph_edges; Type: VIEW; Schema: public; Owner: -
1124 --
1125
1126 CREATE VIEW public.permission_graph_edges AS
1127  SELECT groups.owner_uuid AS tail_uuid,
1128     groups.uuid AS head_uuid,
1129     3 AS val,
1130     groups.uuid AS edge_id
1131    FROM public.groups
1132 UNION ALL
1133  SELECT users.owner_uuid AS tail_uuid,
1134     users.uuid AS head_uuid,
1135     3 AS val,
1136     users.uuid AS edge_id
1137    FROM public.users
1138 UNION ALL
1139  SELECT users.uuid AS tail_uuid,
1140     users.uuid AS head_uuid,
1141     3 AS val,
1142     ''::character varying AS edge_id
1143    FROM public.users
1144 UNION ALL
1145  SELECT links.tail_uuid,
1146     links.head_uuid,
1147         CASE
1148             WHEN ((links.name)::text = 'can_read'::text) THEN 1
1149             WHEN ((links.name)::text = 'can_login'::text) THEN 1
1150             WHEN ((links.name)::text = 'can_write'::text) THEN 2
1151             WHEN ((links.name)::text = 'can_manage'::text) THEN 3
1152             ELSE 0
1153         END AS val,
1154     links.uuid AS edge_id
1155    FROM public.links
1156   WHERE ((links.link_class)::text = 'permission'::text);
1157
1158
1159 --
1160 -- Name: pipeline_instances; Type: TABLE; Schema: public; Owner: -
1161 --
1162
1163 CREATE TABLE public.pipeline_instances (
1164     id bigint NOT NULL,
1165     uuid character varying(255),
1166     owner_uuid character varying(255),
1167     created_at timestamp without time zone NOT NULL,
1168     modified_by_client_uuid character varying(255),
1169     modified_by_user_uuid character varying(255),
1170     modified_at timestamp without time zone,
1171     pipeline_template_uuid character varying(255),
1172     name character varying(255),
1173     components text,
1174     updated_at timestamp without time zone NOT NULL,
1175     properties text,
1176     state character varying(255),
1177     components_summary text,
1178     started_at timestamp without time zone,
1179     finished_at timestamp without time zone,
1180     description character varying(524288)
1181 );
1182
1183
1184 --
1185 -- Name: pipeline_instances_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1186 --
1187
1188 CREATE SEQUENCE public.pipeline_instances_id_seq
1189     START WITH 1
1190     INCREMENT BY 1
1191     NO MINVALUE
1192     NO MAXVALUE
1193     CACHE 1;
1194
1195
1196 --
1197 -- Name: pipeline_instances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1198 --
1199
1200 ALTER SEQUENCE public.pipeline_instances_id_seq OWNED BY public.pipeline_instances.id;
1201
1202
1203 --
1204 -- Name: pipeline_templates; Type: TABLE; Schema: public; Owner: -
1205 --
1206
1207 CREATE TABLE public.pipeline_templates (
1208     id bigint NOT NULL,
1209     uuid character varying(255),
1210     owner_uuid character varying(255),
1211     created_at timestamp without time zone NOT NULL,
1212     modified_by_client_uuid character varying(255),
1213     modified_by_user_uuid character varying(255),
1214     modified_at timestamp without time zone,
1215     name character varying(255),
1216     components text,
1217     updated_at timestamp without time zone NOT NULL,
1218     description character varying(524288)
1219 );
1220
1221
1222 --
1223 -- Name: pipeline_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1224 --
1225
1226 CREATE SEQUENCE public.pipeline_templates_id_seq
1227     START WITH 1
1228     INCREMENT BY 1
1229     NO MINVALUE
1230     NO MAXVALUE
1231     CACHE 1;
1232
1233
1234 --
1235 -- Name: pipeline_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1236 --
1237
1238 ALTER SEQUENCE public.pipeline_templates_id_seq OWNED BY public.pipeline_templates.id;
1239
1240
1241 --
1242 -- Name: repositories; Type: TABLE; Schema: public; Owner: -
1243 --
1244
1245 CREATE TABLE public.repositories (
1246     id bigint NOT NULL,
1247     uuid character varying(255) NOT NULL,
1248     owner_uuid character varying(255) NOT NULL,
1249     modified_by_client_uuid character varying(255),
1250     modified_by_user_uuid character varying(255),
1251     modified_at timestamp without time zone,
1252     name character varying(255),
1253     created_at timestamp without time zone NOT NULL,
1254     updated_at timestamp without time zone NOT NULL
1255 );
1256
1257
1258 --
1259 -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1260 --
1261
1262 CREATE SEQUENCE public.repositories_id_seq
1263     START WITH 1
1264     INCREMENT BY 1
1265     NO MINVALUE
1266     NO MAXVALUE
1267     CACHE 1;
1268
1269
1270 --
1271 -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1272 --
1273
1274 ALTER SEQUENCE public.repositories_id_seq OWNED BY public.repositories.id;
1275
1276
1277 --
1278 -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
1279 --
1280
1281 CREATE TABLE public.schema_migrations (
1282     version character varying(255) NOT NULL
1283 );
1284
1285
1286 --
1287 -- Name: specimens; Type: TABLE; Schema: public; Owner: -
1288 --
1289
1290 CREATE TABLE public.specimens (
1291     id bigint NOT NULL,
1292     uuid character varying(255),
1293     owner_uuid character varying(255),
1294     created_at timestamp without time zone NOT NULL,
1295     modified_by_client_uuid character varying(255),
1296     modified_by_user_uuid character varying(255),
1297     modified_at timestamp without time zone,
1298     material character varying(255),
1299     updated_at timestamp without time zone NOT NULL,
1300     properties text
1301 );
1302
1303
1304 --
1305 -- Name: specimens_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1306 --
1307
1308 CREATE SEQUENCE public.specimens_id_seq
1309     START WITH 1
1310     INCREMENT BY 1
1311     NO MINVALUE
1312     NO MAXVALUE
1313     CACHE 1;
1314
1315
1316 --
1317 -- Name: specimens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1318 --
1319
1320 ALTER SEQUENCE public.specimens_id_seq OWNED BY public.specimens.id;
1321
1322
1323 --
1324 -- Name: traits; Type: TABLE; Schema: public; Owner: -
1325 --
1326
1327 CREATE TABLE public.traits (
1328     id bigint NOT NULL,
1329     uuid character varying(255) NOT NULL,
1330     owner_uuid character varying(255) NOT NULL,
1331     modified_by_client_uuid character varying(255),
1332     modified_by_user_uuid character varying(255),
1333     modified_at timestamp without time zone,
1334     name character varying(255),
1335     properties text,
1336     created_at timestamp without time zone NOT NULL,
1337     updated_at timestamp without time zone NOT NULL
1338 );
1339
1340
1341 --
1342 -- Name: traits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1343 --
1344
1345 CREATE SEQUENCE public.traits_id_seq
1346     START WITH 1
1347     INCREMENT BY 1
1348     NO MINVALUE
1349     NO MAXVALUE
1350     CACHE 1;
1351
1352
1353 --
1354 -- Name: traits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1355 --
1356
1357 ALTER SEQUENCE public.traits_id_seq OWNED BY public.traits.id;
1358
1359
1360 --
1361 -- Name: trashed_groups; Type: TABLE; Schema: public; Owner: -
1362 --
1363
1364 CREATE TABLE public.trashed_groups (
1365     group_uuid character varying,
1366     trash_at timestamp without time zone
1367 );
1368
1369
1370 --
1371 -- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1372 --
1373
1374 CREATE SEQUENCE public.users_id_seq
1375     START WITH 1
1376     INCREMENT BY 1
1377     NO MINVALUE
1378     NO MAXVALUE
1379     CACHE 1;
1380
1381
1382 --
1383 -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1384 --
1385
1386 ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
1387
1388
1389 --
1390 -- Name: virtual_machines; Type: TABLE; Schema: public; Owner: -
1391 --
1392
1393 CREATE TABLE public.virtual_machines (
1394     id bigint NOT NULL,
1395     uuid character varying(255) NOT NULL,
1396     owner_uuid character varying(255) NOT NULL,
1397     modified_by_client_uuid character varying(255),
1398     modified_by_user_uuid character varying(255),
1399     modified_at timestamp without time zone,
1400     hostname character varying(255),
1401     created_at timestamp without time zone NOT NULL,
1402     updated_at timestamp without time zone NOT NULL
1403 );
1404
1405
1406 --
1407 -- Name: virtual_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1408 --
1409
1410 CREATE SEQUENCE public.virtual_machines_id_seq
1411     START WITH 1
1412     INCREMENT BY 1
1413     NO MINVALUE
1414     NO MAXVALUE
1415     CACHE 1;
1416
1417
1418 --
1419 -- Name: virtual_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1420 --
1421
1422 ALTER SEQUENCE public.virtual_machines_id_seq OWNED BY public.virtual_machines.id;
1423
1424
1425 --
1426 -- Name: workflows; Type: TABLE; Schema: public; Owner: -
1427 --
1428
1429 CREATE TABLE public.workflows (
1430     id bigint NOT NULL,
1431     uuid character varying(255),
1432     owner_uuid character varying(255),
1433     created_at timestamp without time zone NOT NULL,
1434     modified_at timestamp without time zone,
1435     modified_by_client_uuid character varying(255),
1436     modified_by_user_uuid character varying(255),
1437     name character varying(255),
1438     description text,
1439     definition text,
1440     updated_at timestamp without time zone NOT NULL
1441 );
1442
1443
1444 --
1445 -- Name: workflows_id_seq; Type: SEQUENCE; Schema: public; Owner: -
1446 --
1447
1448 CREATE SEQUENCE public.workflows_id_seq
1449     START WITH 1
1450     INCREMENT BY 1
1451     NO MINVALUE
1452     NO MAXVALUE
1453     CACHE 1;
1454
1455
1456 --
1457 -- Name: workflows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
1458 --
1459
1460 ALTER SEQUENCE public.workflows_id_seq OWNED BY public.workflows.id;
1461
1462
1463 --
1464 -- Name: api_client_authorizations id; Type: DEFAULT; Schema: public; Owner: -
1465 --
1466
1467 ALTER TABLE ONLY public.api_client_authorizations ALTER COLUMN id SET DEFAULT nextval('public.api_client_authorizations_id_seq'::regclass);
1468
1469
1470 --
1471 -- Name: api_clients id; Type: DEFAULT; Schema: public; Owner: -
1472 --
1473
1474 ALTER TABLE ONLY public.api_clients ALTER COLUMN id SET DEFAULT nextval('public.api_clients_id_seq'::regclass);
1475
1476
1477 --
1478 -- Name: authorized_keys id; Type: DEFAULT; Schema: public; Owner: -
1479 --
1480
1481 ALTER TABLE ONLY public.authorized_keys ALTER COLUMN id SET DEFAULT nextval('public.authorized_keys_id_seq'::regclass);
1482
1483
1484 --
1485 -- Name: collections id; Type: DEFAULT; Schema: public; Owner: -
1486 --
1487
1488 ALTER TABLE ONLY public.collections ALTER COLUMN id SET DEFAULT nextval('public.collections_id_seq'::regclass);
1489
1490
1491 --
1492 -- Name: container_requests id; Type: DEFAULT; Schema: public; Owner: -
1493 --
1494
1495 ALTER TABLE ONLY public.container_requests ALTER COLUMN id SET DEFAULT nextval('public.container_requests_id_seq'::regclass);
1496
1497
1498 --
1499 -- Name: containers id; Type: DEFAULT; Schema: public; Owner: -
1500 --
1501
1502 ALTER TABLE ONLY public.containers ALTER COLUMN id SET DEFAULT nextval('public.containers_id_seq'::regclass);
1503
1504
1505 --
1506 -- Name: groups id; Type: DEFAULT; Schema: public; Owner: -
1507 --
1508
1509 ALTER TABLE ONLY public.groups ALTER COLUMN id SET DEFAULT nextval('public.groups_id_seq'::regclass);
1510
1511
1512 --
1513 -- Name: humans id; Type: DEFAULT; Schema: public; Owner: -
1514 --
1515
1516 ALTER TABLE ONLY public.humans ALTER COLUMN id SET DEFAULT nextval('public.humans_id_seq'::regclass);
1517
1518
1519 --
1520 -- Name: job_tasks id; Type: DEFAULT; Schema: public; Owner: -
1521 --
1522
1523 ALTER TABLE ONLY public.job_tasks ALTER COLUMN id SET DEFAULT nextval('public.job_tasks_id_seq'::regclass);
1524
1525
1526 --
1527 -- Name: jobs id; Type: DEFAULT; Schema: public; Owner: -
1528 --
1529
1530 ALTER TABLE ONLY public.jobs ALTER COLUMN id SET DEFAULT nextval('public.jobs_id_seq'::regclass);
1531
1532
1533 --
1534 -- Name: keep_disks id; Type: DEFAULT; Schema: public; Owner: -
1535 --
1536
1537 ALTER TABLE ONLY public.keep_disks ALTER COLUMN id SET DEFAULT nextval('public.keep_disks_id_seq'::regclass);
1538
1539
1540 --
1541 -- Name: keep_services id; Type: DEFAULT; Schema: public; Owner: -
1542 --
1543
1544 ALTER TABLE ONLY public.keep_services ALTER COLUMN id SET DEFAULT nextval('public.keep_services_id_seq'::regclass);
1545
1546
1547 --
1548 -- Name: links id; Type: DEFAULT; Schema: public; Owner: -
1549 --
1550
1551 ALTER TABLE ONLY public.links ALTER COLUMN id SET DEFAULT nextval('public.links_id_seq'::regclass);
1552
1553
1554 --
1555 -- Name: logs id; Type: DEFAULT; Schema: public; Owner: -
1556 --
1557
1558 ALTER TABLE ONLY public.logs ALTER COLUMN id SET DEFAULT nextval('public.logs_id_seq'::regclass);
1559
1560
1561 --
1562 -- Name: nodes id; Type: DEFAULT; Schema: public; Owner: -
1563 --
1564
1565 ALTER TABLE ONLY public.nodes ALTER COLUMN id SET DEFAULT nextval('public.nodes_id_seq'::regclass);
1566
1567
1568 --
1569 -- Name: pipeline_instances id; Type: DEFAULT; Schema: public; Owner: -
1570 --
1571
1572 ALTER TABLE ONLY public.pipeline_instances ALTER COLUMN id SET DEFAULT nextval('public.pipeline_instances_id_seq'::regclass);
1573
1574
1575 --
1576 -- Name: pipeline_templates id; Type: DEFAULT; Schema: public; Owner: -
1577 --
1578
1579 ALTER TABLE ONLY public.pipeline_templates ALTER COLUMN id SET DEFAULT nextval('public.pipeline_templates_id_seq'::regclass);
1580
1581
1582 --
1583 -- Name: repositories id; Type: DEFAULT; Schema: public; Owner: -
1584 --
1585
1586 ALTER TABLE ONLY public.repositories ALTER COLUMN id SET DEFAULT nextval('public.repositories_id_seq'::regclass);
1587
1588
1589 --
1590 -- Name: specimens id; Type: DEFAULT; Schema: public; Owner: -
1591 --
1592
1593 ALTER TABLE ONLY public.specimens ALTER COLUMN id SET DEFAULT nextval('public.specimens_id_seq'::regclass);
1594
1595
1596 --
1597 -- Name: traits id; Type: DEFAULT; Schema: public; Owner: -
1598 --
1599
1600 ALTER TABLE ONLY public.traits ALTER COLUMN id SET DEFAULT nextval('public.traits_id_seq'::regclass);
1601
1602
1603 --
1604 -- Name: users id; Type: DEFAULT; Schema: public; Owner: -
1605 --
1606
1607 ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
1608
1609
1610 --
1611 -- Name: virtual_machines id; Type: DEFAULT; Schema: public; Owner: -
1612 --
1613
1614 ALTER TABLE ONLY public.virtual_machines ALTER COLUMN id SET DEFAULT nextval('public.virtual_machines_id_seq'::regclass);
1615
1616
1617 --
1618 -- Name: workflows id; Type: DEFAULT; Schema: public; Owner: -
1619 --
1620
1621 ALTER TABLE ONLY public.workflows ALTER COLUMN id SET DEFAULT nextval('public.workflows_id_seq'::regclass);
1622
1623
1624 --
1625 -- Name: api_client_authorizations api_client_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1626 --
1627
1628 ALTER TABLE ONLY public.api_client_authorizations
1629     ADD CONSTRAINT api_client_authorizations_pkey PRIMARY KEY (id);
1630
1631
1632 --
1633 -- Name: api_clients api_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1634 --
1635
1636 ALTER TABLE ONLY public.api_clients
1637     ADD CONSTRAINT api_clients_pkey PRIMARY KEY (id);
1638
1639
1640 --
1641 -- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1642 --
1643
1644 ALTER TABLE ONLY public.ar_internal_metadata
1645     ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key);
1646
1647
1648 --
1649 -- Name: authorized_keys authorized_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1650 --
1651
1652 ALTER TABLE ONLY public.authorized_keys
1653     ADD CONSTRAINT authorized_keys_pkey PRIMARY KEY (id);
1654
1655
1656 --
1657 -- Name: collections collections_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1658 --
1659
1660 ALTER TABLE ONLY public.collections
1661     ADD CONSTRAINT collections_pkey PRIMARY KEY (id);
1662
1663
1664 --
1665 -- Name: container_requests container_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1666 --
1667
1668 ALTER TABLE ONLY public.container_requests
1669     ADD CONSTRAINT container_requests_pkey PRIMARY KEY (id);
1670
1671
1672 --
1673 -- Name: containers containers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1674 --
1675
1676 ALTER TABLE ONLY public.containers
1677     ADD CONSTRAINT containers_pkey PRIMARY KEY (id);
1678
1679
1680 --
1681 -- Name: groups groups_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1682 --
1683
1684 ALTER TABLE ONLY public.groups
1685     ADD CONSTRAINT groups_pkey PRIMARY KEY (id);
1686
1687
1688 --
1689 -- Name: humans humans_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1690 --
1691
1692 ALTER TABLE ONLY public.humans
1693     ADD CONSTRAINT humans_pkey PRIMARY KEY (id);
1694
1695
1696 --
1697 -- Name: job_tasks job_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1698 --
1699
1700 ALTER TABLE ONLY public.job_tasks
1701     ADD CONSTRAINT job_tasks_pkey PRIMARY KEY (id);
1702
1703
1704 --
1705 -- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1706 --
1707
1708 ALTER TABLE ONLY public.jobs
1709     ADD CONSTRAINT jobs_pkey PRIMARY KEY (id);
1710
1711
1712 --
1713 -- Name: keep_disks keep_disks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1714 --
1715
1716 ALTER TABLE ONLY public.keep_disks
1717     ADD CONSTRAINT keep_disks_pkey PRIMARY KEY (id);
1718
1719
1720 --
1721 -- Name: keep_services keep_services_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1722 --
1723
1724 ALTER TABLE ONLY public.keep_services
1725     ADD CONSTRAINT keep_services_pkey PRIMARY KEY (id);
1726
1727
1728 --
1729 -- Name: links links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1730 --
1731
1732 ALTER TABLE ONLY public.links
1733     ADD CONSTRAINT links_pkey PRIMARY KEY (id);
1734
1735
1736 --
1737 -- Name: logs logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1738 --
1739
1740 ALTER TABLE ONLY public.logs
1741     ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
1742
1743
1744 --
1745 -- Name: nodes nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1746 --
1747
1748 ALTER TABLE ONLY public.nodes
1749     ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
1750
1751
1752 --
1753 -- Name: pipeline_instances pipeline_instances_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1754 --
1755
1756 ALTER TABLE ONLY public.pipeline_instances
1757     ADD CONSTRAINT pipeline_instances_pkey PRIMARY KEY (id);
1758
1759
1760 --
1761 -- Name: pipeline_templates pipeline_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1762 --
1763
1764 ALTER TABLE ONLY public.pipeline_templates
1765     ADD CONSTRAINT pipeline_templates_pkey PRIMARY KEY (id);
1766
1767
1768 --
1769 -- Name: repositories repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1770 --
1771
1772 ALTER TABLE ONLY public.repositories
1773     ADD CONSTRAINT repositories_pkey PRIMARY KEY (id);
1774
1775
1776 --
1777 -- Name: specimens specimens_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1778 --
1779
1780 ALTER TABLE ONLY public.specimens
1781     ADD CONSTRAINT specimens_pkey PRIMARY KEY (id);
1782
1783
1784 --
1785 -- Name: traits traits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1786 --
1787
1788 ALTER TABLE ONLY public.traits
1789     ADD CONSTRAINT traits_pkey PRIMARY KEY (id);
1790
1791
1792 --
1793 -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1794 --
1795
1796 ALTER TABLE ONLY public.users
1797     ADD CONSTRAINT users_pkey PRIMARY KEY (id);
1798
1799
1800 --
1801 -- Name: virtual_machines virtual_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1802 --
1803
1804 ALTER TABLE ONLY public.virtual_machines
1805     ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id);
1806
1807
1808 --
1809 -- Name: workflows workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1810 --
1811
1812 ALTER TABLE ONLY public.workflows
1813     ADD CONSTRAINT workflows_pkey PRIMARY KEY (id);
1814
1815
1816 --
1817 -- Name: api_client_authorizations_search_index; Type: INDEX; Schema: public; Owner: -
1818 --
1819
1820 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);
1821
1822
1823 --
1824 -- Name: api_clients_search_index; Type: INDEX; Schema: public; Owner: -
1825 --
1826
1827 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);
1828
1829
1830 --
1831 -- Name: authorized_keys_search_index; Type: INDEX; Schema: public; Owner: -
1832 --
1833
1834 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);
1835
1836
1837 --
1838 -- Name: collection_index_on_properties; Type: INDEX; Schema: public; Owner: -
1839 --
1840
1841 CREATE INDEX collection_index_on_properties ON public.collections USING gin (properties);
1842
1843
1844 --
1845 -- Name: collections_search_index; Type: INDEX; Schema: public; Owner: -
1846 --
1847
1848 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);
1849
1850
1851 --
1852 -- Name: collections_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
1853 --
1854
1855 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);
1856
1857
1858 --
1859 -- Name: container_requests_index_on_properties; Type: INDEX; Schema: public; Owner: -
1860 --
1861
1862 CREATE INDEX container_requests_index_on_properties ON public.container_requests USING gin (properties);
1863
1864
1865 --
1866 -- Name: container_requests_search_index; Type: INDEX; Schema: public; Owner: -
1867 --
1868
1869 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);
1870
1871
1872 --
1873 -- Name: container_requests_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
1874 --
1875
1876 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) || ' '::text) || COALESCE((output_properties)::text, ''::text))) public.gin_trgm_ops);
1877
1878
1879 --
1880 -- Name: containers_search_index; Type: INDEX; Schema: public; Owner: -
1881 --
1882
1883 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);
1884
1885
1886 --
1887 -- Name: group_index_on_properties; Type: INDEX; Schema: public; Owner: -
1888 --
1889
1890 CREATE INDEX group_index_on_properties ON public.groups USING gin (properties);
1891
1892
1893 --
1894 -- Name: groups_search_index; Type: INDEX; Schema: public; Owner: -
1895 --
1896
1897 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);
1898
1899
1900 --
1901 -- Name: groups_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
1902 --
1903
1904 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);
1905
1906
1907 --
1908 -- Name: humans_search_index; Type: INDEX; Schema: public; Owner: -
1909 --
1910
1911 CREATE INDEX humans_search_index ON public.humans USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid);
1912
1913
1914 --
1915 -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -
1916 --
1917
1918 CREATE INDEX index_api_client_authorizations_on_api_client_id ON public.api_client_authorizations USING btree (api_client_id);
1919
1920
1921 --
1922 -- Name: index_api_client_authorizations_on_api_token; Type: INDEX; Schema: public; Owner: -
1923 --
1924
1925 CREATE UNIQUE INDEX index_api_client_authorizations_on_api_token ON public.api_client_authorizations USING btree (api_token);
1926
1927
1928 --
1929 -- Name: index_api_client_authorizations_on_expires_at; Type: INDEX; Schema: public; Owner: -
1930 --
1931
1932 CREATE INDEX index_api_client_authorizations_on_expires_at ON public.api_client_authorizations USING btree (expires_at);
1933
1934
1935 --
1936 -- Name: index_api_client_authorizations_on_user_id; Type: INDEX; Schema: public; Owner: -
1937 --
1938
1939 CREATE INDEX index_api_client_authorizations_on_user_id ON public.api_client_authorizations USING btree (user_id);
1940
1941
1942 --
1943 -- Name: index_api_client_authorizations_on_uuid; Type: INDEX; Schema: public; Owner: -
1944 --
1945
1946 CREATE UNIQUE INDEX index_api_client_authorizations_on_uuid ON public.api_client_authorizations USING btree (uuid);
1947
1948
1949 --
1950 -- Name: index_api_clients_on_created_at; Type: INDEX; Schema: public; Owner: -
1951 --
1952
1953 CREATE INDEX index_api_clients_on_created_at ON public.api_clients USING btree (created_at);
1954
1955
1956 --
1957 -- Name: index_api_clients_on_modified_at; Type: INDEX; Schema: public; Owner: -
1958 --
1959
1960 CREATE INDEX index_api_clients_on_modified_at ON public.api_clients USING btree (modified_at);
1961
1962
1963 --
1964 -- Name: index_api_clients_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1965 --
1966
1967 CREATE INDEX index_api_clients_on_owner_uuid ON public.api_clients USING btree (owner_uuid);
1968
1969
1970 --
1971 -- Name: index_api_clients_on_uuid; Type: INDEX; Schema: public; Owner: -
1972 --
1973
1974 CREATE UNIQUE INDEX index_api_clients_on_uuid ON public.api_clients USING btree (uuid);
1975
1976
1977 --
1978 -- Name: index_authkeys_on_user_and_expires_at; Type: INDEX; Schema: public; Owner: -
1979 --
1980
1981 CREATE INDEX index_authkeys_on_user_and_expires_at ON public.authorized_keys USING btree (authorized_user_uuid, expires_at);
1982
1983
1984 --
1985 -- Name: index_authorized_keys_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
1986 --
1987
1988 CREATE INDEX index_authorized_keys_on_owner_uuid ON public.authorized_keys USING btree (owner_uuid);
1989
1990
1991 --
1992 -- Name: index_authorized_keys_on_uuid; Type: INDEX; Schema: public; Owner: -
1993 --
1994
1995 CREATE UNIQUE INDEX index_authorized_keys_on_uuid ON public.authorized_keys USING btree (uuid);
1996
1997
1998 --
1999 -- Name: index_collections_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2000 --
2001
2002 CREATE INDEX index_collections_on_created_at_and_uuid ON public.collections USING btree (created_at, uuid);
2003
2004
2005 --
2006 -- Name: index_collections_on_current_version_uuid_and_version; Type: INDEX; Schema: public; Owner: -
2007 --
2008
2009 CREATE UNIQUE INDEX index_collections_on_current_version_uuid_and_version ON public.collections USING btree (current_version_uuid, version);
2010
2011
2012 --
2013 -- Name: index_collections_on_delete_at; Type: INDEX; Schema: public; Owner: -
2014 --
2015
2016 CREATE INDEX index_collections_on_delete_at ON public.collections USING btree (delete_at);
2017
2018
2019 --
2020 -- Name: index_collections_on_is_trashed; Type: INDEX; Schema: public; Owner: -
2021 --
2022
2023 CREATE INDEX index_collections_on_is_trashed ON public.collections USING btree (is_trashed);
2024
2025
2026 --
2027 -- Name: index_collections_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2028 --
2029
2030 CREATE INDEX index_collections_on_modified_at_and_uuid ON public.collections USING btree (modified_at, uuid);
2031
2032
2033 --
2034 -- Name: index_collections_on_name; Type: INDEX; Schema: public; Owner: -
2035 --
2036
2037 CREATE INDEX index_collections_on_name ON public.collections USING gin (name public.gin_trgm_ops);
2038
2039
2040 --
2041 -- Name: index_collections_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2042 --
2043
2044 CREATE INDEX index_collections_on_owner_uuid ON public.collections USING btree (owner_uuid);
2045
2046
2047 --
2048 -- Name: index_collections_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
2049 --
2050
2051 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));
2052
2053
2054 --
2055 -- Name: index_collections_on_portable_data_hash_and_trash_at; Type: INDEX; Schema: public; Owner: -
2056 --
2057
2058 CREATE INDEX index_collections_on_portable_data_hash_and_trash_at ON public.collections USING btree (portable_data_hash, trash_at);
2059
2060
2061 --
2062 -- Name: index_collections_on_trash_at; Type: INDEX; Schema: public; Owner: -
2063 --
2064
2065 CREATE INDEX index_collections_on_trash_at ON public.collections USING btree (trash_at);
2066
2067
2068 --
2069 -- Name: index_collections_on_uuid; Type: INDEX; Schema: public; Owner: -
2070 --
2071
2072 CREATE UNIQUE INDEX index_collections_on_uuid ON public.collections USING btree (uuid);
2073
2074
2075 --
2076 -- Name: index_container_requests_on_container_uuid; Type: INDEX; Schema: public; Owner: -
2077 --
2078
2079 CREATE INDEX index_container_requests_on_container_uuid ON public.container_requests USING btree (container_uuid);
2080
2081
2082 --
2083 -- Name: index_container_requests_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2084 --
2085
2086 CREATE INDEX index_container_requests_on_created_at_and_uuid ON public.container_requests USING btree (created_at, uuid);
2087
2088
2089 --
2090 -- Name: index_container_requests_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2091 --
2092
2093 CREATE INDEX index_container_requests_on_modified_at_and_uuid ON public.container_requests USING btree (modified_at, uuid);
2094
2095
2096 --
2097 -- Name: index_container_requests_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2098 --
2099
2100 CREATE INDEX index_container_requests_on_owner_uuid ON public.container_requests USING btree (owner_uuid);
2101
2102
2103 --
2104 -- Name: index_container_requests_on_requesting_container_uuid; Type: INDEX; Schema: public; Owner: -
2105 --
2106
2107 CREATE INDEX index_container_requests_on_requesting_container_uuid ON public.container_requests USING btree (requesting_container_uuid);
2108
2109
2110 --
2111 -- Name: index_container_requests_on_uuid; Type: INDEX; Schema: public; Owner: -
2112 --
2113
2114 CREATE UNIQUE INDEX index_container_requests_on_uuid ON public.container_requests USING btree (uuid);
2115
2116
2117 --
2118 -- Name: index_containers_on_auth_uuid; Type: INDEX; Schema: public; Owner: -
2119 --
2120
2121 CREATE INDEX index_containers_on_auth_uuid ON public.containers USING btree (auth_uuid);
2122
2123
2124 --
2125 -- Name: index_containers_on_locked_by_uuid_and_priority; Type: INDEX; Schema: public; Owner: -
2126 --
2127
2128 CREATE INDEX index_containers_on_locked_by_uuid_and_priority ON public.containers USING btree (locked_by_uuid, priority);
2129
2130
2131 --
2132 -- Name: index_containers_on_locked_by_uuid_and_uuid; Type: INDEX; Schema: public; Owner: -
2133 --
2134
2135 CREATE INDEX index_containers_on_locked_by_uuid_and_uuid ON public.containers USING btree (locked_by_uuid, uuid);
2136
2137
2138 --
2139 -- Name: index_containers_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2140 --
2141
2142 CREATE INDEX index_containers_on_modified_at_uuid ON public.containers USING btree (modified_at DESC, uuid);
2143
2144
2145 --
2146 -- Name: index_containers_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2147 --
2148
2149 CREATE INDEX index_containers_on_owner_uuid ON public.containers USING btree (owner_uuid);
2150
2151
2152 --
2153 -- Name: index_containers_on_queued_state; Type: INDEX; Schema: public; Owner: -
2154 --
2155
2156 CREATE INDEX index_containers_on_queued_state ON public.containers USING btree (state, ((priority > 0)));
2157
2158
2159 --
2160 -- Name: index_containers_on_reuse_columns; Type: INDEX; Schema: public; Owner: -
2161 --
2162
2163 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));
2164
2165
2166 --
2167 -- Name: index_containers_on_runtime_status; Type: INDEX; Schema: public; Owner: -
2168 --
2169
2170 CREATE INDEX index_containers_on_runtime_status ON public.containers USING gin (runtime_status);
2171
2172
2173 --
2174 -- Name: index_containers_on_secret_mounts_md5; Type: INDEX; Schema: public; Owner: -
2175 --
2176
2177 CREATE INDEX index_containers_on_secret_mounts_md5 ON public.containers USING btree (secret_mounts_md5);
2178
2179
2180 --
2181 -- Name: index_containers_on_uuid; Type: INDEX; Schema: public; Owner: -
2182 --
2183
2184 CREATE UNIQUE INDEX index_containers_on_uuid ON public.containers USING btree (uuid);
2185
2186
2187 --
2188 -- Name: index_frozen_groups_on_uuid; Type: INDEX; Schema: public; Owner: -
2189 --
2190
2191 CREATE UNIQUE INDEX index_frozen_groups_on_uuid ON public.frozen_groups USING btree (uuid);
2192
2193
2194 --
2195 -- Name: index_groups_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2196 --
2197
2198 CREATE INDEX index_groups_on_created_at_and_uuid ON public.groups USING btree (created_at, uuid);
2199
2200
2201 --
2202 -- Name: index_groups_on_delete_at; Type: INDEX; Schema: public; Owner: -
2203 --
2204
2205 CREATE INDEX index_groups_on_delete_at ON public.groups USING btree (delete_at);
2206
2207
2208 --
2209 -- Name: index_groups_on_group_class; Type: INDEX; Schema: public; Owner: -
2210 --
2211
2212 CREATE INDEX index_groups_on_group_class ON public.groups USING btree (group_class);
2213
2214
2215 --
2216 -- Name: index_groups_on_is_trashed; Type: INDEX; Schema: public; Owner: -
2217 --
2218
2219 CREATE INDEX index_groups_on_is_trashed ON public.groups USING btree (is_trashed);
2220
2221
2222 --
2223 -- Name: index_groups_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2224 --
2225
2226 CREATE INDEX index_groups_on_modified_at_and_uuid ON public.groups USING btree (modified_at, uuid);
2227
2228
2229 --
2230 -- Name: index_groups_on_name; Type: INDEX; Schema: public; Owner: -
2231 --
2232
2233 CREATE INDEX index_groups_on_name ON public.groups USING gin (name public.gin_trgm_ops);
2234
2235
2236 --
2237 -- Name: index_groups_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2238 --
2239
2240 CREATE INDEX index_groups_on_owner_uuid ON public.groups USING btree (owner_uuid);
2241
2242
2243 --
2244 -- Name: index_groups_on_owner_uuid_and_name; Type: INDEX; Schema: public; Owner: -
2245 --
2246
2247 CREATE UNIQUE INDEX index_groups_on_owner_uuid_and_name ON public.groups USING btree (owner_uuid, name) WHERE (is_trashed = false);
2248
2249
2250 --
2251 -- Name: index_groups_on_trash_at; Type: INDEX; Schema: public; Owner: -
2252 --
2253
2254 CREATE INDEX index_groups_on_trash_at ON public.groups USING btree (trash_at);
2255
2256
2257 --
2258 -- Name: index_groups_on_uuid; Type: INDEX; Schema: public; Owner: -
2259 --
2260
2261 CREATE UNIQUE INDEX index_groups_on_uuid ON public.groups USING btree (uuid);
2262
2263
2264 --
2265 -- Name: index_humans_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2266 --
2267
2268 CREATE INDEX index_humans_on_owner_uuid ON public.humans USING btree (owner_uuid);
2269
2270
2271 --
2272 -- Name: index_humans_on_uuid; Type: INDEX; Schema: public; Owner: -
2273 --
2274
2275 CREATE UNIQUE INDEX index_humans_on_uuid ON public.humans USING btree (uuid);
2276
2277
2278 --
2279 -- Name: index_job_tasks_on_created_at; Type: INDEX; Schema: public; Owner: -
2280 --
2281
2282 CREATE INDEX index_job_tasks_on_created_at ON public.job_tasks USING btree (created_at);
2283
2284
2285 --
2286 -- Name: index_job_tasks_on_created_by_job_task_uuid; Type: INDEX; Schema: public; Owner: -
2287 --
2288
2289 CREATE INDEX index_job_tasks_on_created_by_job_task_uuid ON public.job_tasks USING btree (created_by_job_task_uuid);
2290
2291
2292 --
2293 -- Name: index_job_tasks_on_job_uuid; Type: INDEX; Schema: public; Owner: -
2294 --
2295
2296 CREATE INDEX index_job_tasks_on_job_uuid ON public.job_tasks USING btree (job_uuid);
2297
2298
2299 --
2300 -- Name: index_job_tasks_on_modified_at; Type: INDEX; Schema: public; Owner: -
2301 --
2302
2303 CREATE INDEX index_job_tasks_on_modified_at ON public.job_tasks USING btree (modified_at);
2304
2305
2306 --
2307 -- Name: index_job_tasks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2308 --
2309
2310 CREATE INDEX index_job_tasks_on_owner_uuid ON public.job_tasks USING btree (owner_uuid);
2311
2312
2313 --
2314 -- Name: index_job_tasks_on_sequence; Type: INDEX; Schema: public; Owner: -
2315 --
2316
2317 CREATE INDEX index_job_tasks_on_sequence ON public.job_tasks USING btree (sequence);
2318
2319
2320 --
2321 -- Name: index_job_tasks_on_success; Type: INDEX; Schema: public; Owner: -
2322 --
2323
2324 CREATE INDEX index_job_tasks_on_success ON public.job_tasks USING btree (success);
2325
2326
2327 --
2328 -- Name: index_job_tasks_on_uuid; Type: INDEX; Schema: public; Owner: -
2329 --
2330
2331 CREATE UNIQUE INDEX index_job_tasks_on_uuid ON public.job_tasks USING btree (uuid);
2332
2333
2334 --
2335 -- Name: index_jobs_on_created_at; Type: INDEX; Schema: public; Owner: -
2336 --
2337
2338 CREATE INDEX index_jobs_on_created_at ON public.jobs USING btree (created_at);
2339
2340
2341 --
2342 -- Name: index_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -
2343 --
2344
2345 CREATE INDEX index_jobs_on_finished_at ON public.jobs USING btree (finished_at);
2346
2347
2348 --
2349 -- Name: index_jobs_on_modified_at; Type: INDEX; Schema: public; Owner: -
2350 --
2351
2352 CREATE INDEX index_jobs_on_modified_at ON public.jobs USING btree (modified_at);
2353
2354
2355 --
2356 -- Name: index_jobs_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2357 --
2358
2359 CREATE INDEX index_jobs_on_modified_at_uuid ON public.jobs USING btree (modified_at DESC, uuid);
2360
2361
2362 --
2363 -- Name: index_jobs_on_output; Type: INDEX; Schema: public; Owner: -
2364 --
2365
2366 CREATE INDEX index_jobs_on_output ON public.jobs USING btree (output);
2367
2368
2369 --
2370 -- Name: index_jobs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2371 --
2372
2373 CREATE INDEX index_jobs_on_owner_uuid ON public.jobs USING btree (owner_uuid);
2374
2375
2376 --
2377 -- Name: index_jobs_on_script; Type: INDEX; Schema: public; Owner: -
2378 --
2379
2380 CREATE INDEX index_jobs_on_script ON public.jobs USING btree (script);
2381
2382
2383 --
2384 -- Name: index_jobs_on_script_parameters_digest; Type: INDEX; Schema: public; Owner: -
2385 --
2386
2387 CREATE INDEX index_jobs_on_script_parameters_digest ON public.jobs USING btree (script_parameters_digest);
2388
2389
2390 --
2391 -- Name: index_jobs_on_started_at; Type: INDEX; Schema: public; Owner: -
2392 --
2393
2394 CREATE INDEX index_jobs_on_started_at ON public.jobs USING btree (started_at);
2395
2396
2397 --
2398 -- Name: index_jobs_on_submit_id; Type: INDEX; Schema: public; Owner: -
2399 --
2400
2401 CREATE UNIQUE INDEX index_jobs_on_submit_id ON public.jobs USING btree (submit_id);
2402
2403
2404 --
2405 -- Name: index_jobs_on_uuid; Type: INDEX; Schema: public; Owner: -
2406 --
2407
2408 CREATE UNIQUE INDEX index_jobs_on_uuid ON public.jobs USING btree (uuid);
2409
2410
2411 --
2412 -- Name: index_keep_disks_on_filesystem_uuid; Type: INDEX; Schema: public; Owner: -
2413 --
2414
2415 CREATE INDEX index_keep_disks_on_filesystem_uuid ON public.keep_disks USING btree (filesystem_uuid);
2416
2417
2418 --
2419 -- Name: index_keep_disks_on_last_ping_at; Type: INDEX; Schema: public; Owner: -
2420 --
2421
2422 CREATE INDEX index_keep_disks_on_last_ping_at ON public.keep_disks USING btree (last_ping_at);
2423
2424
2425 --
2426 -- Name: index_keep_disks_on_node_uuid; Type: INDEX; Schema: public; Owner: -
2427 --
2428
2429 CREATE INDEX index_keep_disks_on_node_uuid ON public.keep_disks USING btree (node_uuid);
2430
2431
2432 --
2433 -- Name: index_keep_disks_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2434 --
2435
2436 CREATE INDEX index_keep_disks_on_owner_uuid ON public.keep_disks USING btree (owner_uuid);
2437
2438
2439 --
2440 -- Name: index_keep_disks_on_uuid; Type: INDEX; Schema: public; Owner: -
2441 --
2442
2443 CREATE UNIQUE INDEX index_keep_disks_on_uuid ON public.keep_disks USING btree (uuid);
2444
2445
2446 --
2447 -- Name: index_keep_services_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2448 --
2449
2450 CREATE INDEX index_keep_services_on_owner_uuid ON public.keep_services USING btree (owner_uuid);
2451
2452
2453 --
2454 -- Name: index_keep_services_on_uuid; Type: INDEX; Schema: public; Owner: -
2455 --
2456
2457 CREATE UNIQUE INDEX index_keep_services_on_uuid ON public.keep_services USING btree (uuid);
2458
2459
2460 --
2461 -- Name: index_links_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2462 --
2463
2464 CREATE INDEX index_links_on_created_at_and_uuid ON public.links USING btree (created_at, uuid);
2465
2466
2467 --
2468 -- Name: index_links_on_head_uuid; Type: INDEX; Schema: public; Owner: -
2469 --
2470
2471 CREATE INDEX index_links_on_head_uuid ON public.links USING btree (head_uuid);
2472
2473
2474 --
2475 -- Name: index_links_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2476 --
2477
2478 CREATE INDEX index_links_on_modified_at_and_uuid ON public.links USING btree (modified_at, uuid);
2479
2480
2481 --
2482 -- Name: index_links_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2483 --
2484
2485 CREATE INDEX index_links_on_owner_uuid ON public.links USING btree (owner_uuid);
2486
2487
2488 --
2489 -- Name: index_links_on_substring_head_uuid; Type: INDEX; Schema: public; Owner: -
2490 --
2491
2492 CREATE INDEX index_links_on_substring_head_uuid ON public.links USING btree ("substring"((head_uuid)::text, 7, 5));
2493
2494
2495 --
2496 -- Name: index_links_on_substring_tail_uuid; Type: INDEX; Schema: public; Owner: -
2497 --
2498
2499 CREATE INDEX index_links_on_substring_tail_uuid ON public.links USING btree ("substring"((tail_uuid)::text, 7, 5));
2500
2501
2502 --
2503 -- Name: index_links_on_tail_uuid; Type: INDEX; Schema: public; Owner: -
2504 --
2505
2506 CREATE INDEX index_links_on_tail_uuid ON public.links USING btree (tail_uuid);
2507
2508
2509 --
2510 -- Name: index_links_on_uuid; Type: INDEX; Schema: public; Owner: -
2511 --
2512
2513 CREATE UNIQUE INDEX index_links_on_uuid ON public.links USING btree (uuid);
2514
2515
2516 --
2517 -- Name: index_logs_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2518 --
2519
2520 CREATE INDEX index_logs_on_created_at_and_uuid ON public.logs USING btree (created_at, uuid);
2521
2522
2523 --
2524 -- Name: index_logs_on_event_at; Type: INDEX; Schema: public; Owner: -
2525 --
2526
2527 CREATE INDEX index_logs_on_event_at ON public.logs USING btree (event_at);
2528
2529
2530 --
2531 -- Name: index_logs_on_event_type; Type: INDEX; Schema: public; Owner: -
2532 --
2533
2534 CREATE INDEX index_logs_on_event_type ON public.logs USING btree (event_type);
2535
2536
2537 --
2538 -- Name: index_logs_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2539 --
2540
2541 CREATE INDEX index_logs_on_modified_at_and_uuid ON public.logs USING btree (modified_at, uuid);
2542
2543
2544 --
2545 -- Name: index_logs_on_object_owner_uuid; Type: INDEX; Schema: public; Owner: -
2546 --
2547
2548 CREATE INDEX index_logs_on_object_owner_uuid ON public.logs USING btree (object_owner_uuid);
2549
2550
2551 --
2552 -- Name: index_logs_on_object_uuid; Type: INDEX; Schema: public; Owner: -
2553 --
2554
2555 CREATE INDEX index_logs_on_object_uuid ON public.logs USING btree (object_uuid);
2556
2557
2558 --
2559 -- Name: index_logs_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2560 --
2561
2562 CREATE INDEX index_logs_on_owner_uuid ON public.logs USING btree (owner_uuid);
2563
2564
2565 --
2566 -- Name: index_logs_on_summary; Type: INDEX; Schema: public; Owner: -
2567 --
2568
2569 CREATE INDEX index_logs_on_summary ON public.logs USING btree (summary);
2570
2571
2572 --
2573 -- Name: index_logs_on_uuid; Type: INDEX; Schema: public; Owner: -
2574 --
2575
2576 CREATE UNIQUE INDEX index_logs_on_uuid ON public.logs USING btree (uuid);
2577
2578
2579 --
2580 -- Name: index_nodes_on_created_at; Type: INDEX; Schema: public; Owner: -
2581 --
2582
2583 CREATE INDEX index_nodes_on_created_at ON public.nodes USING btree (created_at);
2584
2585
2586 --
2587 -- Name: index_nodes_on_hostname; Type: INDEX; Schema: public; Owner: -
2588 --
2589
2590 CREATE INDEX index_nodes_on_hostname ON public.nodes USING btree (hostname);
2591
2592
2593 --
2594 -- Name: index_nodes_on_modified_at; Type: INDEX; Schema: public; Owner: -
2595 --
2596
2597 CREATE INDEX index_nodes_on_modified_at ON public.nodes USING btree (modified_at);
2598
2599
2600 --
2601 -- Name: index_nodes_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2602 --
2603
2604 CREATE INDEX index_nodes_on_owner_uuid ON public.nodes USING btree (owner_uuid);
2605
2606
2607 --
2608 -- Name: index_nodes_on_slot_number; Type: INDEX; Schema: public; Owner: -
2609 --
2610
2611 CREATE UNIQUE INDEX index_nodes_on_slot_number ON public.nodes USING btree (slot_number);
2612
2613
2614 --
2615 -- Name: index_nodes_on_uuid; Type: INDEX; Schema: public; Owner: -
2616 --
2617
2618 CREATE UNIQUE INDEX index_nodes_on_uuid ON public.nodes USING btree (uuid);
2619
2620
2621 --
2622 -- Name: index_pipeline_instances_on_created_at; Type: INDEX; Schema: public; Owner: -
2623 --
2624
2625 CREATE INDEX index_pipeline_instances_on_created_at ON public.pipeline_instances USING btree (created_at);
2626
2627
2628 --
2629 -- Name: index_pipeline_instances_on_modified_at; Type: INDEX; Schema: public; Owner: -
2630 --
2631
2632 CREATE INDEX index_pipeline_instances_on_modified_at ON public.pipeline_instances USING btree (modified_at);
2633
2634
2635 --
2636 -- Name: index_pipeline_instances_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2637 --
2638
2639 CREATE INDEX index_pipeline_instances_on_modified_at_uuid ON public.pipeline_instances USING btree (modified_at DESC, uuid);
2640
2641
2642 --
2643 -- Name: index_pipeline_instances_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2644 --
2645
2646 CREATE INDEX index_pipeline_instances_on_owner_uuid ON public.pipeline_instances USING btree (owner_uuid);
2647
2648
2649 --
2650 -- Name: index_pipeline_instances_on_uuid; Type: INDEX; Schema: public; Owner: -
2651 --
2652
2653 CREATE UNIQUE INDEX index_pipeline_instances_on_uuid ON public.pipeline_instances USING btree (uuid);
2654
2655
2656 --
2657 -- Name: index_pipeline_templates_on_created_at; Type: INDEX; Schema: public; Owner: -
2658 --
2659
2660 CREATE INDEX index_pipeline_templates_on_created_at ON public.pipeline_templates USING btree (created_at);
2661
2662
2663 --
2664 -- Name: index_pipeline_templates_on_modified_at; Type: INDEX; Schema: public; Owner: -
2665 --
2666
2667 CREATE INDEX index_pipeline_templates_on_modified_at ON public.pipeline_templates USING btree (modified_at);
2668
2669
2670 --
2671 -- Name: index_pipeline_templates_on_modified_at_uuid; Type: INDEX; Schema: public; Owner: -
2672 --
2673
2674 CREATE INDEX index_pipeline_templates_on_modified_at_uuid ON public.pipeline_templates USING btree (modified_at DESC, uuid);
2675
2676
2677 --
2678 -- Name: index_pipeline_templates_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2679 --
2680
2681 CREATE INDEX index_pipeline_templates_on_owner_uuid ON public.pipeline_templates USING btree (owner_uuid);
2682
2683
2684 --
2685 -- Name: index_pipeline_templates_on_uuid; Type: INDEX; Schema: public; Owner: -
2686 --
2687
2688 CREATE UNIQUE INDEX index_pipeline_templates_on_uuid ON public.pipeline_templates USING btree (uuid);
2689
2690
2691 --
2692 -- Name: index_repositories_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2693 --
2694
2695 CREATE INDEX index_repositories_on_created_at_and_uuid ON public.repositories USING btree (created_at, uuid);
2696
2697
2698 --
2699 -- Name: index_repositories_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2700 --
2701
2702 CREATE INDEX index_repositories_on_modified_at_and_uuid ON public.repositories USING btree (modified_at, uuid);
2703
2704
2705 --
2706 -- Name: index_repositories_on_name; Type: INDEX; Schema: public; Owner: -
2707 --
2708
2709 CREATE UNIQUE INDEX index_repositories_on_name ON public.repositories USING btree (name);
2710
2711
2712 --
2713 -- Name: index_repositories_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2714 --
2715
2716 CREATE INDEX index_repositories_on_owner_uuid ON public.repositories USING btree (owner_uuid);
2717
2718
2719 --
2720 -- Name: index_repositories_on_uuid; Type: INDEX; Schema: public; Owner: -
2721 --
2722
2723 CREATE UNIQUE INDEX index_repositories_on_uuid ON public.repositories USING btree (uuid);
2724
2725
2726 --
2727 -- Name: index_specimens_on_created_at; Type: INDEX; Schema: public; Owner: -
2728 --
2729
2730 CREATE INDEX index_specimens_on_created_at ON public.specimens USING btree (created_at);
2731
2732
2733 --
2734 -- Name: index_specimens_on_modified_at; Type: INDEX; Schema: public; Owner: -
2735 --
2736
2737 CREATE INDEX index_specimens_on_modified_at ON public.specimens USING btree (modified_at);
2738
2739
2740 --
2741 -- Name: index_specimens_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2742 --
2743
2744 CREATE INDEX index_specimens_on_owner_uuid ON public.specimens USING btree (owner_uuid);
2745
2746
2747 --
2748 -- Name: index_specimens_on_uuid; Type: INDEX; Schema: public; Owner: -
2749 --
2750
2751 CREATE UNIQUE INDEX index_specimens_on_uuid ON public.specimens USING btree (uuid);
2752
2753
2754 --
2755 -- Name: index_traits_on_name; Type: INDEX; Schema: public; Owner: -
2756 --
2757
2758 CREATE INDEX index_traits_on_name ON public.traits USING btree (name);
2759
2760
2761 --
2762 -- Name: index_traits_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2763 --
2764
2765 CREATE INDEX index_traits_on_owner_uuid ON public.traits USING btree (owner_uuid);
2766
2767
2768 --
2769 -- Name: index_traits_on_uuid; Type: INDEX; Schema: public; Owner: -
2770 --
2771
2772 CREATE UNIQUE INDEX index_traits_on_uuid ON public.traits USING btree (uuid);
2773
2774
2775 --
2776 -- Name: index_trashed_groups_on_group_uuid; Type: INDEX; Schema: public; Owner: -
2777 --
2778
2779 CREATE UNIQUE INDEX index_trashed_groups_on_group_uuid ON public.trashed_groups USING btree (group_uuid);
2780
2781
2782 --
2783 -- Name: index_users_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2784 --
2785
2786 CREATE INDEX index_users_on_created_at_and_uuid ON public.users USING btree (created_at, uuid);
2787
2788
2789 --
2790 -- Name: index_users_on_identity_url; Type: INDEX; Schema: public; Owner: -
2791 --
2792
2793 CREATE UNIQUE INDEX index_users_on_identity_url ON public.users USING btree (identity_url);
2794
2795
2796 --
2797 -- Name: index_users_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2798 --
2799
2800 CREATE INDEX index_users_on_modified_at_and_uuid ON public.users USING btree (modified_at, uuid);
2801
2802
2803 --
2804 -- Name: index_users_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2805 --
2806
2807 CREATE INDEX index_users_on_owner_uuid ON public.users USING btree (owner_uuid);
2808
2809
2810 --
2811 -- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: -
2812 --
2813
2814 CREATE UNIQUE INDEX index_users_on_username ON public.users USING btree (username);
2815
2816
2817 --
2818 -- Name: index_users_on_uuid; Type: INDEX; Schema: public; Owner: -
2819 --
2820
2821 CREATE UNIQUE INDEX index_users_on_uuid ON public.users USING btree (uuid);
2822
2823
2824 --
2825 -- Name: index_virtual_machines_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2826 --
2827
2828 CREATE INDEX index_virtual_machines_on_created_at_and_uuid ON public.virtual_machines USING btree (created_at, uuid);
2829
2830
2831 --
2832 -- Name: index_virtual_machines_on_hostname; Type: INDEX; Schema: public; Owner: -
2833 --
2834
2835 CREATE INDEX index_virtual_machines_on_hostname ON public.virtual_machines USING btree (hostname);
2836
2837
2838 --
2839 -- Name: index_virtual_machines_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2840 --
2841
2842 CREATE INDEX index_virtual_machines_on_modified_at_and_uuid ON public.virtual_machines USING btree (modified_at, uuid);
2843
2844
2845 --
2846 -- Name: index_virtual_machines_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2847 --
2848
2849 CREATE INDEX index_virtual_machines_on_owner_uuid ON public.virtual_machines USING btree (owner_uuid);
2850
2851
2852 --
2853 -- Name: index_virtual_machines_on_uuid; Type: INDEX; Schema: public; Owner: -
2854 --
2855
2856 CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON public.virtual_machines USING btree (uuid);
2857
2858
2859 --
2860 -- Name: index_workflows_on_created_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2861 --
2862
2863 CREATE INDEX index_workflows_on_created_at_and_uuid ON public.workflows USING btree (created_at, uuid);
2864
2865
2866 --
2867 -- Name: index_workflows_on_modified_at_and_uuid; Type: INDEX; Schema: public; Owner: -
2868 --
2869
2870 CREATE INDEX index_workflows_on_modified_at_and_uuid ON public.workflows USING btree (modified_at, uuid);
2871
2872
2873 --
2874 -- Name: index_workflows_on_owner_uuid; Type: INDEX; Schema: public; Owner: -
2875 --
2876
2877 CREATE INDEX index_workflows_on_owner_uuid ON public.workflows USING btree (owner_uuid);
2878
2879
2880 --
2881 -- Name: index_workflows_on_uuid; Type: INDEX; Schema: public; Owner: -
2882 --
2883
2884 CREATE UNIQUE INDEX index_workflows_on_uuid ON public.workflows USING btree (uuid);
2885
2886
2887 --
2888 -- Name: job_tasks_search_index; Type: INDEX; Schema: public; Owner: -
2889 --
2890
2891 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);
2892
2893
2894 --
2895 -- Name: jobs_search_index; Type: INDEX; Schema: public; Owner: -
2896 --
2897
2898 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);
2899
2900
2901 --
2902 -- Name: jobs_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
2903 --
2904
2905 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);
2906
2907
2908 --
2909 -- Name: keep_disks_search_index; Type: INDEX; Schema: public; Owner: -
2910 --
2911
2912 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);
2913
2914
2915 --
2916 -- Name: keep_services_search_index; Type: INDEX; Schema: public; Owner: -
2917 --
2918
2919 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);
2920
2921
2922 --
2923 -- Name: links_index_on_properties; Type: INDEX; Schema: public; Owner: -
2924 --
2925
2926 CREATE INDEX links_index_on_properties ON public.links USING gin (properties);
2927
2928
2929 --
2930 -- Name: links_search_index; Type: INDEX; Schema: public; Owner: -
2931 --
2932
2933 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);
2934
2935
2936 --
2937 -- Name: links_tail_name_unique_if_link_class_name; Type: INDEX; Schema: public; Owner: -
2938 --
2939
2940 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);
2941
2942
2943 --
2944 -- Name: logs_search_index; Type: INDEX; Schema: public; Owner: -
2945 --
2946
2947 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);
2948
2949
2950 --
2951 -- Name: nodes_index_on_info; Type: INDEX; Schema: public; Owner: -
2952 --
2953
2954 CREATE INDEX nodes_index_on_info ON public.nodes USING gin (info);
2955
2956
2957 --
2958 -- Name: nodes_index_on_properties; Type: INDEX; Schema: public; Owner: -
2959 --
2960
2961 CREATE INDEX nodes_index_on_properties ON public.nodes USING gin (properties);
2962
2963
2964 --
2965 -- Name: nodes_search_index; Type: INDEX; Schema: public; Owner: -
2966 --
2967
2968 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);
2969
2970
2971 --
2972 -- Name: permission_target; Type: INDEX; Schema: public; Owner: -
2973 --
2974
2975 CREATE INDEX permission_target ON public.materialized_permissions USING btree (target_uuid);
2976
2977
2978 --
2979 -- Name: permission_user_target; Type: INDEX; Schema: public; Owner: -
2980 --
2981
2982 CREATE UNIQUE INDEX permission_user_target ON public.materialized_permissions USING btree (user_uuid, target_uuid);
2983
2984
2985 --
2986 -- Name: pipeline_instances_search_index; Type: INDEX; Schema: public; Owner: -
2987 --
2988
2989 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);
2990
2991
2992 --
2993 -- Name: pipeline_instances_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
2994 --
2995
2996 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);
2997
2998
2999 --
3000 -- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -
3001 --
3002
3003 CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON public.pipeline_templates USING btree (owner_uuid, name);
3004
3005
3006 --
3007 -- Name: pipeline_templates_search_index; Type: INDEX; Schema: public; Owner: -
3008 --
3009
3010 CREATE INDEX pipeline_templates_search_index ON public.pipeline_templates USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
3011
3012
3013 --
3014 -- Name: pipeline_templates_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
3015 --
3016
3017 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);
3018
3019
3020 --
3021 -- Name: repositories_search_index; Type: INDEX; Schema: public; Owner: -
3022 --
3023
3024 CREATE INDEX repositories_search_index ON public.repositories USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
3025
3026
3027 --
3028 -- Name: specimens_search_index; Type: INDEX; Schema: public; Owner: -
3029 --
3030
3031 CREATE INDEX specimens_search_index ON public.specimens USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, material);
3032
3033
3034 --
3035 -- Name: traits_search_index; Type: INDEX; Schema: public; Owner: -
3036 --
3037
3038 CREATE INDEX traits_search_index ON public.traits USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
3039
3040
3041 --
3042 -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
3043 --
3044
3045 CREATE UNIQUE INDEX unique_schema_migrations ON public.schema_migrations USING btree (version);
3046
3047
3048 --
3049 -- Name: users_search_index; Type: INDEX; Schema: public; Owner: -
3050 --
3051
3052 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);
3053
3054
3055 --
3056 -- Name: virtual_machines_search_index; Type: INDEX; Schema: public; Owner: -
3057 --
3058
3059 CREATE INDEX virtual_machines_search_index ON public.virtual_machines USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, hostname);
3060
3061
3062 --
3063 -- Name: workflows_search_idx; Type: INDEX; Schema: public; Owner: -
3064 --
3065
3066 CREATE INDEX workflows_search_idx ON public.workflows USING btree (uuid, owner_uuid, modified_by_client_uuid, modified_by_user_uuid, name);
3067
3068
3069 --
3070 -- Name: workflows_trgm_text_search_idx; Type: INDEX; Schema: public; Owner: -
3071 --
3072
3073 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);
3074
3075
3076 --
3077 -- PostgreSQL database dump complete
3078 --
3079
3080 SET search_path TO "$user", public;
3081
3082 INSERT INTO "schema_migrations" (version) VALUES
3083 ('20121016005009'),
3084 ('20130105203021'),
3085 ('20130105224358'),
3086 ('20130105224618'),
3087 ('20130107181109'),
3088 ('20130107212832'),
3089 ('20130109175700'),
3090 ('20130109220548'),
3091 ('20130113214204'),
3092 ('20130116024233'),
3093 ('20130116215213'),
3094 ('20130118002239'),
3095 ('20130122020042'),
3096 ('20130122201442'),
3097 ('20130122221616'),
3098 ('20130123174514'),
3099 ('20130123180224'),
3100 ('20130123180228'),
3101 ('20130125220425'),
3102 ('20130128202518'),
3103 ('20130128231343'),
3104 ('20130130205749'),
3105 ('20130203104818'),
3106 ('20130203104824'),
3107 ('20130203115329'),
3108 ('20130207195855'),
3109 ('20130218181504'),
3110 ('20130226170000'),
3111 ('20130313175417'),
3112 ('20130315155820'),
3113 ('20130315183626'),
3114 ('20130315213205'),
3115 ('20130318002138'),
3116 ('20130319165853'),
3117 ('20130319180730'),
3118 ('20130319194637'),
3119 ('20130319201431'),
3120 ('20130319235957'),
3121 ('20130320000107'),
3122 ('20130326173804'),
3123 ('20130326182917'),
3124 ('20130415020241'),
3125 ('20130425024459'),
3126 ('20130425214427'),
3127 ('20130523060112'),
3128 ('20130523060213'),
3129 ('20130524042319'),
3130 ('20130528134100'),
3131 ('20130606183519'),
3132 ('20130608053730'),
3133 ('20130610202538'),
3134 ('20130611163736'),
3135 ('20130612042554'),
3136 ('20130617150007'),
3137 ('20130626002829'),
3138 ('20130626022810'),
3139 ('20130627154537'),
3140 ('20130627184333'),
3141 ('20130708163414'),
3142 ('20130708182912'),
3143 ('20130708185153'),
3144 ('20130724153034'),
3145 ('20131007180607'),
3146 ('20140117231056'),
3147 ('20140124222114'),
3148 ('20140129184311'),
3149 ('20140317135600'),
3150 ('20140319160547'),
3151 ('20140321191343'),
3152 ('20140324024606'),
3153 ('20140325175653'),
3154 ('20140402001908'),
3155 ('20140407184311'),
3156 ('20140421140924'),
3157 ('20140421151939'),
3158 ('20140421151940'),
3159 ('20140422011506'),
3160 ('20140423132913'),
3161 ('20140423133559'),
3162 ('20140501165548'),
3163 ('20140519205916'),
3164 ('20140527152921'),
3165 ('20140530200539'),
3166 ('20140601022548'),
3167 ('20140602143352'),
3168 ('20140607150616'),
3169 ('20140611173003'),
3170 ('20140627210837'),
3171 ('20140709172343'),
3172 ('20140714184006'),
3173 ('20140811184643'),
3174 ('20140817035914'),
3175 ('20140818125735'),
3176 ('20140826180337'),
3177 ('20140828141043'),
3178 ('20140909183946'),
3179 ('20140911221252'),
3180 ('20140918141529'),
3181 ('20140918153541'),
3182 ('20140918153705'),
3183 ('20140924091559'),
3184 ('20141111133038'),
3185 ('20141208164553'),
3186 ('20141208174553'),
3187 ('20141208174653'),
3188 ('20141208185217'),
3189 ('20150122175935'),
3190 ('20150123142953'),
3191 ('20150203180223'),
3192 ('20150206210804'),
3193 ('20150206230342'),
3194 ('20150216193428'),
3195 ('20150303210106'),
3196 ('20150312151136'),
3197 ('20150317132720'),
3198 ('20150324152204'),
3199 ('20150423145759'),
3200 ('20150512193020'),
3201 ('20150526180251'),
3202 ('20151202151426'),
3203 ('20151215134304'),
3204 ('20151229214707'),
3205 ('20160208210629'),
3206 ('20160209155729'),
3207 ('20160324144017'),
3208 ('20160506175108'),
3209 ('20160509143250'),
3210 ('20160808151559'),
3211 ('20160819195557'),
3212 ('20160819195725'),
3213 ('20160901210110'),
3214 ('20160909181442'),
3215 ('20160926194129'),
3216 ('20161019171346'),
3217 ('20161111143147'),
3218 ('20161115171221'),
3219 ('20161115174218'),
3220 ('20161213172944'),
3221 ('20161222153434'),
3222 ('20161223090712'),
3223 ('20170102153111'),
3224 ('20170105160301'),
3225 ('20170105160302'),
3226 ('20170216170823'),
3227 ('20170301225558'),
3228 ('20170319063406'),
3229 ('20170328215436'),
3230 ('20170330012505'),
3231 ('20170419173031'),
3232 ('20170419173712'),
3233 ('20170419175801'),
3234 ('20170628185847'),
3235 ('20170704160233'),
3236 ('20170706141334'),
3237 ('20170824202826'),
3238 ('20170906224040'),
3239 ('20171027183824'),
3240 ('20171208203841'),
3241 ('20171212153352'),
3242 ('20180216203422'),
3243 ('20180228220311'),
3244 ('20180313180114'),
3245 ('20180501182859'),
3246 ('20180514135529'),
3247 ('20180607175050'),
3248 ('20180608123145'),
3249 ('20180806133039'),
3250 ('20180820130357'),
3251 ('20180820132617'),
3252 ('20180820135808'),
3253 ('20180824152014'),
3254 ('20180824155207'),
3255 ('20180904110712'),
3256 ('20180913175443'),
3257 ('20180915155335'),
3258 ('20180917200000'),
3259 ('20180917205609'),
3260 ('20180919001158'),
3261 ('20181001175023'),
3262 ('20181004131141'),
3263 ('20181005192222'),
3264 ('20181011184200'),
3265 ('20181213183234'),
3266 ('20190214214814'),
3267 ('20190322174136'),
3268 ('20190422144631'),
3269 ('20190523180148'),
3270 ('20190808145904'),
3271 ('20190809135453'),
3272 ('20190905151603'),
3273 ('20200501150153'),
3274 ('20200602141328'),
3275 ('20200914203202'),
3276 ('20201103170213'),
3277 ('20201105190435'),
3278 ('20201202174753'),
3279 ('20210108033940'),
3280 ('20210126183521'),
3281 ('20210621204455'),
3282 ('20210816191509'),
3283 ('20211027154300'),
3284 ('20220224203102'),
3285 ('20220301155729'),
3286 ('20220303204419'),
3287 ('20220401153101'),
3288 ('20220505112900'),
3289 ('20220726034131'),
3290 ('20220804133317'),
3291 ('20221219165512'),
3292 ('20221230155924'),
3293 ('20230421142716'),
3294 ('20230503224107'),
3295 ('20230815160000'),
3296 ('20230821000000');
3297
3298