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