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