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