SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; -- -- Name: btree_gist; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS btree_gist WITH SCHEMA public; -- -- Name: EXTENSION btree_gist; Type: COMMENT; Schema: -; Owner: - -- COMMENT ON EXTENSION btree_gist IS 'support for indexing common datatypes in GiST'; -- -- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public; -- -- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner: - -- COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams'; -- -- Name: trim_html_tags(text); Type: FUNCTION; Schema: public; Owner: - -- CREATE FUNCTION public.trim_html_tags(input text, OUT output text) RETURNS text LANGUAGE sql AS $$ SELECT regexp_replace(input, E'<[^>]*>', '', 'g'); $$; SET default_tablespace = ''; SET default_with_oids = false; -- -- Name: active_storage_attachments; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.active_storage_attachments ( id bigint NOT NULL, name character varying NOT NULL, record_type character varying NOT NULL, record_id bigint NOT NULL, blob_id bigint NOT NULL, created_at timestamp without time zone NOT NULL ); -- -- Name: active_storage_attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.active_storage_attachments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: active_storage_attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.active_storage_attachments_id_seq OWNED BY public.active_storage_attachments.id; -- -- Name: active_storage_blobs; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.active_storage_blobs ( id bigint NOT NULL, key character varying NOT NULL, filename character varying NOT NULL, content_type character varying, metadata text, byte_size bigint NOT NULL, checksum character varying NOT NULL, created_at timestamp without time zone NOT NULL ); -- -- Name: active_storage_blobs_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.active_storage_blobs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: active_storage_blobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.active_storage_blobs_id_seq OWNED BY public.active_storage_blobs.id; -- -- Name: activities; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.activities ( id bigint NOT NULL, my_module_id bigint, owner_id bigint, type_of integer NOT NULL, message character varying, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, project_id bigint, experiment_id bigint, subject_type character varying, subject_id bigint, team_id bigint, group_type integer, "values" jsonb ); -- -- Name: activities_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.activities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: activities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.activities_id_seq OWNED BY public.activities.id; -- -- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.ar_internal_metadata ( key character varying NOT NULL, value character varying, created_at timestamp(6) without time zone NOT NULL, updated_at timestamp(6) without time zone NOT NULL ); -- -- Name: asset_text_data; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.asset_text_data ( id bigint NOT NULL, data text NOT NULL, asset_id bigint NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, data_vector tsvector ); -- -- Name: asset_text_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.asset_text_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: asset_text_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.asset_text_data_id_seq OWNED BY public.asset_text_data.id; -- -- Name: assets; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.assets ( id bigint NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, file_file_name character varying, file_content_type character varying, file_file_size bigint, file_updated_at timestamp without time zone, created_by_id bigint, last_modified_by_id bigint, estimated_size integer DEFAULT 0 NOT NULL, file_present boolean DEFAULT false NOT NULL, lock character varying(1024), lock_ttl integer, version integer DEFAULT 1, file_processing boolean, team_id integer, file_image_quality integer ); -- -- Name: assets_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.assets_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: assets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.assets_id_seq OWNED BY public.assets.id; -- -- Name: checklist_items; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.checklist_items ( id bigint NOT NULL, text character varying NOT NULL, checked boolean DEFAULT false NOT NULL, checklist_id bigint NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, created_by_id bigint, last_modified_by_id bigint, "position" integer ); -- -- Name: checklist_items_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.checklist_items_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: checklist_items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.checklist_items_id_seq OWNED BY public.checklist_items.id; -- -- Name: checklists; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.checklists ( id bigint NOT NULL, name character varying NOT NULL, step_id bigint NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, created_by_id bigint, last_modified_by_id bigint ); -- -- Name: checklists_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.checklists_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: checklists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.checklists_id_seq OWNED BY public.checklists.id; -- -- Name: comments; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.comments ( id bigint NOT NULL, message character varying NOT NULL, user_id bigint NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, last_modified_by_id bigint, type character varying, associated_id integer ); -- -- Name: comments_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.comments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.comments_id_seq OWNED BY public.comments.id; -- -- Name: connections; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.connections ( id bigint NOT NULL, input_id bigint NOT NULL, output_id bigint NOT NULL ); -- -- Name: connections_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.connections_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: connections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.connections_id_seq OWNED BY public.connections.id; -- -- Name: custom_fields; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.custom_fields ( id bigint NOT NULL, name character varying NOT NULL, user_id bigint NOT NULL, team_id bigint NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, last_modified_by_id bigint ); -- -- Name: custom_fields_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.custom_fields_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: custom_fields_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.custom_fields_id_seq OWNED BY public.custom_fields.id; -- -- Name: teams; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.teams ( id bigint NOT NULL, name character varying NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, created_by_id bigint, last_modified_by_id bigint, description character varying, space_taken bigint DEFAULT 1048576 NOT NULL ); -- -- Name: user_teams; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.user_teams ( id bigint NOT NULL, role integer DEFAULT 1 NOT NULL, user_id bigint NOT NULL, team_id bigint NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, assigned_by_id bigint ); -- -- Name: datatables_teams; Type: VIEW; Schema: public; Owner: - -- CREATE VIEW public.datatables_teams AS SELECT teams.id, teams.name, user_teams.role, ( SELECT count(*) AS count FROM public.user_teams user_teams_1 WHERE (user_teams_1.team_id = teams.id)) AS members, CASE WHEN (teams.created_by_id = user_teams.user_id) THEN false ELSE true END AS can_be_left, user_teams.id AS user_team_id, user_teams.user_id FROM (public.teams JOIN public.user_teams ON ((teams.id = user_teams.team_id))); -- -- Name: delayed_jobs; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.delayed_jobs ( id bigint NOT NULL, priority integer DEFAULT 0 NOT NULL, attempts integer DEFAULT 0 NOT NULL, handler text NOT NULL, last_error text, run_at timestamp without time zone, locked_at timestamp without time zone, failed_at timestamp without time zone, locked_by character varying, queue character varying, created_at timestamp without time zone, updated_at timestamp without time zone ); -- -- Name: delayed_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.delayed_jobs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: delayed_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.delayed_jobs_id_seq OWNED BY public.delayed_jobs.id; -- -- Name: experiments; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.experiments ( id bigint NOT NULL, name character varying NOT NULL, description text, project_id integer NOT NULL, created_by_id bigint NOT NULL, last_modified_by_id bigint NOT NULL, archived boolean DEFAULT false NOT NULL, archived_by_id bigint, archived_on timestamp without time zone, restored_by_id bigint, restored_on timestamp without time zone, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, workflowimg_file_name character varying, workflowimg_content_type character varying, workflowimg_file_size bigint, workflowimg_updated_at timestamp without time zone, uuid uuid ); -- -- Name: experiments_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.experiments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: experiments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.experiments_id_seq OWNED BY public.experiments.id; -- -- Name: my_module_groups; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.my_module_groups ( id bigint NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, created_by_id bigint, experiment_id bigint DEFAULT 0 NOT NULL ); -- -- Name: my_module_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.my_module_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: my_module_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.my_module_groups_id_seq OWNED BY public.my_module_groups.id; -- -- Name: my_module_repository_rows; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.my_module_repository_rows ( id bigint NOT NULL, repository_row_id bigint NOT NULL, my_module_id integer, assigned_by_id bigint NOT NULL, created_at timestamp without time zone, updated_at timestamp without time zone ); -- -- Name: my_module_repository_rows_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.my_module_repository_rows_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: my_module_repository_rows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.my_module_repository_rows_id_seq OWNED BY public.my_module_repository_rows.id; -- -- Name: my_module_tags; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.my_module_tags ( id bigint NOT NULL, my_module_id integer, tag_id integer, created_by_id bigint ); -- -- Name: my_module_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.my_module_tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: my_module_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.my_module_tags_id_seq OWNED BY public.my_module_tags.id; -- -- Name: my_modules; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.my_modules ( id bigint NOT NULL, name character varying NOT NULL, due_date timestamp without time zone, description character varying, x integer DEFAULT 0 NOT NULL, y integer DEFAULT 0 NOT NULL, my_module_group_id bigint, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, archived boolean DEFAULT false NOT NULL, archived_on timestamp without time zone, created_by_id bigint, last_modified_by_id bigint, archived_by_id bigint, restored_by_id bigint, restored_on timestamp without time zone, nr_of_assigned_samples integer DEFAULT 0, workflow_order integer DEFAULT '-1'::integer NOT NULL, experiment_id bigint DEFAULT 0 NOT NULL, state smallint DEFAULT 0, completed_on timestamp without time zone ); -- -- Name: my_modules_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.my_modules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: my_modules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.my_modules_id_seq OWNED BY public.my_modules.id; -- -- Name: notifications; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.notifications ( id bigint NOT NULL, title character varying, message character varying, type_of integer NOT NULL, generator_user_id bigint, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: notifications_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.notifications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: notifications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.notifications_id_seq OWNED BY public.notifications.id; -- -- Name: oauth_access_grants; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.oauth_access_grants ( id bigint NOT NULL, resource_owner_id bigint NOT NULL, application_id bigint NOT NULL, token character varying NOT NULL, expires_in integer NOT NULL, redirect_uri text NOT NULL, created_at timestamp without time zone NOT NULL, revoked_at timestamp without time zone, scopes character varying ); -- -- Name: oauth_access_grants_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.oauth_access_grants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: oauth_access_grants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.oauth_access_grants_id_seq OWNED BY public.oauth_access_grants.id; -- -- Name: oauth_access_tokens; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.oauth_access_tokens ( id bigint NOT NULL, resource_owner_id bigint, application_id bigint, token text NOT NULL, refresh_token character varying, expires_in integer, revoked_at timestamp without time zone, created_at timestamp without time zone NOT NULL, scopes character varying, previous_refresh_token character varying DEFAULT ''::character varying NOT NULL ); -- -- Name: oauth_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.oauth_access_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: oauth_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.oauth_access_tokens_id_seq OWNED BY public.oauth_access_tokens.id; -- -- Name: oauth_applications; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.oauth_applications ( id bigint NOT NULL, name character varying NOT NULL, uid character varying NOT NULL, secret character varying NOT NULL, redirect_uri text NOT NULL, scopes character varying DEFAULT ''::character varying NOT NULL, confidential boolean DEFAULT true NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: oauth_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.oauth_applications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: oauth_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.oauth_applications_id_seq OWNED BY public.oauth_applications.id; -- -- Name: projects; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.projects ( id bigint NOT NULL, name character varying NOT NULL, visibility integer DEFAULT 0 NOT NULL, due_date timestamp without time zone, team_id bigint NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, archived boolean DEFAULT false NOT NULL, archived_on timestamp without time zone, created_by_id bigint, last_modified_by_id bigint, archived_by_id bigint, restored_by_id bigint, restored_on timestamp without time zone, experiments_order character varying, template boolean, demo boolean DEFAULT false NOT NULL ); -- -- Name: projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.projects_id_seq OWNED BY public.projects.id; -- -- Name: protocol_keywords; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.protocol_keywords ( id bigint NOT NULL, name character varying, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, nr_of_protocols integer DEFAULT 0, team_id bigint NOT NULL ); -- -- Name: protocol_keywords_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.protocol_keywords_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: protocol_keywords_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.protocol_keywords_id_seq OWNED BY public.protocol_keywords.id; -- -- Name: protocol_protocol_keywords; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.protocol_protocol_keywords ( id bigint NOT NULL, protocol_id bigint NOT NULL, protocol_keyword_id bigint NOT NULL ); -- -- Name: protocol_protocol_keywords_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.protocol_protocol_keywords_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: protocol_protocol_keywords_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.protocol_protocol_keywords_id_seq OWNED BY public.protocol_protocol_keywords.id; -- -- Name: protocols; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.protocols ( id bigint NOT NULL, name character varying, authors text, description text, added_by_id bigint, my_module_id bigint, team_id bigint NOT NULL, protocol_type integer DEFAULT 0 NOT NULL, parent_id bigint, parent_updated_at timestamp without time zone, archived_by_id bigint, archived_on timestamp without time zone, restored_by_id bigint, restored_on timestamp without time zone, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, published_on timestamp without time zone, nr_of_linked_children integer DEFAULT 0 ); -- -- Name: protocols_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.protocols_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: protocols_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.protocols_id_seq OWNED BY public.protocols.id; -- -- Name: report_elements; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.report_elements ( id bigint NOT NULL, "position" integer NOT NULL, type_of integer NOT NULL, sort_order integer DEFAULT 0, report_id bigint, parent_id integer, project_id bigint, my_module_id bigint, step_id bigint, result_id bigint, checklist_id bigint, asset_id bigint, table_id bigint, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, experiment_id bigint, repository_id integer ); -- -- Name: report_elements_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.report_elements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: report_elements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.report_elements_id_seq OWNED BY public.report_elements.id; -- -- Name: reports; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.reports ( id bigint NOT NULL, name character varying NOT NULL, description character varying, project_id bigint NOT NULL, user_id bigint NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, last_modified_by_id bigint, team_id bigint ); -- -- Name: reports_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.reports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.reports_id_seq OWNED BY public.reports.id; -- -- Name: repositories; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.repositories ( id bigint NOT NULL, team_id integer, created_by_id bigint NOT NULL, name character varying, created_at timestamp without time zone, updated_at timestamp without time zone, discarded_at timestamp without time zone, permission_level integer DEFAULT 0 NOT NULL ); -- -- Name: repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.repositories_id_seq OWNED BY public.repositories.id; -- -- Name: repository_asset_values; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.repository_asset_values ( id bigint NOT NULL, asset_id bigint, created_by_id bigint, last_modified_by_id bigint, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: repository_asset_values_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.repository_asset_values_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: repository_asset_values_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.repository_asset_values_id_seq OWNED BY public.repository_asset_values.id; -- -- Name: repository_cells; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.repository_cells ( id bigint NOT NULL, repository_row_id bigint, repository_column_id integer, value_type character varying, value_id bigint, created_at timestamp without time zone, updated_at timestamp without time zone ); -- -- Name: repository_cells_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.repository_cells_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: repository_cells_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.repository_cells_id_seq OWNED BY public.repository_cells.id; -- -- Name: repository_checklist_items; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.repository_checklist_items ( id bigint NOT NULL, data character varying NOT NULL, repository_id bigint NOT NULL, repository_column_id bigint NOT NULL, created_by_id bigint, last_modified_by_id bigint, created_at timestamp(6) without time zone NOT NULL, updated_at timestamp(6) without time zone NOT NULL ); -- -- Name: repository_checklist_items_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE public.repository_checklist_items_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: repository_checklist_items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - -- ALTER SEQUENCE public.repository_checklist_items_id_seq OWNED BY public.repository_checklist_items.id; -- -- Name: repository_checklist_values; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.repository_checklist_values ( id bigint NOT NULL, created_by_id bigint, last_modified_by_id bigint, created_at timestamp(6) without time zone NOT NULL, updated_at timestamp(6) without time zone NOT NULL, repository_checklist_items jsonb, "#