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