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