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