argos/deployment/config-files/postgres/opencdmp_init.sql

3967 lines
192 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--
-- PostgreSQL database dump
--
-- Dumped from database version 16.2
-- Dumped by pg_dump version 16.2
-- Started on 2024-09-19 14:01:18
CREATE DATABASE keycloak WITH OWNER "postgres";
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;
--
-- TOC entry 4165 (class 1262 OID 177869)
-- Name: opencdmp; Type: DATABASE; Schema: -; Owner: -
--
CREATE DATABASE "opencdmp" WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE = 'en_US.utf8';
\connect -reuse-previous=on "dbname='opencdmp'"
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;
--
-- TOC entry 2 (class 3079 OID 177872)
-- Name: uuid-ossp; Type: EXTENSION; Schema: -; Owner: -
--
CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public;
--
-- TOC entry 4166 (class 0 OID 0)
-- Dependencies: 2
-- Name: EXTENSION "uuid-ossp"; Type: COMMENT; Schema: -; Owner: -
--
COMMENT ON EXTENSION "uuid-ossp" IS 'generate universally unique identifiers (UUIDs)';
--
-- TOC entry 938 (class 1247 OID 177884)
-- Name: doientitytype; Type: TYPE; Schema: public; Owner: -
--
CREATE TYPE public.doientitytype AS ENUM (
'DMP'
);
--
-- TOC entry 941 (class 1247 OID 177888)
-- Name: entitytype; Type: TYPE; Schema: public; Owner: -
--
CREATE TYPE public.entitytype AS ENUM (
'DATASET',
'DMP'
);
SET default_table_access_method = heap;
--
-- TOC entry 216 (class 1259 OID 177893)
-- Name: ActionConfirmation; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ActionConfirmation" (
id uuid NOT NULL,
type smallint NOT NULL,
status smallint NOT NULL,
token character varying NOT NULL,
data text NOT NULL,
expires_at timestamp without time zone NOT NULL,
created_by uuid NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
tenant uuid
);
--
-- TOC entry 217 (class 1259 OID 177898)
-- Name: Content; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Content" (
"Id" uuid NOT NULL,
"Filename" character varying NOT NULL,
"Extension" character varying NOT NULL,
"ParentType" numeric NOT NULL,
"Uri" character varying NOT NULL,
"LocationType" numeric NOT NULL
);
--
-- TOC entry 218 (class 1259 OID 177903)
-- Name: Credential; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Credential" (
"Id" uuid NOT NULL,
"Status" numeric NOT NULL,
"Provider" numeric NOT NULL,
"Public" character varying NOT NULL,
"Secret" character varying NOT NULL,
"CreationTime" date NOT NULL,
"LastUpdateTime" date NOT NULL,
"UserId" uuid NOT NULL,
"ExternalId" character varying NOT NULL,
"Email" character varying
);
--
-- TOC entry 219 (class 1259 OID 177908)
-- Name: DBVersion; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DBVersion" (
key character varying NOT NULL,
version character varying NOT NULL,
"releasedAt" timestamp with time zone NOT NULL,
"deployedAt" timestamp with time zone,
description text
);
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.001', '2020-03-31 08:34:54.236152+00', '2020-04-02 08:24:17.982713+00', 'Add Database Versioning');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.002', '2020-05-04 10:42:00+00', '2020-05-12 16:04:59.286316+00', 'Add User Association');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.003', '2020-05-06 15:11:00+00', '2020-07-01 17:21:42.011329+00', 'Add Doi Funder');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.004', '2020-06-03 09:00:00+00', '2020-07-01 17:22:08.818043+00', 'Add language to DMP and Dataset Template');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.005', '2020-06-03 09:00:00+00', '2020-07-01 17:22:16.127889+00', 'Remove user association table');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.006', '2020-10-26 07:10:00+00', '2021-05-19 08:26:52.487759+00', 'Update Credential and LoginConfirmationEmail tables');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.007', '2020-10-27 10:40:00+00', '2021-05-19 08:27:15.799832+00', 'Add userstatus on UserInfo table');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.008', '2021-04-05 14:48:00+00', '2021-05-19 08:41:47.653423+00', 'Add Dataset Profile User Table');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.008', '2021-04-05 14:48:00+00', '2021-05-19 10:38:30.376503+00', 'Add Dataset Profile User Table');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.009', '2022-03-03 13:50:00+00', '2022-05-16 07:41:15.567827+00', 'Add File Table for uploaded files');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.010', '2022-10-27 08:50:00+00', '2023-02-28 09:48:20.924562+00', 'Add Doi Table for depositions');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.011', '2022-10-27 08:50:00+00', '2023-02-28 09:48:30.770555+00', 'Migrate DMP.DOI to EntityDoi table');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.012', '2022-10-27 08:50:00+00', '2023-02-28 09:48:38.792902+00', 'Delete doi column from dmp table');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.013', '2023-06-21 10:00:00+00', '2024-02-15 10:26:07.69147+00', 'Add Description Template Type table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.014', '2023-06-21 10:00:00+00', '2024-02-15 10:26:18.074713+00', 'Rename DatasetProfile Table to DescriptionTemplate and add column Type referencing the DescriptionTemplateType.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.015', '2023-09-01 10:00:00+00', '2024-02-15 10:26:28.577243+00', 'Add column DmpSectionIndex to Dataset table and data to DMPDatasetProfile.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.016', '2023-09-12 10:00:00+00', '2024-02-15 10:26:49.804431+00', 'Insert default blueprint, update profile of existing dmps and update DmpSectionIndex for each dataset.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.017', '2023-09-18 10:00:00+00', '2024-02-15 10:26:57.336389+00', 'Make grant column of dmp table not null.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.000', '2023-11-22 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add Reference, ReferenceType, SupportiveMaterial');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.001', '2023-10-19 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Align Description Template Type.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.002', '2023-10-19 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Align Entity Doi table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.003', '2023-10-19 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add UserSettings table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.004', '2023-10-27 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Align dmp blueprint table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.005', '2023-10-27 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add Dmp table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.006', '2023-10-27 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add DescriptionReference table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.007', '2023-10-27 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add Description table (former Dataset).');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.008', '2023-10-27 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add DescriptionReference table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.009', '2023-10-27 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Drop old dataset related tables.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.010', '2023-11-02 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Aling DescriptionTemplate table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.011', '2023-11-02 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Aling UserDescriptionTemplate table (former UserDatasetProfile).');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.012', '2023-11-02 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add Dmp Description Template table (former DMPDatasetProfile).');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.013', '2023-11-07 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add Dmp User table (former UserDMP).');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.014', '2023-11-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Sync table Description.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.015', '2023-11-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table tag.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.016', '2023-11-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table DescriptionTag.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.017', '2023-11-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table User.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.018', '2023-11-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table UserCredential.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.019', '2023-11-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table UserContactInfo.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.020', '2023-11-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Sync table UserRole.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.021', '2023-11-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Sync user tables data.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.022', '2023-11-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Update user tables fks.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.023', '2023-11-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table Tenant.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.024', '2023-11-27 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table Language.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.025', '2023-11-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table StorageFile.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.026', '2023-11-29 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'ALter table Language.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.027', '2023-12-05 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Rename table Notification to NotificationLegacy.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.028', '2023-12-05 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table QueueOutbox.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.029', '2023-12-05 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table QueueInbox.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.030', '2023-12-05 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add tables ntf_Tenant and ntf_TenantConfiguration.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.031', '2024-01-24 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ntf_User.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.032', '2023-12-05 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ntf_Notification.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.033', '2024-01-24 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ntf_UserContactInfo.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.034', '2024-01-24 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ntf_UserCredential.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.035', '2024-01-25 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ntf_TenantUser.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.036', '2023-12-15 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add ntf_NotificationTemplate table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.037', '2023-12-05 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ntf_QueueInbox.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.038', '2023-12-05 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ntf_QueueOutbox.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.039', '2023-12-05 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ntf_InAppNotification.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.040', '2023-12-05 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ntf_UserNotificationPreference.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.041', '2023-12-06 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table TenantUser.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.042', '2023-12-06 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Rename usersettings Table to UserSettings.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.043', '2023-12-06 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add Tenant Id to tables.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.044', '2023-12-08 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Drop old Lock Table and create New Lock table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.045', '2023-12-13 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add ActionConfirmation table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.046', '2023-12-27 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Change Entity Type To Enum at Entity DOI table');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.047', '2024-02-02 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add versioning on dmp blueprint table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.048', '2024-02-13 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add tables ant_Tenant and ant_TenantConfiguration.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.049', '2024-02-13 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ant_QueueInbox.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.050', '2024-02-13 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ant_QueueOutbox.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.051', '2024-02-13 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ant_User.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.052', '2024-02-13 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ant_UserCredential.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.053', '2024-02-13 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ant_TenantUser.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.054', '2024-02-21 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add Section_id Column to DmpUser Table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.055', '2024-02-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ant_Annotation.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.056', '2024-02-20 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ant_EntityUser.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.057', '2024-02-22 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add PrefillingSource table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.058', '2024-02-28 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add table ant_UserContactInfo.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.059', '2024-03-07 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add columns on ant_Annotaion table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.060', '2024-03-26 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add Language, Prefilling Source, Reference Type values.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.061', '2024-03-27 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Remove DMP fkey from EntityDoi Table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.062', '2024-04-08 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add currency reference type value.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.063', '2024-04-19 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add TenantConfiguration Table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.064', '2024-06-26 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add ant_Status table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.065', '2024-06-26 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add ant_AnnotationStatus table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.066', '2024-07-05 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Rename dmp to plan.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.067', '2024-11-07 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add UsageLimit table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.068', '2024-07-24 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add DescriptionTemplateType code column.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.069', '2024-07-26 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add DescriptionTemplate code column.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.070', '2024-07-29 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Update DescriptionTemplate code column.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.071', '2024-07-29 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add PlanBlueprint code column.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.072', '2024-08-21 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add plan status table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.073', '2024-08-22 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add description status table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.074', '2024-08-23 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add plan workflow table.');
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.075', '2024-08-26 10:00:00+00', '2024-09-06 14:42:43.525287+00', 'Add description workflow table.');
--
-- TOC entry 220 (class 1259 OID 177913)
-- Name: DMP; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DMP" (
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"GroupId" uuid,
"Label" character varying(250) NOT NULL,
"Version" integer NOT NULL,
"Grant" uuid,
"AssociatedDmps" xml,
"Profile" uuid,
"Status" smallint DEFAULT 0 NOT NULL,
"Created" timestamp without time zone DEFAULT now() NOT NULL,
"Modified" timestamp without time zone DEFAULT now() NOT NULL,
"Description" text,
"Creator" uuid,
"Properties" text,
"DmpProperties" text,
"FinalizedAt" timestamp(6) with time zone,
"isPublic" boolean DEFAULT false NOT NULL,
"PublishedAt" timestamp(6) with time zone,
"Project" uuid,
"extraProperties" text
);
--
-- TOC entry 4167 (class 0 OID 0)
-- Dependencies: 220
-- Name: COLUMN "DMP"."AssociatedDmps"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."DMP"."AssociatedDmps" IS 'More data about the DMP as defined by the profile';
--
-- TOC entry 221 (class 1259 OID 177923)
-- Name: DMPDatasetProfile; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DMPDatasetProfile" (
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
dmp uuid NOT NULL,
datasetprofile uuid NOT NULL,
data text NOT NULL
);
--
-- TOC entry 222 (class 1259 OID 177929)
-- Name: DMPOrganisation; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DMPOrganisation" (
"DMP" uuid NOT NULL,
"Organisation" uuid NOT NULL,
"Role" integer,
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL
);
--
-- TOC entry 4168 (class 0 OID 0)
-- Dependencies: 222
-- Name: TABLE "DMPOrganisation"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON TABLE public."DMPOrganisation" IS 'Linking of DMPs to Organisations';
--
-- TOC entry 4169 (class 0 OID 0)
-- Dependencies: 222
-- Name: COLUMN "DMPOrganisation"."Role"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."DMPOrganisation"."Role" IS 'Enumerator of roles';
--
-- TOC entry 223 (class 1259 OID 177933)
-- Name: DMPResearcher; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DMPResearcher" (
"DMP" uuid NOT NULL,
"Researcher" uuid NOT NULL,
"Role" integer,
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL
);
--
-- TOC entry 4170 (class 0 OID 0)
-- Dependencies: 223
-- Name: TABLE "DMPResearcher"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON TABLE public."DMPResearcher" IS 'Linking of DMPs to researchers';
--
-- TOC entry 4171 (class 0 OID 0)
-- Dependencies: 223
-- Name: COLUMN "DMPResearcher"."Role"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."DMPResearcher"."Role" IS 'Enumerator of roles';
--
-- TOC entry 224 (class 1259 OID 177937)
-- Name: DataRepository; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DataRepository" (
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Label" character varying(250),
"Abbreviation" character varying(50),
"Reference" character varying,
"Uri" character varying(250),
"Definition" xml,
"Status" smallint DEFAULT 0 NOT NULL,
"Created" timestamp without time zone DEFAULT now() NOT NULL,
"Modified" timestamp without time zone DEFAULT now() NOT NULL,
"CreationUser" uuid
);
--
-- TOC entry 225 (class 1259 OID 177946)
-- Name: Dataset; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Dataset" (
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Label" character varying(250) NOT NULL,
"DMP" uuid,
"Uri" character varying(250),
"Properties" text,
"Profile" uuid,
"Reference" text,
"Status" smallint DEFAULT 0 NOT NULL,
"Created" timestamp without time zone DEFAULT now() NOT NULL,
"Modified" timestamp without time zone DEFAULT now() NOT NULL,
"Description" text,
"Creator" uuid,
"FinalizedAt" timestamp(6) with time zone,
"DmpSectionIndex" integer NOT NULL
);
--
-- TOC entry 4172 (class 0 OID 0)
-- Dependencies: 225
-- Name: COLUMN "Dataset"."Uri"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Dataset"."Uri" IS 'URI of item';
--
-- TOC entry 4173 (class 0 OID 0)
-- Dependencies: 225
-- Name: COLUMN "Dataset"."Properties"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Dataset"."Properties" IS 'More data about the dataset such as Uri, data types etc as defined by the profile';
--
-- TOC entry 226 (class 1259 OID 177955)
-- Name: DatasetDataRepository; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DatasetDataRepository" (
"Dataset" uuid NOT NULL,
"DataRepository" uuid NOT NULL,
"Role" integer,
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Data" character varying
);
--
-- TOC entry 4174 (class 0 OID 0)
-- Dependencies: 226
-- Name: TABLE "DatasetDataRepository"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON TABLE public."DatasetDataRepository" IS 'Linking Dataset to DataRepository';
--
-- TOC entry 227 (class 1259 OID 177961)
-- Name: DatasetExternalDataset; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DatasetExternalDataset" (
"Id" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Dataset" uuid NOT NULL,
"ExternalDataset" uuid NOT NULL,
"Role" numeric,
"Data" character varying
);
--
-- TOC entry 228 (class 1259 OID 177967)
-- Name: DatasetRegistry; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DatasetRegistry" (
"Dataset" uuid NOT NULL,
"Registry" uuid NOT NULL,
"Role" integer,
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Data" character varying
);
--
-- TOC entry 4175 (class 0 OID 0)
-- Dependencies: 228
-- Name: TABLE "DatasetRegistry"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON TABLE public."DatasetRegistry" IS 'Linking Dataset to Registry';
--
-- TOC entry 229 (class 1259 OID 177973)
-- Name: DatasetService; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DatasetService" (
"Dataset" uuid NOT NULL,
"Service" uuid NOT NULL,
"Role" integer,
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Data" character varying
);
--
-- TOC entry 4176 (class 0 OID 0)
-- Dependencies: 229
-- Name: TABLE "DatasetService"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON TABLE public."DatasetService" IS 'Linking Dataset to Service';
--
-- TOC entry 230 (class 1259 OID 177979)
-- Name: Description; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Description" (
id uuid NOT NULL,
label character varying(250) NOT NULL,
plan uuid NOT NULL,
properties text,
status smallint DEFAULT 0 NOT NULL,
description text,
created_at timestamp without time zone DEFAULT now() NOT NULL,
updated_at timestamp without time zone DEFAULT now() NOT NULL,
is_active smallint DEFAULT 1 NOT NULL,
finalized_at timestamp without time zone,
description_template uuid NOT NULL,
created_by uuid NOT NULL,
plan_description_template uuid NOT NULL,
tenant uuid
);
--
-- TOC entry 231 (class 1259 OID 177988)
-- Name: DescriptionReference; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DescriptionReference" (
id uuid NOT NULL,
data text,
description_id uuid NOT NULL,
reference_id uuid NOT NULL,
created_at timestamp without time zone DEFAULT now() NOT NULL,
updated_at timestamp without time zone DEFAULT now() NOT NULL,
is_active smallint DEFAULT 1 NOT NULL,
tenant uuid
);
--
-- TOC entry 232 (class 1259 OID 177996)
-- Name: DescriptionStatus; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DescriptionStatus" (
id uuid NOT NULL,
name character varying(250) NOT NULL,
description text,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
internal_status smallint NOT NULL,
definition xml,
tenant uuid
);
--
-- TOC entry 233 (class 1259 OID 178001)
-- Name: DescriptionTag; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DescriptionTag" (
id uuid NOT NULL,
description uuid NOT NULL,
tag uuid NOT NULL,
is_active smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
tenant uuid
);
--
-- TOC entry 234 (class 1259 OID 178004)
-- Name: DescriptionTemplate; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DescriptionTemplate" (
id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
label character varying(250) NOT NULL,
definition xml NOT NULL,
status smallint DEFAULT 0 NOT NULL,
created_at timestamp without time zone DEFAULT now() NOT NULL,
updated_at timestamp without time zone DEFAULT now() NOT NULL,
description text NOT NULL,
group_id uuid NOT NULL,
version integer NOT NULL,
language character varying NOT NULL,
type uuid NOT NULL,
is_active smallint NOT NULL,
version_status smallint NOT NULL,
tenant uuid,
code character varying(200) NOT NULL
);
--
-- TOC entry 4177 (class 0 OID 0)
-- Dependencies: 234
-- Name: TABLE "DescriptionTemplate"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON TABLE public."DescriptionTemplate" IS 'Profiles for dmp datasets';
--
-- TOC entry 235 (class 1259 OID 178013)
-- Name: DescriptionTemplateType; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DescriptionTemplateType" (
id uuid NOT NULL,
name character varying(250) NOT NULL,
status smallint DEFAULT 0 NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
tenant uuid,
code character varying(200) NOT NULL
);
INSERT INTO public."DescriptionTemplateType" VALUES ('709a8400-10ca-11ee-be56-0242ac120002', 'Dataset', 1, '2024-09-06 14:42:43.525287', '2024-09-06 14:42:43.525287', 1, NULL, '6166bcf6-6650-48d3-8cf8-73b5d623ecf1');
INSERT INTO public."DescriptionTemplateType" VALUES ('3b15c046-a978-4b5a-9376-66525b7f1ac9', 'Software', 1, '2024-09-06 14:42:43.525287', '2024-09-06 14:42:43.525287', 1, NULL, 'd8ca6985-593d-4ff9-a1b9-9e4a6fd51b75');
--
-- TOC entry 236 (class 1259 OID 178017)
-- Name: DescriptionWorkflow; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DescriptionWorkflow" (
id uuid NOT NULL,
name character varying(250) NOT NULL,
description text,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
definition xml,
tenant uuid
);
--
-- TOC entry 237 (class 1259 OID 178022)
-- Name: DoiFunder; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."DoiFunder" (
id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
name character varying,
doi character varying
);
--
-- TOC entry 238 (class 1259 OID 178028)
-- Name: EmailConfirmation; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."EmailConfirmation" (
"ID" uuid NOT NULL,
email character varying NOT NULL,
"isConfirmed" boolean NOT NULL,
token uuid NOT NULL,
"userId" uuid NOT NULL,
"expiresAt" timestamp(4) with time zone NOT NULL,
data text
);
--
-- TOC entry 239 (class 1259 OID 178033)
-- Name: EntityDoi; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."EntityDoi" (
id uuid NOT NULL,
repository_id character varying(150) NOT NULL,
doi character varying(50) NOT NULL,
created_at timestamp(6) with time zone DEFAULT now() NOT NULL,
updated_at timestamp(6) with time zone DEFAULT now() NOT NULL,
entity_id uuid NOT NULL,
is_active smallint DEFAULT 1 NOT NULL,
tenant uuid,
entity_type smallint NOT NULL
);
--
-- TOC entry 240 (class 1259 OID 178039)
-- Name: ExternalDataset; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ExternalDataset" (
"Id" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Label" character varying NOT NULL,
"Abbreviation" character varying,
"Reference" character varying NOT NULL,
"Created" date NOT NULL,
"Modified" date NOT NULL,
"CreationUser" uuid
);
--
-- TOC entry 241 (class 1259 OID 178045)
-- Name: FileUpload; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."FileUpload" (
"ID" uuid NOT NULL,
"Name" character varying(250) NOT NULL,
"FileType" character varying(50) NOT NULL,
"EntityId" uuid NOT NULL,
"EntityType" public.entitytype NOT NULL,
"CreatedAt" timestamp(6) with time zone DEFAULT now() NOT NULL,
"IsDeleted" boolean DEFAULT false NOT NULL,
"Creator" uuid NOT NULL
);
--
-- TOC entry 242 (class 1259 OID 178050)
-- Name: Funder; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Funder" (
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Label" character varying(250) NOT NULL,
"Reference" character varying,
"Definition" character varying,
"Status" smallint DEFAULT 0 NOT NULL,
"Created" timestamp(4) with time zone DEFAULT now() NOT NULL,
"Modified" timestamp(4) with time zone DEFAULT now() NOT NULL,
"Type" numeric DEFAULT 0 NOT NULL,
"CreationUser" uuid
);
--
-- TOC entry 243 (class 1259 OID 178060)
-- Name: Grant; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Grant" (
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Label" character varying(250) NOT NULL,
"Abbreviation" character varying(50),
"Reference" character varying,
"Uri" character varying(250),
"Definition" character varying,
"Status" smallint DEFAULT 0 NOT NULL,
"Created" timestamp without time zone DEFAULT now() NOT NULL,
"Modified" timestamp without time zone DEFAULT now() NOT NULL,
"StartDate" timestamp without time zone,
"EndDate" timestamp without time zone,
"Description" text,
"CreationUser" uuid DEFAULT '332ffc36-bd51-4d4e-bf9a-ffb01fdee05a'::uuid,
"Type" numeric DEFAULT 0 NOT NULL,
"Content" uuid,
"Funder" uuid
);
--
-- TOC entry 4178 (class 0 OID 0)
-- Dependencies: 243
-- Name: TABLE "Grant"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON TABLE public."Grant" IS 'Table of project managed in the system';
--
-- TOC entry 4179 (class 0 OID 0)
-- Dependencies: 243
-- Name: COLUMN "Grant"."ID"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Grant"."ID" IS 'Unique identifier and primary key of item';
--
-- TOC entry 4180 (class 0 OID 0)
-- Dependencies: 243
-- Name: COLUMN "Grant"."Label"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Grant"."Label" IS 'A human readable long label of the item';
--
-- TOC entry 4181 (class 0 OID 0)
-- Dependencies: 243
-- Name: COLUMN "Grant"."Abbreviation"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Grant"."Abbreviation" IS 'A human readable abbreviation of the item';
--
-- TOC entry 4182 (class 0 OID 0)
-- Dependencies: 243
-- Name: COLUMN "Grant"."Reference"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Grant"."Reference" IS 'Additional reference data for the item along with information to allow how the item reached the system (e.g. via an external vocabulary)';
--
-- TOC entry 4183 (class 0 OID 0)
-- Dependencies: 243
-- Name: COLUMN "Grant"."Uri"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Grant"."Uri" IS 'URI of item';
--
-- TOC entry 4184 (class 0 OID 0)
-- Dependencies: 243
-- Name: COLUMN "Grant"."Definition"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Grant"."Definition" IS 'More data about the project such as web site, start/stop, etc';
--
-- TOC entry 244 (class 1259 OID 178071)
-- Name: Invitation; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Invitation" (
"Id" uuid NOT NULL,
"InvitationEmail" character varying NOT NULL,
"Token" uuid NOT NULL,
"CreationUser" uuid NOT NULL,
"Dmp" uuid NOT NULL,
"Properties" xml,
"AcceptedInvitation" boolean
);
--
-- TOC entry 245 (class 1259 OID 178076)
-- Name: Language; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Language" (
id uuid NOT NULL,
code character varying(20) NOT NULL,
payload text,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
ordinal integer NOT NULL,
tenant uuid
);
INSERT INTO public."Language" VALUES ('94b2ead6-e27c-45f5-a986-14dda5a58376', 'en', NULL, '2023-11-28 16:35:18.114652', '2023-11-29 15:50:57.253892', 1, 0, NULL);
INSERT INTO public."Language" VALUES ('defd282e-48d0-4f69-9b99-4137d5ce05af', 'gr', NULL, '2023-11-28 16:35:18.114652', '2023-11-29 15:50:57.253892', 1, 1, NULL);
INSERT INTO public."Language" VALUES ('1213a820-e6bb-492e-b63b-06a8c650ef92', 'es', NULL, '2023-11-28 16:35:18.114652', '2023-11-29 15:50:57.253892', 1, 3, NULL);
INSERT INTO public."Language" VALUES ('d8bb2f19-048d-4806-b99a-efdafe36de52', 'de', NULL, '2023-11-28 16:35:18.114652', '2023-11-29 15:50:57.253892', 1, 0, NULL);
INSERT INTO public."Language" VALUES ('acb16ec4-dbad-4aec-b6a0-214ebacc2983', 'hr', NULL, '2023-11-28 16:35:18.114652', '2023-11-29 15:50:57.253892', 1, 4, NULL);
INSERT INTO public."Language" VALUES ('1f26b803-df4b-4270-82b1-895bfff9ccf2', 'baq', NULL, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 5, NULL);
INSERT INTO public."Language" VALUES ('96b9c91a-a9e4-4a66-9361-a1eba22cc971', 'tr', NULL, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 6, NULL);
INSERT INTO public."Language" VALUES ('cdbb160f-a655-46eb-8328-589144e5a484', 'sk', NULL, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 7, NULL);
INSERT INTO public."Language" VALUES ('57c6129a-a918-4fb0-9c5b-9ec1c2ee1341', 'sr', NULL, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 8, NULL);
INSERT INTO public."Language" VALUES ('110d2e49-1580-4ee3-b1df-84da966f97a8', 'pt', NULL, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 9, NULL);
INSERT INTO public."Language" VALUES ('3b865f61-a863-43de-98cd-da86fc3f5940', 'pl', NULL, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 10, NULL);
--
-- TOC entry 246 (class 1259 OID 178081)
-- Name: Lock; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Lock" (
id uuid NOT NULL,
target uuid NOT NULL,
target_type smallint NOT NULL,
locked_by uuid NOT NULL,
locked_at timestamp without time zone NOT NULL,
touched_at timestamp without time zone,
tenant uuid
);
--
-- TOC entry 247 (class 1259 OID 178084)
-- Name: NotificationLegacy; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."NotificationLegacy" (
id uuid NOT NULL,
"UserId" uuid,
"IsActive" integer NOT NULL,
"Type" integer NOT NULL,
"ContactTypeHint" integer,
"ContactHint" character varying,
"Data" character varying,
"NotifyState" integer NOT NULL,
"NotifiedAt" timestamp without time zone,
"RetryCount" integer,
"CreatedAt" timestamp without time zone,
"UpdatedAt" timestamp without time zone
);
--
-- TOC entry 248 (class 1259 OID 178089)
-- Name: Organisation; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Organisation" (
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Label" character varying(250) NOT NULL,
"Abbreviation" character varying(50),
"Reference" character varying,
"Uri" character varying(250),
"Definition" xml,
"Status" smallint DEFAULT 0 NOT NULL,
"Created" timestamp without time zone DEFAULT now() NOT NULL,
"Modified" timestamp without time zone DEFAULT now() NOT NULL
);
--
-- TOC entry 4185 (class 0 OID 0)
-- Dependencies: 248
-- Name: TABLE "Organisation"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON TABLE public."Organisation" IS 'Table of organizations utilized in the project';
--
-- TOC entry 4186 (class 0 OID 0)
-- Dependencies: 248
-- Name: COLUMN "Organisation"."ID"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Organisation"."ID" IS 'Unique identifier and primary key of item';
--
-- TOC entry 4187 (class 0 OID 0)
-- Dependencies: 248
-- Name: COLUMN "Organisation"."Label"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Organisation"."Label" IS 'A human readable long label of the item';
--
-- TOC entry 4188 (class 0 OID 0)
-- Dependencies: 248
-- Name: COLUMN "Organisation"."Abbreviation"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Organisation"."Abbreviation" IS 'A human readable abbreviation of the item';
--
-- TOC entry 4189 (class 0 OID 0)
-- Dependencies: 248
-- Name: COLUMN "Organisation"."Reference"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Organisation"."Reference" IS 'Reference to the URI of the item along with information to allow how the item reached the system (e.g. via an external vocabulary)';
--
-- TOC entry 4190 (class 0 OID 0)
-- Dependencies: 248
-- Name: COLUMN "Organisation"."Uri"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Organisation"."Uri" IS 'URI of item';
--
-- TOC entry 4191 (class 0 OID 0)
-- Dependencies: 248
-- Name: COLUMN "Organisation"."Definition"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Organisation"."Definition" IS 'More data about the Organisation such as web site, type etc';
--
-- TOC entry 249 (class 1259 OID 178098)
-- Name: Plan; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Plan" (
id uuid NOT NULL,
label character varying(250) NOT NULL,
version integer NOT NULL,
status smallint DEFAULT 0 NOT NULL,
properties text,
group_id uuid NOT NULL,
description text,
created_at timestamp without time zone DEFAULT now() NOT NULL,
updated_at timestamp without time zone DEFAULT now() NOT NULL,
is_active smallint DEFAULT 1 NOT NULL,
finalized_at timestamp without time zone,
creator uuid NOT NULL,
blueprint uuid NOT NULL,
language character varying(100),
access_type smallint,
public_after timestamp without time zone,
version_status smallint DEFAULT 1 NOT NULL,
tenant uuid
);
--
-- TOC entry 250 (class 1259 OID 178108)
-- Name: PlanBlueprint; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."PlanBlueprint" (
id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
label character varying(250) NOT NULL,
definition xml,
status smallint DEFAULT 0 NOT NULL,
created_at timestamp without time zone DEFAULT now() NOT NULL,
updated_at timestamp without time zone DEFAULT now() NOT NULL,
is_active smallint NOT NULL,
tenant uuid,
group_id uuid NOT NULL,
version integer NOT NULL,
version_status smallint NOT NULL,
code character varying(200) NOT NULL
);
INSERT INTO public."PlanBlueprint" VALUES ('86635178-36a6-484f-9057-a934e4eeecd5', 'Dmp Default Blueprint', '<?xml version="1.0" standalone="yes"?><root><sections><section id="f94e50e0-cb97-4c65-8b88-e5db6badd41d" label="Main Info" description="" ordinal="1" hasTemplates="false" prefillingSourcesEnabled="false"><fields><system type="Title" id="e62c3fa2-4cbe-41bf-a00e-ad722c7c7da1" category="System" label="Title of DMP" placeholder="Title of DMP" description="" ordinal="1" required="true"/><system type="Description" id="eed2871d-5201-401e-8453-87afbeac77e3" category="System" label="Description" placeholder="Fill with description" description="Briefly describe the context and purpose of the DMP" ordinal="2" required="true"/><referenceType referenceTypeId="5a2112e7-ea99-4cfe-98a1-68665e26726e" multipleSelect="true" id="41a0b1db-b186-467d-8edf-7d3b2456f95e" category="ReferenceType" label="Researchers" placeholder="Select researchers" description="Add here the names of people that have produced, processed, analysed the data described in the DMP." ordinal="3" required="false"/><referenceType referenceTypeId="7eeffb98-58fb-4921-82ec-e27f32f8e738" multipleSelect="true" id="0f0afb55-a11b-41db-a4d0-67ebb74d8685" category="ReferenceType" label="Organizations" placeholder="Select organization" description="Add here the names of the organizations contributing to the creation and revision of the DMPs" ordinal="4" required="false"/><system type="Language" id="db493026-3130-4730-9b93-da6b77d2eea4" category="System" label="Language" placeholder="Language" description="Select the language of your DMP" ordinal="5" required="true"/><system type="Contact" id="22deb104-1c46-4ea8-8261-8fdc9500dca2" category="System" label="Contact" placeholder="Contact" description="" ordinal="6" required="true"/></fields></section><section id="3c2608e5-9320-4d94-9ed7-1eab9500d84b" label="Funding" description="" ordinal="2" hasTemplates="false" prefillingSourcesEnabled="false"><fields><referenceType referenceTypeId="538928bb-c7c6-452e-b66d-08e539f5f082" multipleSelect="false" id="527af8fe-27b0-4715-9e1e-35a2fce834a1" category="ReferenceType" label="Funding organizations" placeholder="Funder" description="Select a funder of your research or add new" ordinal="1" required="true"/><referenceType referenceTypeId="5b9c284f-f041-4995-96cc-fad7ad13289c" multipleSelect="false" id="4d12904e-2501-4d57-8d2b-1ac795c297e7" category="ReferenceType" label="Grants" placeholder="Grant" description="Find the grant of your research or add new" ordinal="2" required="true"/><referenceType referenceTypeId="3d372db5-a456-45e6-a845-e41e1a8311f8" multipleSelect="false" id="82f235c8-98fc-48d1-8245-36ab08f01036" category="ReferenceType" label="Project" placeholder="Project" description="Projects in Argos are perceived as distinct activities falling under a grant or common activities under different grants in collaborative schemas, eg open call for contributions. Please complete it for the grant associated to your organization if your project falls under this category. In all other cases, please leave blank and it will be autocompleted." ordinal="3" required="false"/></fields></section><section id="2a77e1f6-9989-4aeb-acd9-48e911a92abd" label="License" description="" ordinal="3" hasTemplates="false" prefillingSourcesEnabled="false"><fields><referenceType referenceTypeId="2baab1e8-561f-4c15-84c3-571b811c52f6" multipleSelect="true" id="75c31705-6731-45dd-9853-75c5d0627439" category="ReferenceType" label="License" placeholder="License" description="Assign a license to your DMP by selecting the most appropriate from the list." ordinal="1" required="false"/><system type="AccessRights" id="990df932-eae6-44ca-85da-5378b010f439" category="System" label="Access Rights" placeholder="Access Rights" description="Choose how the DMP is displayed after is published on Zenodo. By choosing Open Access, the DMP will be open on Zenodo after the Publication Date. By choosing Restricted Access, the DMP will be restricted after the publication is made." ordinal="2" required="true"/></fields></section><section id="0db7845b-0e7c-41df-8d91-cbca97995fd5" label="Templates" description="" ordinal="4" hasTemplates="true" prefillingSourcesEnabled="false"/></sections></root>', 1, '2024-02-15 10:26:49.804431', '2024-02-15 10:26:49.804431', 1, NULL, '325fc092-e521-4c4a-86da-2ebda77fe323', 1, 0, '325fc092-e521-4c4a-86da-2ebda77fe323');
--
-- TOC entry 251 (class 1259 OID 178117)
-- Name: PlanDescriptionTemplate; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."PlanDescriptionTemplate" (
id uuid NOT NULL,
plan uuid NOT NULL,
description_template_group uuid NOT NULL,
section_id uuid NOT NULL,
created_at timestamp without time zone DEFAULT now() NOT NULL,
updated_at timestamp without time zone DEFAULT now() NOT NULL,
is_active smallint DEFAULT 1 NOT NULL,
tenant uuid
);
--
-- TOC entry 252 (class 1259 OID 178123)
-- Name: PlanReference; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."PlanReference" (
id uuid NOT NULL,
plan_id uuid NOT NULL,
reference_id uuid NOT NULL,
data text,
created_at timestamp without time zone DEFAULT now() NOT NULL,
updated_at timestamp without time zone DEFAULT now() NOT NULL,
is_active smallint DEFAULT 1 NOT NULL,
tenant uuid
);
--
-- TOC entry 253 (class 1259 OID 178131)
-- Name: PlanStatus; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."PlanStatus" (
id uuid NOT NULL,
name character varying(250) NOT NULL,
description text,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
internal_status smallint NOT NULL,
tenant uuid,
definition xml
);
--
-- TOC entry 254 (class 1259 OID 178136)
-- Name: PlanUser; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."PlanUser" (
id uuid NOT NULL,
plan uuid NOT NULL,
"user" uuid NOT NULL,
role smallint DEFAULT 0 NOT NULL,
created_at timestamp without time zone DEFAULT now() NOT NULL,
updated_at timestamp without time zone DEFAULT now() NOT NULL,
is_active smallint DEFAULT 1 NOT NULL,
tenant uuid,
section_id uuid
);
--
-- TOC entry 255 (class 1259 OID 178143)
-- Name: PlanWorkflow; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."PlanWorkflow" (
id uuid NOT NULL,
name character varying(250) NOT NULL,
description text,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
definition xml,
tenant uuid
);
--
-- TOC entry 256 (class 1259 OID 178148)
-- Name: PrefillingSource; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."PrefillingSource" (
id uuid NOT NULL,
label character varying(250) NOT NULL,
code character varying(100) NOT NULL,
definition xml NOT NULL,
is_active smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
tenant uuid
);
--
-- TOC entry 257 (class 1259 OID 178153)
-- Name: Project; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Project" (
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Label" character varying(250) NOT NULL,
"Abbreviation" character varying(50),
"Reference" character varying,
"Uri" character varying(250),
"Definition" character varying,
"Status" smallint DEFAULT 0 NOT NULL,
"Created" timestamp(4) with time zone DEFAULT now() NOT NULL,
"Modified" timestamp(4) with time zone DEFAULT now() NOT NULL,
"StartDate" timestamp(4) with time zone,
"EndDate" timestamp(4) with time zone,
"Description" text,
"CreationUser" uuid,
"Type" numeric DEFAULT 0 NOT NULL,
"Content" uuid
);
--
-- TOC entry 258 (class 1259 OID 178163)
-- Name: QueueInbox; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."QueueInbox" (
id uuid NOT NULL,
queue character varying(200) NOT NULL,
exchange character varying(200) NOT NULL,
route character varying(200) NOT NULL,
application_id character varying(100) NOT NULL,
message_id uuid NOT NULL,
message json NOT NULL,
retry_count integer,
status smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
tenant uuid,
is_active smallint NOT NULL
);
--
-- TOC entry 259 (class 1259 OID 178168)
-- Name: QueueOutbox; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."QueueOutbox" (
id uuid NOT NULL,
exchange character varying(200) NOT NULL,
route character varying(200) NOT NULL,
message_id uuid NOT NULL,
notify_status smallint NOT NULL,
retry_count integer NOT NULL,
published_at timestamp without time zone,
confirmed_at timestamp without time zone,
tenant uuid,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
message text NOT NULL,
is_active smallint NOT NULL
);
--
-- TOC entry 260 (class 1259 OID 178173)
-- Name: Reference; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Reference" (
id uuid NOT NULL,
label character varying(1024) NOT NULL,
description text,
abbreviation character varying(50),
source character varying(1024),
is_active smallint NOT NULL,
created_by uuid,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
type uuid NOT NULL,
definition character varying,
reference character varying(1024) NOT NULL,
source_type smallint NOT NULL,
tenant uuid
);
--
-- TOC entry 261 (class 1259 OID 178178)
-- Name: ReferenceType; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ReferenceType" (
id uuid NOT NULL,
name character varying(250) NOT NULL,
code character varying(100) NOT NULL,
definition character varying NOT NULL,
is_active smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
tenant uuid
);
INSERT INTO public."ReferenceType" VALUES ('2baab1e8-561f-4c15-84c3-571b811c52f6', 'Licenses', 'licenses', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="uri" label="uri" description="uri" dataType="Text"/></fields><sources><api><key>opendefinition</key><label>Open Definition</label><ordinal>1</ordinal><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/vnd.api+json; charset=utf-8</contentType><filterType>local</filterType><firstPage>1</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$[*]</paginationPath><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>title</responsePath></field><field><code>description</code><responsePath>maintainer</responsePath></field><field><code>uri</code><responsePath>url</responsePath></field></fieldsMapping><resultsArrayPath>$[*]</resultsArrayPath></results><url>https://licenses.opendefinition.org/licenses/groups/all.json</url></api></sources></definition>', 1, '2023-11-16 16:24:12.162675', '2024-04-29 08:41:29.944368', NULL);
INSERT INTO public."ReferenceType" VALUES ('2beacaad-3223-43ad-ad99-1e5f21328e7b', 'Registries', 'registries', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="url" label="url" description="url" dataType="Text"/></fields><sources><api><key>rda-metadata-schemes</key><label>RDA Metadata Schemes</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=utf-8</contentType><filterType>remote</filterType><firstPage>1</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$[''meta''][''pagination''][''page'',''pages'',''count'']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>mscid</responsePath></field><field><code>label</code><responsePath>title</responsePath></field><field><code>description</code><responsePath>description</responsePath></field><field><code>url</code><responsePath>uri</responsePath></field></fieldsMapping><resultsArrayPath>$[''data''][''items''][*]</resultsArrayPath></results><url>https://rdamsc.bath.ac.uk/api2/m?q={like}&amp;start=1&amp;pageSize={pageSize}</url></api></sources></definition>', 1, '2023-11-16 10:08:21.240804', '2024-02-16 09:16:50.456347', NULL);
INSERT INTO public."ReferenceType" VALUES ('3d372db5-a456-45e6-a845-e41e1a8311f8', 'Projects', 'projects', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><static><key>project</key><label>project</label><ordinal>1</ordinal><type>1</type><items><item><options><option><code>reference_id</code><value>cite_project</value></option><option><code>label</code><value>Cite Project</value></option><option><code>description</code><value>Cite Project</value></option></options></item></items></static></sources></definition>', 1, '2023-11-17 08:55:05.190807', '2023-11-17 08:56:23.012619', NULL);
INSERT INTO public."ReferenceType" VALUES ('538928bb-c7c6-452e-b66d-08e539f5f082', 'Funders', 'funders', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><api><key>openaire</key><label>OpenAIRE</label><ordinal>1</ordinal><type>0</type><authentication><authUrlMethod>1</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=utf-8</contentType><filterType>local</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$[*]</paginationPath><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>name</responsePath></field><field><code>description</code><responsePath>name</responsePath></field></fieldsMapping><resultsArrayPath>$[''refineResults''][''relfunder''][*]</resultsArrayPath></results><url>https://services.openaire.eu/search/v2/api/results?&amp;refine=true&amp;fields=relfunder&amp;page={page}&amp;size=0&amp;format=json&amp;sf=relfunder</url></api></sources></definition>', 1, '2023-11-16 11:22:57.942097', '2024-02-16 09:16:19.195353', NULL);
INSERT INTO public."ReferenceType" VALUES ('5a2112e7-ea99-4cfe-98a1-68665e26726e', 'Researchers', 'researchers', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="firstName" label="Researchers First Name" description="Researchers First Name" dataType="Text"/><field code="lastName" label="Researchers Last Name" description="Researchers Last Name" dataType="Text"/></fields><sources><api><key>orcid</key><label>ORCID</label><ordinal>1</ordinal><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=UTF-8</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$[''num-found'']</paginationPath><queries><query><cases><case><likePattern>^[A-Za-z0-9]+ [A-Za-z0-9]+$</likePattern><separator> </separator><value>((given-names:{like1}+AND+family-name:{like2})+OR+(given-names:{like2}+AND+family-name:{like1}))</value></case><case><likePattern>\d{4}-\d{4}-\d{4}-\d{4}</likePattern><value>orcid:{like}</value></case><case><likePattern>.+</likePattern><value>given-names:{like}+OR+family-name:{like}</value></case></cases><defaultValue>*</defaultValue><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>orcid-id</responsePath></field><field><code>label</code><responsePath>@{{given-names}} @{{family-names}} (@{{orcid-id}})</responsePath></field><field><code>description</code><responsePath>institution-name</responsePath></field><field><code>fistName</code><responsePath>given-names</responsePath></field><field><code>lastName</code><responsePath>family-names</responsePath></field></fieldsMapping><resultsArrayPath>$[''expanded-result''][*]</resultsArrayPath></results><url>https://pub.orcid.org/v3.0/expanded-search/?q={like}&amp;start={page}&amp;rows={pageSize}</url></api></sources></definition>', 1, '2023-11-16 18:21:43.272982', '2024-04-17 09:44:53.656849', NULL);
INSERT INTO public."ReferenceType" VALUES ('ab7cdd93-bea2-440d-880d-3846dad80b21', 'Taxonomies', 'taxonomies', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><static><key>taxonomy</key><label>Taxonomies</label><ordinal>1</ordinal><type>1</type><items><item><options><option><code>reference_id</code><value>cite_taxonomy</value></option><option><code>label</code><value>Cite Taxonom</value></option><option><code>description</code><value>Cite Taxonom</value></option></options></item></items></static></sources></definition>', 1, '2023-11-16 17:48:09.769599', '2024-04-25 12:36:57.923984', NULL);
INSERT INTO public."ReferenceType" VALUES ('8ec7556b-749d-4c4a-a4b9-43d064693795', 'Journals', 'journals', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><api><key>openaire</key><label>OpenAIRE Journals</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>1</requestHttpMethod><paginationPath>$[''meta''][''pagination''][''page'',''pages'',''count'']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody>{"officialname": "{like}", "typology":"journal"}</requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>officialname</responsePath></field><field><code>description</code><responsePath>officialname</responsePath></field></fieldsMapping><resultsArrayPath>$[''datasourceInfo''][*]</resultsArrayPath></results><url>https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&amp;order=ASCENDING</url></api></sources></definition>', 1, '2023-11-16 17:40:12.811667', '2024-02-16 09:09:22.816978', NULL);
INSERT INTO public."ReferenceType" VALUES ('9ec2000d-95c7-452e-b356-755fc8e2574c', 'Services', 'services', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="uri" label="Service Uri" description="Service Uri" dataType="Text"/></fields><sources><api><key>eosc</key><label>EOSC Providers</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=utf-8</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$[''from'',''to'',''total'']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>name</responsePath></field><field><code>description</code><responsePath>description</responsePath></field><field><code>uri</code><responsePath>webpage</responsePath></field></fieldsMapping><resultsArrayPath>$[''results''][*]</resultsArrayPath></results><url>https://providers.eosc-portal.eu/api/service/all?query={like}&amp;from={page}&amp;quantity={pageSize}</url></api></sources></definition>', 1, '2023-11-16 17:57:22.081053', '2024-02-16 09:07:13.944104', NULL);
INSERT INTO public."ReferenceType" VALUES ('7eeffb98-58fb-4921-82ec-e27f32f8e738', 'Organisations', 'organisations', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="pid" label="Pid Organisations" description="Pid Organisations" dataType="Text"/><field code="pidTypeField" label="PidType Organisations" description="PidType Organisations" dataType="Text"/></fields><sources><api><key>openaire</key><label>OpenAIRE</label><ordinal>1</ordinal><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=utf-8</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$[''meta''][''pagination''][''page'',''pages'',''count'']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>originalId.first()</responsePath></field><field><code>label</code><responsePath>legalname</responsePath></field><field><code>description</code><responsePath>legalname</responsePath></field><field><code>pid</code><responsePath>[''pid''][''content'']</responsePath></field><field><code>pidTypeField</code><responsePath>[''pid''][''classid'']</responsePath></field></fieldsMapping><resultsArrayPath>$[''results''][*][''result''][''metadata''][''oaf:entity''][''oaf:organization'']</resultsArrayPath></results><url>https://services.openaire.eu/search/v2/api/organizations/?q={like}&amp;page={page}&amp;size={pageSize}&amp;format=json</url></api></sources></definition>', 1, '2023-11-17 10:13:15.873808', '2024-08-01 10:20:58.305622', NULL);
INSERT INTO public."ReferenceType" VALUES ('d26b64ba-fda0-4b14-b3ef-9856a492d55a', 'Repositories', 'repositories', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><api><key>openaire</key><label>OpenAIRE</label><ordinal>1</ordinal><referenceTypeDependencyIds/><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>1</requestHttpMethod><paginationPath>$[''meta''][''pagination''][''page'',''pages'',''count'']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody>{"officialname": "{like}", "typology":"data"}</requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>officialname</responsePath></field><field><code>description</code><responsePath>officialname</responsePath></field></fieldsMapping><resultsArrayPath>$[''datasourceInfo''][*]</resultsArrayPath></results><url>https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&amp;order=ASCENDING</url></api></sources></definition>', 1, '2023-11-16 17:10:33.849688', '2024-02-16 12:45:18.66016', NULL);
INSERT INTO public."ReferenceType" VALUES ('1e927daa-b856-443f-96da-22f325f7322f', 'Publication Repositories', 'pubRepositories', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><api><key>openaire</key><label>OpenAIRE publication repositories 1</label><ordinal>1</ordinal><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>1</requestHttpMethod><paginationPath>$[''meta''][''pagination''][''page'',''pages'',''count'']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody>{"officialname": "{like}", "typology":"pubsrepository::institutional"}</requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>officialname</responsePath></field><field><code>description</code><responsePath>officialname</responsePath></field></fieldsMapping><resultsArrayPath>$[''datasourceInfo''][*]</resultsArrayPath></results><url>https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&amp;order=ASCENDING</url></api><api><key>openaire</key><label>OpenAIRE publication repositories 2</label><ordinal>2</ordinal><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>1</requestHttpMethod><paginationPath>$[''meta''][''pagination''][''page'',''pages'',''count'']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody>{"officialname": "{like}", "typology":"pubsrepository::thematic"}</requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>officialname</responsePath></field><field><code>description</code><responsePath>officialname</responsePath></field></fieldsMapping><resultsArrayPath>$[''datasourceInfo''][*]</resultsArrayPath></results><url>https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&amp;order=ASCENDING</url></api><api><key>openaire</key><label>OpenAIRE publication repositories 3</label><ordinal>3</ordinal><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>1</requestHttpMethod><paginationPath>$[''meta''][''pagination''][''page'',''pages'',''count'']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody>{"officialname": "{like}", "typology":"pubsrepository::unknown"}</requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>id</responsePath></field><field><code>label</code><responsePath>officialname</responsePath></field><field><code>description</code><responsePath>officialname</responsePath></field></fieldsMapping><resultsArrayPath>$[''datasourceInfo''][*]</resultsArrayPath></results><url>https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&amp;order=ASCENDING</url></api></sources></definition>', 1, '2023-11-16 17:17:40.882679', '2024-05-01 11:52:50.297337', NULL);
INSERT INTO public."ReferenceType" VALUES ('a3ce0fb2-d72c-48bb-b322-7401940cb802', 'Datasets', 'datasets', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="pid" label="Pid Datasets" description="Pid Datasets" dataType="Text"/><field code="pidTypeField" label="PidTypeField Datasets" description="PidTypeField Datasets" dataType="Text"/></fields><sources><api><key>openaire</key><label>OpenAIRE</label><ordinal>1</ordinal><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=utf-8</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$[''meta''][''pagination''][''page'',''pages'',''count'']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>originalId.first()</responsePath></field><field><code>label</code><responsePath>title.content.first()</responsePath></field><field><code>description</code><responsePath>title.content.first()</responsePath></field><field><code>pid</code><responsePath>[''pid''][''content'']</responsePath></field><field><code>pidTypeField</code><responsePath>[''pid''][''classid'']</responsePath></field></fieldsMapping><resultsArrayPath>$[''results''][*][''result''][''metadata''][''oaf:entity''][''oaf:result'']</resultsArrayPath></results><url>https://services.openaire.eu/search/v2/api/datasets/?q={like}&amp;page={page}&amp;size={pageSize}&amp;format=json</url></api></sources></definition>', 1, '2023-11-17 10:26:55.332111', '2024-08-01 08:36:25.233124', NULL);
INSERT INTO public."ReferenceType" VALUES ('5b9c284f-f041-4995-96cc-fad7ad13289c', 'Grants', 'grants', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><api><key>openaire</key><label>OpenAIRE</label><ordinal>1</ordinal><referenceTypeDependencyIds><referenceTypeDependencyIds>538928bb-c7c6-452e-b66d-08e539f5f082</referenceTypeDependencyIds></referenceTypeDependencyIds><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json; charset=utf-8</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$[''meta''][''pagination''][''page'',''pages'',''count'']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><defaultValue>*</defaultValue><name>like</name></query><query><cases><case><referenceTypeId>538928bb-c7c6-452e-b66d-08e539f5f082</referenceTypeId><referenceTypeSourceKey>openaire</referenceTypeSourceKey><value>&amp;fq=(funder exact "{reference}")</value></case></cases><defaultValue></defaultValue><name>funderQuery</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>originalId.first()</responsePath></field><field><code>label</code><responsePath>@{{title}} (@{{originalId}})</responsePath></field><field><code>description</code><responsePath>title</responsePath></field></fieldsMapping><resultsArrayPath>$[''results''][*][''result''][''metadata''][''oaf:entity''][''oaf:project'']</resultsArrayPath></results><url>https://services.openaire.eu/search/v2/api/resources?query=((oaftype exact project) and ((projectcode_nt exact "{like}")or({like}))){funderQuery}&amp;page={page}&amp;size={pageSize}&amp;format=json</url></api></sources></definition>', 1, '2023-11-16 16:41:53.106646', '2024-08-01 10:26:53.2824', NULL);
INSERT INTO public."ReferenceType" VALUES ('51225b6a-86a6-48ac-9192-f15096dbcb8a', 'Publications', 'publications', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields><field code="pid" label="pid" description="pid" dataType="Text"/><field code="pidTypeField" label="pidTypeField" description="pidTypeField" dataType="Text"/></fields><sources><api><key>openaire</key><label>OpenAIRE Publications</label><ordinal>1</ordinal><type>0</type><authentication><authUrlMethod>0</authUrlMethod><authUrlBody></authUrlBody><authTokenPath></authTokenPath><authUrl></authUrl><enabled>false</enabled><authType></authType></authentication><contentType>application/json;charset=UTF-8</contentType><filterType>remote</filterType><firstPage>0</firstPage><requestHttpMethod>0</requestHttpMethod><paginationPath>$[''meta''][''pagination''][''page'',''pages'',''count'']</paginationPath><queries><query><cases><case><value>{like}</value></case></cases><defaultValue>*</defaultValue><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>reference_id</code><responsePath>originalId.first()</responsePath></field><field><code>label</code><responsePath>title.content.first()</responsePath></field><field><code>description</code><responsePath>title.content.first()</responsePath></field><field><code>pid</code><responsePath>[''pid''][''content'']</responsePath></field><field><code>pidTypeField</code><responsePath>[''pid''][''classid'']</responsePath></field></fieldsMapping><resultsArrayPath>$[''results''][*][''result''][''metadata''][''oaf:entity''][''oaf:result'']</resultsArrayPath></results><url>https://services.openaire.eu/search/v2/api/resources?query=oaftype exact result and {like}&amp;page={page}&amp;size={pageSize}&amp;format=json</url></api></sources></definition>', 1, '2023-11-16 13:07:20.591433', '2024-08-01 10:28:39.011456', NULL);
INSERT INTO public."ReferenceType" VALUES ('f39dbc8c-1e31-48cd-a0b1-0bf2921d87c4', 'Currencies', 'currencies', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><sources><static><key>currencies</key><label>currencies</label><ordinal>1</ordinal><type>1</type><items><item><options><option><code>reference_id</code><value>AFN</value></option><option><code>label</code><value>Afghani</value></option><option><code>description</code><value>Afghani</value></option></options></item><item><options><option><code>reference_id</code><value>EUR</value></option><option><code>label</code><value>Euro</value></option><option><code>description</code><value>Euro</value></option></options></item><item><options><option><code>reference_id</code><value>ALL</value></option><option><code>label</code><value>Lek</value></option><option><code>description</code><value>Lek</value></option></options></item><item><options><option><code>reference_id</code><value>DZD</value></option><option><code>label</code><value>Algerian Dinar</value></option><option><code>description</code><value>Algerian Dinar</value></option></options></item><item><options><option><code>reference_id</code><value>USD</value></option><option><code>label</code><value>US Dollar</value></option><option><code>description</code><value>US Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>AOA</value></option><option><code>label</code><value>Kwanza</value></option><option><code>description</code><value>Kwanza</value></option></options></item><item><options><option><code>reference_id</code><value>XCD</value></option><option><code>label</code><value>East Caribbean Dollar</value></option><option><code>description</code><value>East Caribbean Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>ARS</value></option><option><code>label</code><value>Argentine Peso</value></option><option><code>description</code><value>Argentine Peso</value></option></options></item><item><options><option><code>reference_id</code><value>AMD</value></option><option><code>label</code><value>Armenian Dram</value></option><option><code>description</code><value>Armenian Dram</value></option></options></item><item><options><option><code>reference_id</code><value>AWG</value></option><option><code>label</code><value>Aruban Florin</value></option><option><code>description</code><value>Aruban Florin</value></option></options></item><item><options><option><code>reference_id</code><value>AUD</value></option><option><code>label</code><value>Australian Dollar</value></option><option><code>description</code><value>Australian Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>AZN</value></option><option><code>label</code><value>Azerbaijan Manat</value></option><option><code>description</code><value>Azerbaijan Manat</value></option></options></item><item><options><option><code>reference_id</code><value>BSD</value></option><option><code>label</code><value>Bahamian Dollar</value></option><option><code>description</code><value>Bahamian Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>BHD</value></option><option><code>label</code><value>Bahraini Dinar</value></option><option><code>description</code><value>Bahraini Dinar</value></option></options></item><item><options><option><code>reference_id</code><value>BDT</value></option><option><code>label</code><value>Taka</value></option><option><code>description</code><value>Taka</value></option></options></item><item><options><option><code>reference_id</code><value>BBD</value></option><option><code>label</code><value>Barbados Dollar</value></option><option><code>description</code><value>Barbados Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>BYN</value></option><option><code>label</code><value>Belarusian Ruble</value></option><option><code>description</code><value>Belarusian Ruble</value></option></options></item><item><options><option><code>reference_id</code><value>BZD</value></option><option><code>label</code><value>Belize Dollar</value></option><option><code>description</code><value>Belize Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>XOF</value></option><option><code>label</code><value>CFA Franc BCEAO</value></option><option><code>description</code><value>CFA Franc BCEAO</value></option></options></item><item><options><option><code>reference_id</code><value>BMD</value></option><option><code>label</code><value>Bermudian Dollar</value></option><option><code>description</code><value>Bermudian Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>INR</value></option><option><code>label</code><value>Indian Rupee</value></option><option><code>description</code><value>Indian Rupee</value></option></options></item><item><options><option><code>reference_id</code><value>BTN</value></option><option><code>label</code><value>Ngultrum</value></option><option><code>description</code><value>Ngultrum</value></option></options></item><item><options><option><code>reference_id</code><value>BOB</value></option><option><code>label</code><value>Boliviano</value></option><option><code>description</code><value>Boliviano</value></option></options></item><item><options><option><code>reference_id</code><value>BOV</value></option><option><code>label</code><value>Mvdol</value></option><option><code>description</code><value>Mvdol</value></option></options></item><item><options><option><code>reference_id</code><value>BAM</value></option><option><code>label</code><value>Convertible Mark</value></option><option><code>description</code><value>Convertible Mark</value></option></options></item><item><options><option><code>reference_id</code><value>BWP</value></option><option><code>label</code><value>Pula</value></option><option><code>description</code><value>Pula</value></option></options></item><item><options><option><code>reference_id</code><value>NOK</value></option><option><code>label</code><value>Norwegian Krone</value></option><option><code>description</code><value>Norwegian Krone</value></option></options></item><item><options><option><code>reference_id</code><value>BRL</value></option><option><code>label</code><value>Brazilian Real</value></option><option><code>description</code><value>Brazilian Real</value></option></options></item><item><options><option><code>reference_id</code><value>BND</value></option><option><code>label</code><value>Brunei Dollar</value></option><option><code>description</code><value>Brunei Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>BGN</value></option><option><code>label</code><value>Bulgarian Lev</value></option><option><code>description</code><value>Bulgarian Lev</value></option></options></item><item><options><option><code>reference_id</code><value>BIF</value></option><option><code>label</code><value>Burundi Franc</value></option><option><code>description</code><value>Burundi Franc</value></option></options></item><item><options><option><code>reference_id</code><value>CVE</value></option><option><code>label</code><value>Cabo Verde Escudo</value></option><option><code>description</code><value>Cabo Verde Escudo</value></option></options></item><item><options><option><code>reference_id</code><value>KHR</value></option><option><code>label</code><value>Riel</value></option><option><code>description</code><value>Riel</value></option></options></item><item><options><option><code>reference_id</code><value>XAF</value></option><option><code>label</code><value>CFA Franc BEAC</value></option><option><code>description</code><value>CFA Franc BEAC</value></option></options></item><item><options><option><code>reference_id</code><value>CAD</value></option><option><code>label</code><value>Canadian Dollar</value></option><option><code>description</code><value>Canadian Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>KYD</value></option><option><code>label</code><value>Cayman Islands Dollar</value></option><option><code>description</code><value>Cayman Islands Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>CLP</value></option><option><code>label</code><value>Chilean Peso</value></option><option><code>description</code><value>Chilean Peso</value></option></options></item><item><options><option><code>reference_id</code><value>CLF</value></option><option><code>label</code><value>Unidad de Fomento</value></option><option><code>description</code><value>Unidad de Fomento</value></option></options></item><item><options><option><code>reference_id</code><value>CNY</value></option><option><code>label</code><value>Yuan Renminbi</value></option><option><code>description</code><value>Yuan Renminbi</value></option></options></item><item><options><option><code>reference_id</code><value>COP</value></option><option><code>label</code><value>Colombian Peso</value></option><option><code>description</code><value>Colombian Peso</value></option></options></item><item><options><option><code>reference_id</code><value>COU</value></option><option><code>label</code><value>Unidad de Valor Real</value></option><option><code>description</code><value>Unidad de Valor Real</value></option></options></item><item><options><option><code>reference_id</code><value>KMF</value></option><option><code>label</code><value>Comorian Franc </value></option><option><code>description</code><value>Comorian Franc </value></option></options></item><item><options><option><code>reference_id</code><value>CDF</value></option><option><code>label</code><value>Congolese Franc</value></option><option><code>description</code><value>Congolese Franc</value></option></options></item><item><options><option><code>reference_id</code><value>NZD</value></option><option><code>label</code><value>New Zealand Dollar</value></option><option><code>description</code><value>New Zealand Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>CRC</value></option><option><code>label</code><value>Costa Rican Colon</value></option><option><code>description</code><value>Costa Rican Colon</value></option></options></item><item><options><option><code>reference_id</code><value>HRK</value></option><option><code>label</code><value>Kuna</value></option><option><code>description</code><value>Kuna</value></option></options></item><item><options><option><code>reference_id</code><value>CUP</value></option><option><code>label</code><value>Cuban Peso</value></option><option><code>description</code><value>Cuban Peso</value></option></options></item><item><options><option><code>reference_id</code><value>CUC</value></option><option><code>label</code><value>Peso Convertible</value></option><option><code>description</code><value>Peso Convertible</value></option></options></item><item><options><option><code>reference_id</code><value>ANG</value></option><option><code>label</code><value>Netherlands Antillean Guilder</value></option><option><code>description</code><value>Netherlands Antillean Guilder</value></option></options></item><item><options><option><code>reference_id</code><value>CZK</value></option><option><code>label</code><value>Czech Koruna</value></option><option><code>description</code><value>Czech Koruna</value></option></options></item><item><options><option><code>reference_id</code><value>DKK</value></option><option><code>label</code><value>Danish Krone</value></option><option><code>description</code><value>Danish Krone</value></option></options></item><item><options><option><code>reference_id</code><value>DJF</value></option><option><code>label</code><value>Djibouti Franc</value></option><option><code>description</code><value>Djibouti Franc</value></option></options></item><item><options><option><code>reference_id</code><value>DOP</value></option><option><code>label</code><value>Dominican Peso</value></option><option><code>description</code><value>Dominican Peso</value></option></options></item><item><options><option><code>reference_id</code><value>EGP</value></option><option><code>label</code><value>Egyptian Pound</value></option><option><code>description</code><value>Egyptian Pound</value></option></options></item><item><options><option><code>reference_id</code><value>SVC</value></option><option><code>label</code><value>El Salvador Colon</value></option><option><code>description</code><value>El Salvador Colon</value></option></options></item><item><options><option><code>reference_id</code><value>ERN</value></option><option><code>label</code><value>Nakfa</value></option><option><code>description</code><value>Nakfa</value></option></options></item><item><options><option><code>reference_id</code><value>SZL</value></option><option><code>label</code><value>Lilangeni</value></option><option><code>description</code><value>Lilangeni</value></option></options></item><item><options><option><code>reference_id</code><value>ETB</value></option><option><code>label</code><value>Ethiopian Birr</value></option><option><code>description</code><value>Ethiopian Birr</value></option></options></item><item><options><option><code>reference_id</code><value>FKP</value></option><option><code>label</code><value>Falkland Islands Pound</value></option><option><code>description</code><value>Falkland Islands Pound</value></option></options></item><item><options><option><code>reference_id</code><value>FJD</value></option><option><code>label</code><value>Fiji Dollar</value></option><option><code>description</code><value>Fiji Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>XPF</value></option><option><code>label</code><value>CFP Franc</value></option><option><code>description</code><value>CFP Franc</value></option></options></item><item><options><option><code>reference_id</code><value>GMD</value></option><option><code>label</code><value>Dalasi</value></option><option><code>description</code><value>Dalasi</value></option></options></item><item><options><option><code>reference_id</code><value>GEL</value></option><option><code>label</code><value>Lari</value></option><option><code>description</code><value>Lari</value></option></options></item><item><options><option><code>reference_id</code><value>GHS</value></option><option><code>label</code><value>Ghana Cedi</value></option><option><code>description</code><value>Ghana Cedi</value></option></options></item><item><options><option><code>reference_id</code><value>GIP</value></option><option><code>label</code><value>Gibraltar Pound</value></option><option><code>description</code><value>Gibraltar Pound</value></option></options></item><item><options><option><code>reference_id</code><value>GTQ</value></option><option><code>label</code><value>Quetzal</value></option><option><code>description</code><value>Quetzal</value></option></options></item><item><options><option><code>reference_id</code><value>GBP</value></option><option><code>label</code><value>Pound Sterling</value></option><option><code>description</code><value>Pound Sterling</value></option></options></item><item><options><option><code>reference_id</code><value>GNF</value></option><option><code>label</code><value>Guinean Franc</value></option><option><code>description</code><value>Guinean Franc</value></option></options></item><item><options><option><code>reference_id</code><value>GYD</value></option><option><code>label</code><value>Guyana Dollar</value></option><option><code>description</code><value>Guyana Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>HTG</value></option><option><code>label</code><value>Gourde</value></option><option><code>description</code><value>Gourde</value></option></options></item><item><options><option><code>reference_id</code><value>HNL</value></option><option><code>label</code><value>Lempira</value></option><option><code>description</code><value>Lempira</value></option></options></item><item><options><option><code>reference_id</code><value>HKD</value></option><option><code>label</code><value>Hong Kong Dollar</value></option><option><code>description</code><value>Hong Kong Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>HUF</value></option><option><code>label</code><value>Forint</value></option><option><code>description</code><value>Forint</value></option></options></item><item><options><option><code>reference_id</code><value>ISK</value></option><option><code>label</code><value>Iceland Krona</value></option><option><code>description</code><value>Iceland Krona</value></option></options></item><item><options><option><code>reference_id</code><value>IDR</value></option><option><code>label</code><value>Rupiah</value></option><option><code>description</code><value>Rupiah</value></option></options></item><item><options><option><code>reference_id</code><value>XDR</value></option><option><code>label</code><value>SDR (Special Drawing Right)</value></option><option><code>description</code><value>SDR (Special Drawing Right)</value></option></options></item><item><options><option><code>reference_id</code><value>IRR</value></option><option><code>label</code><value>Iranian Rial</value></option><option><code>description</code><value>Iranian Rial</value></option></options></item><item><options><option><code>reference_id</code><value>IQD</value></option><option><code>label</code><value>Iraqi Dinar</value></option><option><code>description</code><value>Iraqi Dinar</value></option></options></item><item><options><option><code>reference_id</code><value>ILS</value></option><option><code>label</code><value>New Israeli Sheqel</value></option><option><code>description</code><value>New Israeli Sheqel</value></option></options></item><item><options><option><code>reference_id</code><value>JMD</value></option><option><code>label</code><value>Jamaican Dollar</value></option><option><code>description</code><value>Jamaican Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>JPY</value></option><option><code>label</code><value>Yen</value></option><option><code>description</code><value>Yen</value></option></options></item><item><options><option><code>reference_id</code><value>JOD</value></option><option><code>label</code><value>Jordanian Dinar</value></option><option><code>description</code><value>Jordanian Dinar</value></option></options></item><item><options><option><code>reference_id</code><value>KZT</value></option><option><code>label</code><value>Tenge</value></option><option><code>description</code><value>Tenge</value></option></options></item><item><options><option><code>reference_id</code><value>KES</value></option><option><code>label</code><value>Kenyan Shilling</value></option><option><code>description</code><value>Kenyan Shilling</value></option></options></item><item><options><option><code>reference_id</code><value>KPW</value></option><option><code>label</code><value>North Korean Won</value></option><option><code>description</code><value>North Korean Won</value></option></options></item><item><options><option><code>reference_id</code><value>KRW</value></option><option><code>label</code><value>Won</value></option><option><code>description</code><value>Won</value></option></options></item><item><options><option><code>reference_id</code><value>KWD</value></option><option><code>label</code><value>Kuwaiti Dinar</value></option><option><code>description</code><value>Kuwaiti Dinar</value></option></options></item><item><options><option><code>reference_id</code><value>KGS</value></option><option><code>label</code><value>Som</value></option><option><code>description</code><value>Som</value></option></options></item><item><options><option><code>reference_id</code><value>LAK</value></option><option><code>label</code><value>Lao Kip</value></option><option><code>description</code><value>Lao Kip</value></option></options></item><item><options><option><code>reference_id</code><value>LBP</value></option><option><code>label</code><value>Lebanese Pound</value></option><option><code>description</code><value>Lebanese Pound</value></option></options></item><item><options><option><code>reference_id</code><value>LSL</value></option><option><code>label</code><value>Loti</value></option><option><code>description</code><value>Loti</value></option></options></item><item><options><option><code>reference_id</code><value>ZAR</value></option><option><code>label</code><value>Rand</value></option><option><code>description</code><value>Rand</value></option></options></item><item><options><option><code>reference_id</code><value>LRD</value></option><option><code>label</code><value>Liberian Dollar</value></option><option><code>description</code><value>Liberian Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>LYD</value></option><option><code>label</code><value>Libyan Dinar</value></option><option><code>description</code><value>Libyan Dinar</value></option></options></item><item><options><option><code>reference_id</code><value>CHF</value></option><option><code>label</code><value>Swiss Franc</value></option><option><code>description</code><value>Swiss Franc</value></option></options></item><item><options><option><code>reference_id</code><value>MOP</value></option><option><code>label</code><value>Pataca</value></option><option><code>description</code><value>Pataca</value></option></options></item><item><options><option><code>reference_id</code><value>MKD</value></option><option><code>label</code><value>Denar</value></option><option><code>description</code><value>Denar</value></option></options></item><item><options><option><code>reference_id</code><value>MGA</value></option><option><code>label</code><value>Malagasy Ariary</value></option><option><code>description</code><value>Malagasy Ariary</value></option></options></item><item><options><option><code>reference_id</code><value>MWK</value></option><option><code>label</code><value>Malawi Kwacha</value></option><option><code>description</code><value>Malawi Kwacha</value></option></options></item><item><options><option><code>reference_id</code><value>MYR</value></option><option><code>label</code><value>Malaysian Ringgit</value></option><option><code>description</code><value>Malaysian Ringgit</value></option></options></item><item><options><option><code>reference_id</code><value>MVR</value></option><option><code>label</code><value>Rufiyaa</value></option><option><code>description</code><value>Rufiyaa</value></option></options></item><item><options><option><code>reference_id</code><value>MRU</value></option><option><code>label</code><value>Ouguiya</value></option><option><code>description</code><value>Ouguiya</value></option></options></item><item><options><option><code>reference_id</code><value>MUR</value></option><option><code>label</code><value>Mauritius Rupee</value></option><option><code>description</code><value>Mauritius Rupee</value></option></options></item><item><options><option><code>reference_id</code><value>XUA</value></option><option><code>label</code><value>ADB Unit of Account</value></option><option><code>description</code><value>ADB Unit of Account</value></option></options></item><item><options><option><code>reference_id</code><value>MXN</value></option><option><code>label</code><value>Mexican Peso</value></option><option><code>description</code><value>Mexican Peso</value></option></options></item><item><options><option><code>reference_id</code><value>MXV</value></option><option><code>label</code><value>Mexican Unidad de Inversion (UDI)</value></option><option><code>description</code><value>Mexican Unidad de Inversion (UDI)</value></option></options></item><item><options><option><code>reference_id</code><value>MDL</value></option><option><code>label</code><value>Moldovan Leu</value></option><option><code>description</code><value>Moldovan Leu</value></option></options></item><item><options><option><code>reference_id</code><value>MNT</value></option><option><code>label</code><value>Tugrik</value></option><option><code>description</code><value>Tugrik</value></option></options></item><item><options><option><code>reference_id</code><value>MAD</value></option><option><code>label</code><value>Moroccan Dirham</value></option><option><code>description</code><value>Moroccan Dirham</value></option></options></item><item><options><option><code>reference_id</code><value>MZN</value></option><option><code>label</code><value>Mozambique Metical</value></option><option><code>description</code><value>Mozambique Metical</value></option></options></item><item><options><option><code>reference_id</code><value>MMK</value></option><option><code>label</code><value>Kyat</value></option><option><code>description</code><value>Kyat</value></option></options></item><item><options><option><code>reference_id</code><value>NAD</value></option><option><code>label</code><value>Namibia Dollar</value></option><option><code>description</code><value>Namibia Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>NPR</value></option><option><code>label</code><value>Nepalese Rupee</value></option><option><code>description</code><value>Nepalese Rupee</value></option></options></item><item><options><option><code>reference_id</code><value>NIO</value></option><option><code>label</code><value>Cordoba Oro</value></option><option><code>description</code><value>Cordoba Oro</value></option></options></item><item><options><option><code>reference_id</code><value>NGN</value></option><option><code>label</code><value>Naira</value></option><option><code>description</code><value>Naira</value></option></options></item><item><options><option><code>reference_id</code><value>OMR</value></option><option><code>label</code><value>Rial Omani</value></option><option><code>description</code><value>Rial Omani</value></option></options></item><item><options><option><code>reference_id</code><value>PKR</value></option><option><code>label</code><value>Pakistan Rupee</value></option><option><code>description</code><value>Pakistan Rupee</value></option></options></item><item><options><option><code>reference_id</code><value>PAB</value></option><option><code>label</code><value>Balboa</value></option><option><code>description</code><value>Balboa</value></option></options></item><item><options><option><code>reference_id</code><value>PGK</value></option><option><code>label</code><value>Kina</value></option><option><code>description</code><value>Kina</value></option></options></item><item><options><option><code>reference_id</code><value>PYG</value></option><option><code>label</code><value>Guarani</value></option><option><code>description</code><value>Guarani</value></option></options></item><item><options><option><code>reference_id</code><value>PEN</value></option><option><code>label</code><value>Sol</value></option><option><code>description</code><value>Sol</value></option></options></item><item><options><option><code>reference_id</code><value>PHP</value></option><option><code>label</code><value>Philippine Peso</value></option><option><code>description</code><value>Philippine Peso</value></option></options></item><item><options><option><code>reference_id</code><value>PLN</value></option><option><code>label</code><value>Zloty</value></option><option><code>description</code><value>Zloty</value></option></options></item><item><options><option><code>reference_id</code><value>QAR</value></option><option><code>label</code><value>Qatari Rial</value></option><option><code>description</code><value>Qatari Rial</value></option></options></item><item><options><option><code>reference_id</code><value>RON</value></option><option><code>label</code><value>Romanian Leu</value></option><option><code>description</code><value>Romanian Leu</value></option></options></item><item><options><option><code>reference_id</code><value>RUB</value></option><option><code>label</code><value>Russian Ruble</value></option><option><code>description</code><value>Russian Ruble</value></option></options></item><item><options><option><code>reference_id</code><value>RWF</value></option><option><code>label</code><value>Rwanda Franc</value></option><option><code>description</code><value>Rwanda Franc</value></option></options></item><item><options><option><code>reference_id</code><value>SHP</value></option><option><code>label</code><value>Saint Helena Pound</value></option><option><code>description</code><value>Saint Helena Pound</value></option></options></item><item><options><option><code>reference_id</code><value>WST</value></option><option><code>label</code><value>Tala</value></option><option><code>description</code><value>Tala</value></option></options></item><item><options><option><code>reference_id</code><value>STN</value></option><option><code>label</code><value>Dobra</value></option><option><code>description</code><value>Dobra</value></option></options></item><item><options><option><code>reference_id</code><value>SAR</value></option><option><code>label</code><value>Saudi Riyal</value></option><option><code>description</code><value>Saudi Riyal</value></option></options></item><item><options><option><code>reference_id</code><value>RSD</value></option><option><code>label</code><value>Serbian Dinar</value></option><option><code>description</code><value>Serbian Dinar</value></option></options></item><item><options><option><code>reference_id</code><value>SCR</value></option><option><code>label</code><value>Seychelles Rupee</value></option><option><code>description</code><value>Seychelles Rupee</value></option></options></item><item><options><option><code>reference_id</code><value>SLL</value></option><option><code>label</code><value>Leone</value></option><option><code>description</code><value>Leone</value></option></options></item><item><options><option><code>reference_id</code><value>SGD</value></option><option><code>label</code><value>Singapore Dollar</value></option><option><code>description</code><value>Singapore Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>XSU</value></option><option><code>label</code><value>Sucre</value></option><option><code>description</code><value>Sucre</value></option></options></item><item><options><option><code>reference_id</code><value>SBD</value></option><option><code>label</code><value>Solomon Islands Dollar</value></option><option><code>description</code><value>Solomon Islands Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>SOS</value></option><option><code>label</code><value>Somali Shilling</value></option><option><code>description</code><value>Somali Shilling</value></option></options></item><item><options><option><code>reference_id</code><value>SSP</value></option><option><code>label</code><value>South Sudanese Pound</value></option><option><code>description</code><value>South Sudanese Pound</value></option></options></item><item><options><option><code>reference_id</code><value>LKR</value></option><option><code>label</code><value>Sri Lanka Rupee</value></option><option><code>description</code><value>Sri Lanka Rupee</value></option></options></item><item><options><option><code>reference_id</code><value>SDG</value></option><option><code>label</code><value>Sudanese Pound</value></option><option><code>description</code><value>Sudanese Pound</value></option></options></item><item><options><option><code>reference_id</code><value>SRD</value></option><option><code>label</code><value>Surinam Dollar</value></option><option><code>description</code><value>Surinam Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>SEK</value></option><option><code>label</code><value>Swedish Krona</value></option><option><code>description</code><value>Swedish Krona</value></option></options></item><item><options><option><code>reference_id</code><value>CHE</value></option><option><code>label</code><value>WIR Euro</value></option><option><code>description</code><value>WIR Euro</value></option></options></item><item><options><option><code>reference_id</code><value>CHW</value></option><option><code>label</code><value>WIR Franc</value></option><option><code>description</code><value>WIR Franc</value></option></options></item><item><options><option><code>reference_id</code><value>SYP</value></option><option><code>label</code><value>Syrian Pound</value></option><option><code>description</code><value>Syrian Pound</value></option></options></item><item><options><option><code>reference_id</code><value>TWD</value></option><option><code>label</code><value>New Taiwan Dollar</value></option><option><code>description</code><value>New Taiwan Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>TJS</value></option><option><code>label</code><value>Somoni</value></option><option><code>description</code><value>Somoni</value></option></options></item><item><options><option><code>reference_id</code><value>TZS</value></option><option><code>label</code><value>Tanzanian Shilling</value></option><option><code>description</code><value>Tanzanian Shilling</value></option></options></item><item><options><option><code>reference_id</code><value>THB</value></option><option><code>label</code><value>Baht</value></option><option><code>description</code><value>Baht</value></option></options></item><item><options><option><code>reference_id</code><value>TOP</value></option><option><code>label</code><value>Paanga</value></option><option><code>description</code><value>Paanga</value></option></options></item><item><options><option><code>reference_id</code><value>TTD</value></option><option><code>label</code><value>Trinidad and Tobago Dollar</value></option><option><code>description</code><value>Trinidad and Tobago Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>TND</value></option><option><code>label</code><value>Tunisian Dinar</value></option><option><code>description</code><value>Tunisian Dinar</value></option></options></item><item><options><option><code>reference_id</code><value>TRY</value></option><option><code>label</code><value>Turkish Lira</value></option><option><code>description</code><value>Turkish Lira</value></option></options></item><item><options><option><code>reference_id</code><value>TMT</value></option><option><code>label</code><value>Turkmenistan New Manat</value></option><option><code>description</code><value>Turkmenistan New Manat</value></option></options></item><item><options><option><code>reference_id</code><value>UGX</value></option><option><code>label</code><value>Uganda Shilling</value></option><option><code>description</code><value>Uganda Shilling</value></option></options></item><item><options><option><code>reference_id</code><value>UAH</value></option><option><code>label</code><value>Hryvnia</value></option><option><code>description</code><value>Hryvnia</value></option></options></item><item><options><option><code>reference_id</code><value>AED</value></option><option><code>label</code><value>UAE Dirham</value></option><option><code>description</code><value>UAE Dirham</value></option></options></item><item><options><option><code>reference_id</code><value>USN</value></option><option><code>label</code><value>US Dollar (Next day)</value></option><option><code>description</code><value>US Dollar (Next day)</value></option></options></item><item><options><option><code>reference_id</code><value>UYU</value></option><option><code>label</code><value>Peso Uruguayo</value></option><option><code>description</code><value>Peso Uruguayo</value></option></options></item><item><options><option><code>reference_id</code><value>UYI</value></option><option><code>label</code><value>Uruguay Peso en Unidades Indexadas (UI)</value></option><option><code>description</code><value>Uruguay Peso en Unidades Indexadas (UI)</value></option></options></item><item><options><option><code>reference_id</code><value>UYW</value></option><option><code>label</code><value>Unidad Previsional</value></option><option><code>description</code><value>Unidad Previsional</value></option></options></item><item><options><option><code>reference_id</code><value>UZS</value></option><option><code>label</code><value>Uzbekistan Sum</value></option><option><code>description</code><value>Uzbekistan Sum</value></option></options></item><item><options><option><code>reference_id</code><value>VUV</value></option><option><code>label</code><value>Vatu</value></option><option><code>description</code><value>Vatu</value></option></options></item><item><options><option><code>reference_id</code><value>VES</value></option><option><code>label</code><value>Bolívar Soberano</value></option><option><code>description</code><value>Bolívar Soberano</value></option></options></item><item><options><option><code>reference_id</code><value>VND</value></option><option><code>label</code><value>Dong</value></option><option><code>description</code><value>Dong</value></option></options></item><item><options><option><code>reference_id</code><value>YER</value></option><option><code>label</code><value>Yemeni Rial</value></option><option><code>description</code><value>Yemeni Rial</value></option></options></item><item><options><option><code>reference_id</code><value>ZMW</value></option><option><code>label</code><value>Zambian Kwacha</value></option><option><code>description</code><value>Zambian Kwacha</value></option></options></item><item><options><option><code>reference_id</code><value>ZWL</value></option><option><code>label</code><value>Zimbabwe Dollar</value></option><option><code>description</code><value>Zimbabwe Dollar</value></option></options></item><item><options><option><code>reference_id</code><value>XBA</value></option><option><code>label</code><value>Bond Markets Unit European Composite Unit (EURCO)</value></option><option><code>description</code><value>Bond Markets Unit European Composite Unit (EURCO)</value></option></options></item><item><options><option><code>reference_id</code><value>XBB</value></option><option><code>label</code><value>Bond Markets Unit European Monetary Unit (E.M.U.-6)</value></option><option><code>description</code><value>Bond Markets Unit European Monetary Unit (E.M.U.-6)</value></option></options></item><item><options><option><code>reference_id</code><value>XBC</value></option><option><code>label</code><value>Bond Markets Unit European Unit of Account 9 (E.U.A.-9)</value></option><option><code>description</code><value>Bond Markets Unit European Unit of Account 9 (E.U.A.-9)</value></option></options></item><item><options><option><code>reference_id</code><value>XBD</value></option><option><code>label</code><value>Bond Markets Unit European Unit of Account 17 (E.U.A.-17)</value></option><option><code>description</code><value>Bond Markets Unit European Unit of Account 17 (E.U.A.-17)</value></option></options></item><item><options><option><code>reference_id</code><value>XTS</value></option><option><code>label</code><value>Codes specifically reserved for testing purposes</value></option><option><code>description</code><value>Codes specifically reserved for testing purposes</value></option></options></item><item><options><option><code>reference_id</code><value>XXX</value></option><option><code>label</code><value>The codes assigned for transactions where no currency is involved</value></option><option><code>description</code><value>The codes assigned for transactions where no currency is involved</value></option></options></item><item><options><option><code>reference_id</code><value>XAU</value></option><option><code>label</code><value>Gold</value></option><option><code>description</code><value>Gold</value></option></options></item><item><options><option><code>reference_id</code><value>XPD</value></option><option><code>label</code><value>Palladium</value></option><option><code>description</code><value>Palladium</value></option></options></item><item><options><option><code>reference_id</code><value>XPT</value></option><option><code>label</code><value>Platinum</value></option><option><code>description</code><value>Platinum</value></option></options></item><item><options><option><code>reference_id</code><value>XAG</value></option><option><code>label</code><value>Silver</value></option><option><code>description</code><value>Silver</value></option></options></item></items></static></sources></definition>' , 1, '2023-11-16 17:17:40.882679', '2024-04-25 13:47:09.556604', NULL);
INSERT INTO public."ReferenceType" VALUES ('926cfa97-7e76-4178-8c83-fbfef535a6b2', 'Select format(s)', 'Select format(s)', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields/><sources><api><key>eestore.paas2.uninett.no</key><label>eestore.paas2.uninett.no</label><ordinal>0</ordinal><type>0</type><contentType>application/json</contentType><firstPage>1</firstPage><requestHttpMethod>0</requestHttpMethod><queries><query><cases><case><value>{like}</value></case></cases><defaultValue></defaultValue><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>label</code><responsePath>name</responsePath></field><field><code>reference_id</code><responsePath>pid</responsePath></field></fieldsMapping><resultsArrayPath>$[''data''][*][''attributes'']</resultsArrayPath></results><url>https://eestore.paas2.uninett.no/api/fileformat/</url></api></sources></definition>', 1, '2024-09-06 14:45:13.237917', '2024-09-06 14:45:13.244916', NULL);
INSERT INTO public."ReferenceType" VALUES ('56688f3c-d50f-4d50-b3e5-32d671f2e67e', 'Metadata Services', 'Metadata Services', '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><definition><fields/><sources><api><key>eestore.paas2.uninett.no</key><label>eestore.paas2.uninett.no</label><ordinal>0</ordinal><type>0</type><contentType>application/json</contentType><firstPage>1</firstPage><requestHttpMethod>0</requestHttpMethod><queries><query><cases><case><value>{like}</value></case></cases><defaultValue></defaultValue><name>like</name></query></queries><requestBody></requestBody><results><fieldsMapping><field><code>label</code><responsePath>name</responsePath></field><field><code>reference_id</code><responsePath>pid</responsePath></field></fieldsMapping><resultsArrayPath>$[''data''][*][''attributes'']</resultsArrayPath></results><url>https://eestore.paas2.uninett.no/api/datasetmdrepo/</url></api></sources></definition>', 1, '2024-09-06 14:45:13.059917', '2024-09-06 14:45:13.074916', NULL);
--
-- TOC entry 262 (class 1259 OID 178183)
-- Name: Registry; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Registry" (
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Label" character varying(250),
"Abbreviation" character varying(50),
"Reference" character varying,
"Uri" character varying(250),
"Definition" xml,
"Status" smallint DEFAULT 0 NOT NULL,
"Created" timestamp without time zone DEFAULT now() NOT NULL,
"Modified" timestamp without time zone DEFAULT now() NOT NULL,
"CreationUser" uuid
);
--
-- TOC entry 263 (class 1259 OID 178192)
-- Name: Researcher; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Researcher" (
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Label" character varying(250) NOT NULL,
"Uri" character varying(250),
"PrimaryEmail" character varying(250),
"Definition" xml,
"Reference" character varying,
"Status" smallint DEFAULT 0 NOT NULL,
"Created" timestamp without time zone DEFAULT now() NOT NULL,
"Modified" timestamp without time zone DEFAULT now() NOT NULL,
"CreationUser" uuid
);
--
-- TOC entry 4192 (class 0 OID 0)
-- Dependencies: 263
-- Name: TABLE "Researcher"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON TABLE public."Researcher" IS 'Table of Researcher managed in the system';
--
-- TOC entry 4193 (class 0 OID 0)
-- Dependencies: 263
-- Name: COLUMN "Researcher"."ID"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Researcher"."ID" IS 'Unique identifier and primary key of item';
--
-- TOC entry 4194 (class 0 OID 0)
-- Dependencies: 263
-- Name: COLUMN "Researcher"."Label"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Researcher"."Label" IS 'Full name of the researcher (as presented by the system, and composed automatically by data or provided by the reference service)';
--
-- TOC entry 4195 (class 0 OID 0)
-- Dependencies: 263
-- Name: COLUMN "Researcher"."Uri"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Researcher"."Uri" IS 'URI of item';
--
-- TOC entry 4196 (class 0 OID 0)
-- Dependencies: 263
-- Name: COLUMN "Researcher"."Definition"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Researcher"."Definition" IS 'More data about the researcher such as: email addresses, affiliations etc';
--
-- TOC entry 4197 (class 0 OID 0)
-- Dependencies: 263
-- Name: COLUMN "Researcher"."Reference"; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."Researcher"."Reference" IS 'Additional reference data for the item along with information to allow how the item reached the system (e.g. via an external vocabulary)';
--
-- TOC entry 264 (class 1259 OID 178201)
-- Name: Service; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Service" (
"ID" uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"Label" character varying(250),
"Abbreviation" character varying(50),
"Reference" character varying,
"Uri" character varying(250),
"Definition" xml,
"Status" smallint DEFAULT 0 NOT NULL,
"Created" timestamp without time zone DEFAULT now() NOT NULL,
"Modified" timestamp without time zone DEFAULT now() NOT NULL,
"CreationUser" uuid
);
--
-- TOC entry 265 (class 1259 OID 178210)
-- Name: StorageFile; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."StorageFile" (
id uuid NOT NULL,
file_ref character varying(100) NOT NULL,
name character varying(250) NOT NULL,
extension character varying(10) NOT NULL,
mime_type character varying(200) NOT NULL,
storage_type smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
purge_at timestamp without time zone,
purged_at timestamp without time zone,
owner uuid,
tenant uuid
);
--
-- TOC entry 266 (class 1259 OID 178215)
-- Name: SupportiveMaterial; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."SupportiveMaterial" (
id uuid NOT NULL,
type smallint NOT NULL,
language_code character varying(20) NOT NULL,
payload character varying NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
tenant uuid
);
--
-- TOC entry 267 (class 1259 OID 178220)
-- Name: Tag; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Tag" (
id uuid NOT NULL,
label character varying(1024) NOT NULL,
created_by uuid,
is_active smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
tenant uuid
);
--
-- TOC entry 268 (class 1259 OID 178225)
-- Name: Tenant; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."Tenant" (
id uuid NOT NULL,
name character varying(200) NOT NULL,
code character varying(500) NOT NULL,
description character varying NOT NULL,
config text,
is_active smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
--
-- TOC entry 269 (class 1259 OID 178230)
-- Name: TenantConfiguration; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."TenantConfiguration" (
id uuid NOT NULL,
value character varying NOT NULL,
type smallint NOT NULL,
is_active smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
tenant uuid
);
--
-- TOC entry 270 (class 1259 OID 178235)
-- Name: TenantUser; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."TenantUser" (
id uuid NOT NULL,
"user" uuid NOT NULL,
tenant uuid NOT NULL,
is_active smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
--
-- TOC entry 271 (class 1259 OID 178238)
-- Name: UsageLimit; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."UsageLimit" (
id uuid NOT NULL,
label character varying NOT NULL,
target_metric character varying NOT NULL,
value integer NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
tenant uuid,
definition xml NOT NULL
);
--
-- TOC entry 272 (class 1259 OID 178243)
-- Name: User; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."User" (
id uuid NOT NULL,
name character varying(250),
additional_info character varying,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL
);
--
-- TOC entry 273 (class 1259 OID 178248)
-- Name: UserAssociation; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."UserAssociation" (
id uuid NOT NULL,
"firstUser" uuid NOT NULL,
"secondUser" uuid NOT NULL
);
--
-- TOC entry 274 (class 1259 OID 178251)
-- Name: UserContactInfo; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."UserContactInfo" (
id uuid NOT NULL,
"user" uuid NOT NULL,
ordinal integer DEFAULT 0 NOT NULL,
type smallint NOT NULL,
value character varying(512) NOT NULL,
created_at timestamp without time zone NOT NULL
);
--
-- TOC entry 275 (class 1259 OID 178257)
-- Name: UserCredential; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."UserCredential" (
id uuid NOT NULL,
"user" uuid NOT NULL,
data character varying,
external_id character varying(512) NOT NULL,
created_at timestamp without time zone NOT NULL
);
--
-- TOC entry 276 (class 1259 OID 178262)
-- Name: UserDMP; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."UserDMP" (
id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
usr uuid NOT NULL,
dmp uuid NOT NULL,
role integer
);
--
-- TOC entry 277 (class 1259 OID 178266)
-- Name: UserDescriptionTemplate; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."UserDescriptionTemplate" (
id uuid NOT NULL,
"user" uuid NOT NULL,
description_template uuid NOT NULL,
role smallint NOT NULL,
updated_at timestamp without time zone NOT NULL,
created_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
tenant uuid
);
--
-- TOC entry 278 (class 1259 OID 178269)
-- Name: UserInfo; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."UserInfo" (
id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
email character varying(250),
authorization_level smallint NOT NULL,
usertype smallint NOT NULL,
verified_email boolean,
name character varying(250),
created timestamp without time zone,
lastloggedin timestamp without time zone,
additionalinfo json,
userstatus smallint NOT NULL
);
--
-- TOC entry 4198 (class 0 OID 0)
-- Dependencies: 278
-- Name: COLUMN "UserInfo".authorization_level; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."UserInfo".authorization_level IS 'This stores the authorization level of the user: 0 admin, 1 user, being able to be extended furthermore';
--
-- TOC entry 4199 (class 0 OID 0)
-- Dependencies: 278
-- Name: COLUMN "UserInfo".usertype; Type: COMMENT; Schema: public; Owner: -
--
COMMENT ON COLUMN public."UserInfo".usertype IS 'This stores the type of user: 0 -> internal, 1 external';
--
-- TOC entry 279 (class 1259 OID 178275)
-- Name: UserRole; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."UserRole" (
id uuid DEFAULT public.uuid_generate_v4() NOT NULL,
"user" uuid NOT NULL,
role character varying(512) NOT NULL,
created_at timestamp without time zone NOT NULL,
tenant uuid
);
--
-- TOC entry 280 (class 1259 OID 178281)
-- Name: UserSettings; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."UserSettings" (
id uuid NOT NULL,
key character varying(500) NOT NULL,
entity_id uuid,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
type character varying(200) NOT NULL,
value text NOT NULL,
name character varying(500) NOT NULL,
tenant uuid
);
--
-- TOC entry 281 (class 1259 OID 178286)
-- Name: UserToken; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."UserToken" (
"Token" uuid NOT NULL,
"UserId" uuid NOT NULL,
"IssuedAt" date NOT NULL,
"ExpiresAt" date NOT NULL
);
--
-- TOC entry 282 (class 1259 OID 178289)
-- Name: ant_Annotation; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ant_Annotation" (
id uuid NOT NULL,
entity_id uuid NOT NULL,
entity_type character varying(512) NOT NULL,
anchor character varying(512),
payload text,
tenant uuid,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
subject_id uuid NOT NULL,
thread_id uuid,
parent_id uuid,
protection_type smallint NOT NULL,
time_stamp timestamp without time zone NOT NULL
);
--
-- TOC entry 283 (class 1259 OID 178294)
-- Name: ant_AnnotationStatus; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ant_AnnotationStatus" (
id uuid NOT NULL,
annotation_id uuid NOT NULL,
status_id uuid NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
tenant uuid
);
--
-- TOC entry 284 (class 1259 OID 178297)
-- Name: ant_EntityUser; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ant_EntityUser" (
id uuid NOT NULL,
entity_id uuid NOT NULL,
user_id uuid NOT NULL,
tenant uuid,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL
);
--
-- TOC entry 285 (class 1259 OID 178300)
-- Name: ant_QueueInbox; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ant_QueueInbox" (
id uuid NOT NULL,
queue character varying(200) NOT NULL,
exchange character varying(200) NOT NULL,
route character varying(200) NOT NULL,
application_id character varying(100) NOT NULL,
message_id uuid NOT NULL,
message json NOT NULL,
retry_count integer,
status smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
tenant uuid,
is_active smallint NOT NULL
);
--
-- TOC entry 286 (class 1259 OID 178305)
-- Name: ant_QueueOutbox; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ant_QueueOutbox" (
id uuid NOT NULL,
exchange character varying(200) NOT NULL,
route character varying(200) NOT NULL,
message_id uuid NOT NULL,
notify_status smallint NOT NULL,
retry_count integer NOT NULL,
published_at timestamp without time zone,
confirmed_at timestamp without time zone,
tenant uuid,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
message text NOT NULL,
is_active smallint NOT NULL
);
--
-- TOC entry 287 (class 1259 OID 178310)
-- Name: ant_Status; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ant_Status" (
id uuid NOT NULL,
label character varying(200) NOT NULL,
internal_status smallint,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
tenant uuid
);
--
-- TOC entry 288 (class 1259 OID 178313)
-- Name: ant_Tenant; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ant_Tenant" (
id uuid NOT NULL,
code character varying(200) NOT NULL,
created_at timestamp without time zone DEFAULT now() NOT NULL,
updated_at timestamp without time zone DEFAULT now() NOT NULL,
is_active smallint DEFAULT 1 NOT NULL
);
--
-- TOC entry 289 (class 1259 OID 178319)
-- Name: ant_TenantUser; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ant_TenantUser" (
id uuid NOT NULL,
"user" uuid NOT NULL,
tenant uuid NOT NULL,
is_active smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
--
-- TOC entry 290 (class 1259 OID 178322)
-- Name: ant_User; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ant_User" (
id uuid NOT NULL,
name character varying(250),
additional_info character varying,
created_at timestamp without time zone DEFAULT now() NOT NULL,
updated_at timestamp without time zone DEFAULT now() NOT NULL,
is_active smallint DEFAULT 1 NOT NULL
);
--
-- TOC entry 291 (class 1259 OID 178330)
-- Name: ant_UserCredential; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ant_UserCredential" (
id uuid NOT NULL,
"user" uuid NOT NULL,
external_id character varying(512) NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
data character varying
);
--
-- TOC entry 292 (class 1259 OID 178335)
-- Name: ntf_InAppNotification; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ntf_InAppNotification" (
id uuid NOT NULL,
"user" uuid NOT NULL,
type uuid NOT NULL,
read_time timestamp without time zone,
tracking_state smallint NOT NULL,
priority smallint NOT NULL,
subject character varying,
body character varying,
extra_data character varying,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
tenant uuid,
is_active smallint NOT NULL
);
--
-- TOC entry 293 (class 1259 OID 178340)
-- Name: ntf_Notification; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ntf_Notification" (
id uuid NOT NULL,
"user" uuid,
tenant uuid,
type uuid,
contact_hint character varying(200),
notified_at timestamp without time zone,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
data text,
retry_count integer,
tracking_data text,
provenance_ref character varying(200),
tracking_state smallint NOT NULL,
tracking_process smallint NOT NULL,
is_active smallint NOT NULL,
contact_type_hint smallint,
notify_state smallint,
notified_with smallint
);
--
-- TOC entry 294 (class 1259 OID 178345)
-- Name: ntf_NotificationTemplate; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ntf_NotificationTemplate" (
id uuid NOT NULL,
channel smallint NOT NULL,
notification_type uuid NOT NULL,
kind smallint NOT NULL,
language_code character varying(200) NOT NULL,
value text NOT NULL,
is_active smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
tenant uuid
);
--
-- TOC entry 295 (class 1259 OID 178350)
-- Name: ntf_QueueInbox; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ntf_QueueInbox" (
id uuid NOT NULL,
queue character varying(200) NOT NULL,
exchange character varying(200) NOT NULL,
route character varying(200) NOT NULL,
application_id character varying(100) NOT NULL,
message_id uuid NOT NULL,
message json NOT NULL,
retry_count integer,
status smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
tenant uuid,
is_active smallint NOT NULL
);
--
-- TOC entry 296 (class 1259 OID 178355)
-- Name: ntf_QueueOutbox; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ntf_QueueOutbox" (
id uuid NOT NULL,
exchange character varying(200) NOT NULL,
route character varying(200) NOT NULL,
message_id uuid NOT NULL,
notify_status smallint NOT NULL,
retry_count integer NOT NULL,
published_at timestamp without time zone,
confirmed_at timestamp without time zone,
tenant uuid,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
message text NOT NULL,
is_active smallint NOT NULL
);
--
-- TOC entry 297 (class 1259 OID 178360)
-- Name: ntf_Tenant; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ntf_Tenant" (
id uuid NOT NULL,
code character varying(200) NOT NULL,
created_at timestamp without time zone DEFAULT now() NOT NULL,
updated_at timestamp without time zone DEFAULT now() NOT NULL,
is_active smallint DEFAULT 1 NOT NULL
);
--
-- TOC entry 298 (class 1259 OID 178366)
-- Name: ntf_TenantConfiguration; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ntf_TenantConfiguration" (
id uuid NOT NULL,
tenant uuid,
type smallint NOT NULL,
value character varying NOT NULL,
is_active smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
--
-- TOC entry 299 (class 1259 OID 178371)
-- Name: ntf_TenantUser; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ntf_TenantUser" (
id uuid NOT NULL,
"user" uuid NOT NULL,
tenant uuid NOT NULL,
is_active smallint NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
--
-- TOC entry 300 (class 1259 OID 178374)
-- Name: ntf_User; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ntf_User" (
id uuid NOT NULL,
name character varying(250),
additional_info character varying,
created_at timestamp without time zone DEFAULT now() NOT NULL,
updated_at timestamp without time zone DEFAULT now() NOT NULL,
is_active smallint DEFAULT 1 NOT NULL
);
--
-- TOC entry 301 (class 1259 OID 178382)
-- Name: ntf_UserContactInfo; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ntf_UserContactInfo" (
id uuid NOT NULL,
"user" uuid NOT NULL,
ordinal integer DEFAULT 0 NOT NULL,
type smallint NOT NULL,
value character varying(512) NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint DEFAULT 1 NOT NULL
);
--
-- TOC entry 302 (class 1259 OID 178389)
-- Name: ntf_UserCredential; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ntf_UserCredential" (
id uuid NOT NULL,
"user" uuid NOT NULL,
external_id character varying(512) NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
data character varying
);
--
-- TOC entry 303 (class 1259 OID 178394)
-- Name: ntf_UserNotificationPreference; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public."ntf_UserNotificationPreference" (
id uuid NOT NULL,
"user" uuid NOT NULL,
type uuid NOT NULL,
channel smallint NOT NULL,
ordinal numeric NOT NULL,
tenant uuid,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint DEFAULT 1 NOT NULL
);
--
-- TOC entry 3720 (class 2606 OID 190001)
-- Name: ActionConfirmation ActionConfirmation_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ActionConfirmation"
ADD CONSTRAINT "ActionConfirmation_pkey" PRIMARY KEY (id);
--
-- TOC entry 3722 (class 2606 OID 190003)
-- Name: Content Content_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Content"
ADD CONSTRAINT "Content_pkey" PRIMARY KEY ("Id");
--
-- TOC entry 3724 (class 2606 OID 190005)
-- Name: Credential Credential_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Credential"
ADD CONSTRAINT "Credential_pkey" PRIMARY KEY ("Id");
--
-- TOC entry 3729 (class 2606 OID 190007)
-- Name: DMPDatasetProfile DMPDatasetProfile_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMPDatasetProfile"
ADD CONSTRAINT "DMPDatasetProfile_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3726 (class 2606 OID 190009)
-- Name: DMP DMP_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMP"
ADD CONSTRAINT "DMP_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3740 (class 2606 OID 190011)
-- Name: DatasetDataRepository DatasetDataRepository_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DatasetDataRepository"
ADD CONSTRAINT "DatasetDataRepository_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3742 (class 2606 OID 190013)
-- Name: DatasetExternalDataset DatasetExternalDataset_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DatasetExternalDataset"
ADD CONSTRAINT "DatasetExternalDataset_pkey" PRIMARY KEY ("Id");
--
-- TOC entry 3756 (class 2606 OID 190015)
-- Name: DescriptionTemplate DatasetProfile_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionTemplate"
ADD CONSTRAINT "DatasetProfile_pkey" PRIMARY KEY (id);
--
-- TOC entry 3744 (class 2606 OID 190017)
-- Name: DatasetRegistry DatasetRegistry_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DatasetRegistry"
ADD CONSTRAINT "DatasetRegistry_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3746 (class 2606 OID 190019)
-- Name: DatasetService DatasetService_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DatasetService"
ADD CONSTRAINT "DatasetService_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3737 (class 2606 OID 190021)
-- Name: Dataset Dataset_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Dataset"
ADD CONSTRAINT "Dataset_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3750 (class 2606 OID 190023)
-- Name: DescriptionReference DescriptionReference_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionReference"
ADD CONSTRAINT "DescriptionReference_pkey" PRIMARY KEY (id);
--
-- TOC entry 3752 (class 2606 OID 190025)
-- Name: DescriptionStatus DescriptionStatus_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionStatus"
ADD CONSTRAINT "DescriptionStatus_pkey" PRIMARY KEY (id);
--
-- TOC entry 3754 (class 2606 OID 190027)
-- Name: DescriptionTag DescriptionTag_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionTag"
ADD CONSTRAINT "DescriptionTag_pkey" PRIMARY KEY (id);
--
-- TOC entry 3758 (class 2606 OID 190029)
-- Name: DescriptionTemplateType DescriptionTemplateType_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionTemplateType"
ADD CONSTRAINT "DescriptionTemplateType_pkey" PRIMARY KEY (id);
--
-- TOC entry 3760 (class 2606 OID 190031)
-- Name: DescriptionWorkflow DescriptionWorkflow_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionWorkflow"
ADD CONSTRAINT "DescriptionWorkflow_pkey" PRIMARY KEY (id);
--
-- TOC entry 3748 (class 2606 OID 190033)
-- Name: Description Description_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Description"
ADD CONSTRAINT "Description_pkey" PRIMARY KEY (id);
--
-- TOC entry 3762 (class 2606 OID 190035)
-- Name: DoiFunder DoiFunder_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DoiFunder"
ADD CONSTRAINT "DoiFunder_pkey" PRIMARY KEY (id);
--
-- TOC entry 3766 (class 2606 OID 190037)
-- Name: EntityDoi Doi_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."EntityDoi"
ADD CONSTRAINT "Doi_pkey" PRIMARY KEY (id);
--
-- TOC entry 3768 (class 2606 OID 190039)
-- Name: ExternalDataset ExternalDataset_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ExternalDataset"
ADD CONSTRAINT "ExternalDataset_pkey" PRIMARY KEY ("Id");
--
-- TOC entry 3770 (class 2606 OID 190041)
-- Name: FileUpload File_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."FileUpload"
ADD CONSTRAINT "File_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3772 (class 2606 OID 190043)
-- Name: Funder Funder_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Funder"
ADD CONSTRAINT "Funder_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3774 (class 2606 OID 190045)
-- Name: Grant Grant_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Grant"
ADD CONSTRAINT "Grant_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3776 (class 2606 OID 190047)
-- Name: Invitation Invitation_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Invitation"
ADD CONSTRAINT "Invitation_pkey" PRIMARY KEY ("Id");
--
-- TOC entry 3778 (class 2606 OID 190049)
-- Name: Language Language_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Language"
ADD CONSTRAINT "Language_pkey" PRIMARY KEY (id);
--
-- TOC entry 3780 (class 2606 OID 190051)
-- Name: Lock Lock_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Lock"
ADD CONSTRAINT "Lock_pkey" PRIMARY KEY (id);
--
-- TOC entry 3764 (class 2606 OID 190053)
-- Name: EmailConfirmation LoginConfirmationEmail_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."EmailConfirmation"
ADD CONSTRAINT "LoginConfirmationEmail_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3782 (class 2606 OID 190055)
-- Name: NotificationLegacy NotificationLegacy_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."NotificationLegacy"
ADD CONSTRAINT "NotificationLegacy_pkey" PRIMARY KEY (id);
--
-- TOC entry 3876 (class 2606 OID 190057)
-- Name: ntf_NotificationTemplate NotificationTemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_NotificationTemplate"
ADD CONSTRAINT "NotificationTemplate_pkey" PRIMARY KEY (id);
--
-- TOC entry 3888 (class 2606 OID 190059)
-- Name: ntf_User Ntf_User_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_User"
ADD CONSTRAINT "Ntf_User_pkey" PRIMARY KEY (id);
--
-- TOC entry 3784 (class 2606 OID 190061)
-- Name: Organisation Organisation_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Organisation"
ADD CONSTRAINT "Organisation_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3731 (class 2606 OID 190063)
-- Name: DMPOrganisation PKey_DMPOrganisation; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMPOrganisation"
ADD CONSTRAINT "PKey_DMPOrganisation" PRIMARY KEY ("ID");
--
-- TOC entry 3733 (class 2606 OID 190065)
-- Name: DMPResearcher PKey_DMPResearcher; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMPResearcher"
ADD CONSTRAINT "PKey_DMPResearcher" PRIMARY KEY ("ID");
--
-- TOC entry 3735 (class 2606 OID 190067)
-- Name: DataRepository PKey_DataRepository; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DataRepository"
ADD CONSTRAINT "PKey_DataRepository" PRIMARY KEY ("ID");
--
-- TOC entry 3812 (class 2606 OID 190069)
-- Name: Registry PKey_Registry; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Registry"
ADD CONSTRAINT "PKey_Registry" PRIMARY KEY ("ID");
--
-- TOC entry 3816 (class 2606 OID 190071)
-- Name: Service PKey_Service; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Service"
ADD CONSTRAINT "PKey_Service" PRIMARY KEY ("ID");
--
-- TOC entry 3788 (class 2606 OID 190073)
-- Name: PlanBlueprint PlanBlueprint_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanBlueprint"
ADD CONSTRAINT "PlanBlueprint_pkey" PRIMARY KEY (id);
--
-- TOC entry 3790 (class 2606 OID 190075)
-- Name: PlanDescriptionTemplate PlanDescriptionTemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanDescriptionTemplate"
ADD CONSTRAINT "PlanDescriptionTemplate_pkey" PRIMARY KEY (id);
--
-- TOC entry 3792 (class 2606 OID 190077)
-- Name: PlanReference PlanReference_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanReference"
ADD CONSTRAINT "PlanReference_pkey" PRIMARY KEY (id);
--
-- TOC entry 3794 (class 2606 OID 190079)
-- Name: PlanStatus PlanStatus_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanStatus"
ADD CONSTRAINT "PlanStatus_pkey" PRIMARY KEY (id);
--
-- TOC entry 3796 (class 2606 OID 190081)
-- Name: PlanUser PlanUser_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanUser"
ADD CONSTRAINT "PlanUser_pkey" PRIMARY KEY (id);
--
-- TOC entry 3798 (class 2606 OID 190083)
-- Name: PlanWorkflow PlanWorkflow_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanWorkflow"
ADD CONSTRAINT "PlanWorkflow_pkey" PRIMARY KEY (id);
--
-- TOC entry 3786 (class 2606 OID 190085)
-- Name: Plan Plan_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Plan"
ADD CONSTRAINT "Plan_pkey" PRIMARY KEY (id);
--
-- TOC entry 3800 (class 2606 OID 190087)
-- Name: PrefillingSource PrefillingSource_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PrefillingSource"
ADD CONSTRAINT "PrefillingSource_pkey" PRIMARY KEY (id);
--
-- TOC entry 3802 (class 2606 OID 190089)
-- Name: Project Project_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Project"
ADD CONSTRAINT "Project_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3804 (class 2606 OID 190091)
-- Name: QueueInbox QueryInbox_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."QueueInbox"
ADD CONSTRAINT "QueryInbox_pkey" PRIMARY KEY (id);
--
-- TOC entry 3806 (class 2606 OID 190093)
-- Name: QueueOutbox QueueOutbox_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."QueueOutbox"
ADD CONSTRAINT "QueueOutbox_pkey" PRIMARY KEY (id);
--
-- TOC entry 3810 (class 2606 OID 190095)
-- Name: ReferenceType ReferenceType_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ReferenceType"
ADD CONSTRAINT "ReferenceType_pkey" PRIMARY KEY (id);
--
-- TOC entry 3808 (class 2606 OID 190097)
-- Name: Reference Reference_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Reference"
ADD CONSTRAINT "Reference_pkey" PRIMARY KEY (id);
--
-- TOC entry 3814 (class 2606 OID 190099)
-- Name: Researcher Researcher_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Researcher"
ADD CONSTRAINT "Researcher_pkey" PRIMARY KEY ("ID");
--
-- TOC entry 3818 (class 2606 OID 190101)
-- Name: StorageFile StorageFile_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."StorageFile"
ADD CONSTRAINT "StorageFile_pkey" PRIMARY KEY (id);
--
-- TOC entry 3820 (class 2606 OID 190103)
-- Name: SupportiveMaterial SupportiveMaterial_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."SupportiveMaterial"
ADD CONSTRAINT "SupportiveMaterial_pkey" PRIMARY KEY (id);
--
-- TOC entry 3822 (class 2606 OID 190105)
-- Name: Tag Tag_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Tag"
ADD CONSTRAINT "Tag_pkey" PRIMARY KEY (id);
--
-- TOC entry 3826 (class 2606 OID 190107)
-- Name: TenantConfiguration TenantConfiguration_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."TenantConfiguration"
ADD CONSTRAINT "TenantConfiguration_pkey" PRIMARY KEY (id);
--
-- TOC entry 3828 (class 2606 OID 190109)
-- Name: TenantUser TenantUser_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."TenantUser"
ADD CONSTRAINT "TenantUser_pkey" PRIMARY KEY (id);
--
-- TOC entry 3824 (class 2606 OID 190111)
-- Name: Tenant Tenant_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Tenant"
ADD CONSTRAINT "Tenant_pkey" PRIMARY KEY (id);
--
-- TOC entry 3830 (class 2606 OID 190113)
-- Name: UsageLimit UsageLimit_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UsageLimit"
ADD CONSTRAINT "UsageLimit_pkey" PRIMARY KEY (id);
--
-- TOC entry 3836 (class 2606 OID 190115)
-- Name: UserContactInfo UserContactInfo_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserContactInfo"
ADD CONSTRAINT "UserContactInfo_pkey" PRIMARY KEY (id);
--
-- TOC entry 3838 (class 2606 OID 190117)
-- Name: UserCredential UserCredential_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserCredential"
ADD CONSTRAINT "UserCredential_pkey" PRIMARY KEY (id);
--
-- TOC entry 3840 (class 2606 OID 190119)
-- Name: UserDescriptionTemplate UserDatasetProfile_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserDescriptionTemplate"
ADD CONSTRAINT "UserDatasetProfile_pkey" PRIMARY KEY (id);
--
-- TOC entry 3842 (class 2606 OID 190121)
-- Name: UserInfo UserInfo_email_key; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserInfo"
ADD CONSTRAINT "UserInfo_email_key" UNIQUE (email);
--
-- TOC entry 3844 (class 2606 OID 190123)
-- Name: UserInfo UserInfo_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserInfo"
ADD CONSTRAINT "UserInfo_pkey" PRIMARY KEY (id);
--
-- TOC entry 3846 (class 2606 OID 190125)
-- Name: UserRole UserRole_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserRole"
ADD CONSTRAINT "UserRole_pkey" PRIMARY KEY (id);
--
-- TOC entry 3850 (class 2606 OID 190127)
-- Name: UserToken UserToken_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserToken"
ADD CONSTRAINT "UserToken_pkey" PRIMARY KEY ("Token");
--
-- TOC entry 3832 (class 2606 OID 190129)
-- Name: User User_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."User"
ADD CONSTRAINT "User_pkey" PRIMARY KEY (id);
--
-- TOC entry 3854 (class 2606 OID 190131)
-- Name: ant_AnnotationStatus ant_AnnotationStatus_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_AnnotationStatus"
ADD CONSTRAINT "ant_AnnotationStatus_pkey" PRIMARY KEY (id);
--
-- TOC entry 3852 (class 2606 OID 190133)
-- Name: ant_Annotation ant_Annotation_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_Annotation"
ADD CONSTRAINT "ant_Annotation_pkey" PRIMARY KEY (id);
--
-- TOC entry 3856 (class 2606 OID 190135)
-- Name: ant_EntityUser ant_EntityUser_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_EntityUser"
ADD CONSTRAINT "ant_EntityUser_pkey" PRIMARY KEY (id);
--
-- TOC entry 3858 (class 2606 OID 190137)
-- Name: ant_QueueInbox ant_QueryInbox_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_QueueInbox"
ADD CONSTRAINT "ant_QueryInbox_pkey" PRIMARY KEY (id);
--
-- TOC entry 3860 (class 2606 OID 190139)
-- Name: ant_QueueOutbox ant_QueueOutbox_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_QueueOutbox"
ADD CONSTRAINT "ant_QueueOutbox_pkey" PRIMARY KEY (id);
--
-- TOC entry 3862 (class 2606 OID 190141)
-- Name: ant_Status ant_Status_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_Status"
ADD CONSTRAINT "ant_Status_pkey" PRIMARY KEY (id);
--
-- TOC entry 3866 (class 2606 OID 190143)
-- Name: ant_TenantUser ant_TenantUser_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_TenantUser"
ADD CONSTRAINT "ant_TenantUser_pkey" PRIMARY KEY (id);
--
-- TOC entry 3864 (class 2606 OID 190145)
-- Name: ant_Tenant ant_Tenant_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_Tenant"
ADD CONSTRAINT "ant_Tenant_pkey" PRIMARY KEY (id);
--
-- TOC entry 3870 (class 2606 OID 190147)
-- Name: ant_UserCredential ant_UserCredential_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_UserCredential"
ADD CONSTRAINT "ant_UserCredential_pkey" PRIMARY KEY (id);
--
-- TOC entry 3868 (class 2606 OID 190149)
-- Name: ant_User ant_User_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_User"
ADD CONSTRAINT "ant_User_pkey" PRIMARY KEY (id);
--
-- TOC entry 3872 (class 2606 OID 190151)
-- Name: ntf_InAppNotification ntf_InAppNotification_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_InAppNotification"
ADD CONSTRAINT "ntf_InAppNotification_pkey" PRIMARY KEY (id);
--
-- TOC entry 3874 (class 2606 OID 190153)
-- Name: ntf_Notification ntf_Notification_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_Notification"
ADD CONSTRAINT "ntf_Notification_pkey" PRIMARY KEY (id);
--
-- TOC entry 3878 (class 2606 OID 190155)
-- Name: ntf_QueueInbox ntf_QueryInbox_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_QueueInbox"
ADD CONSTRAINT "ntf_QueryInbox_pkey" PRIMARY KEY (id);
--
-- TOC entry 3880 (class 2606 OID 190157)
-- Name: ntf_QueueOutbox ntf_QueueOutbox_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_QueueOutbox"
ADD CONSTRAINT "ntf_QueueOutbox_pkey" PRIMARY KEY (id);
--
-- TOC entry 3884 (class 2606 OID 190159)
-- Name: ntf_TenantConfiguration ntf_TenantConfguration_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_TenantConfiguration"
ADD CONSTRAINT "ntf_TenantConfguration_pkey" PRIMARY KEY (id);
--
-- TOC entry 3886 (class 2606 OID 190161)
-- Name: ntf_TenantUser ntf_TenantUser_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_TenantUser"
ADD CONSTRAINT "ntf_TenantUser_pkey" PRIMARY KEY (id);
--
-- TOC entry 3882 (class 2606 OID 190163)
-- Name: ntf_Tenant ntf_Tenant_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_Tenant"
ADD CONSTRAINT "ntf_Tenant_pkey" PRIMARY KEY (id);
--
-- TOC entry 3890 (class 2606 OID 190165)
-- Name: ntf_UserContactInfo ntf_UserContactInfo_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_UserContactInfo"
ADD CONSTRAINT "ntf_UserContactInfo_pkey" PRIMARY KEY (id);
--
-- TOC entry 3892 (class 2606 OID 190167)
-- Name: ntf_UserCredential ntf_UserCredential_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_UserCredential"
ADD CONSTRAINT "ntf_UserCredential_pkey" PRIMARY KEY (id);
--
-- TOC entry 3894 (class 2606 OID 190169)
-- Name: ntf_UserNotificationPreference ntf_UserNotificationPreference_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_UserNotificationPreference"
ADD CONSTRAINT "ntf_UserNotificationPreference_pkey" PRIMARY KEY (id);
--
-- TOC entry 3834 (class 2606 OID 190171)
-- Name: UserAssociation pk_user_association; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserAssociation"
ADD CONSTRAINT pk_user_association PRIMARY KEY (id);
--
-- TOC entry 3848 (class 2606 OID 190173)
-- Name: UserSettings user_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserSettings"
ADD CONSTRAINT user_settings_pkey PRIMARY KEY (id);
--
-- TOC entry 3727 (class 1259 OID 190174)
-- Name: fki_DMPDMPProfileReference; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX "fki_DMPDMPProfileReference" ON public."DMP" USING btree ("Profile");
--
-- TOC entry 3738 (class 1259 OID 190175)
-- Name: fki_DatasetDatasetProfileReference; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX "fki_DatasetDatasetProfileReference" ON public."Dataset" USING btree ("Profile");
--
-- TOC entry 3895 (class 2606 OID 190176)
-- Name: ActionConfirmation ActionConfirmation_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ActionConfirmation"
ADD CONSTRAINT "ActionConfirmation_created_by_fkey" FOREIGN KEY (created_by) REFERENCES public."User"(id);
--
-- TOC entry 3896 (class 2606 OID 190181)
-- Name: ActionConfirmation ActionConfirmation_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ActionConfirmation"
ADD CONSTRAINT "ActionConfirmation_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id);
--
-- TOC entry 3897 (class 2606 OID 190186)
-- Name: Credential Credential_UserId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Credential"
ADD CONSTRAINT "Credential_UserId_fkey" FOREIGN KEY ("UserId") REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3898 (class 2606 OID 190191)
-- Name: DMP DMPDMPProfileReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMP"
ADD CONSTRAINT "DMPDMPProfileReference" FOREIGN KEY ("Profile") REFERENCES public."PlanBlueprint"(id);
--
-- TOC entry 3901 (class 2606 OID 190196)
-- Name: DMPDatasetProfile DMPDatasetProfile_datasetprofile_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMPDatasetProfile"
ADD CONSTRAINT "DMPDatasetProfile_datasetprofile_fkey" FOREIGN KEY (datasetprofile) REFERENCES public."DescriptionTemplate"(id);
--
-- TOC entry 3902 (class 2606 OID 190201)
-- Name: DMPDatasetProfile DMPDatasetProfile_dmp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMPDatasetProfile"
ADD CONSTRAINT "DMPDatasetProfile_dmp_fkey" FOREIGN KEY (dmp) REFERENCES public."DMP"("ID");
--
-- TOC entry 3903 (class 2606 OID 190206)
-- Name: DMPOrganisation DMPOrganisationDMPReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMPOrganisation"
ADD CONSTRAINT "DMPOrganisationDMPReference" FOREIGN KEY ("Organisation") REFERENCES public."Organisation"("ID");
--
-- TOC entry 3904 (class 2606 OID 190211)
-- Name: DMPOrganisation DMPOrganisationOrganisationReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMPOrganisation"
ADD CONSTRAINT "DMPOrganisationOrganisationReference" FOREIGN KEY ("DMP") REFERENCES public."DMP"("ID");
--
-- TOC entry 3899 (class 2606 OID 190216)
-- Name: DMP DMPProjectReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMP"
ADD CONSTRAINT "DMPProjectReference" FOREIGN KEY ("Grant") REFERENCES public."Grant"("ID");
--
-- TOC entry 3905 (class 2606 OID 190221)
-- Name: DMPResearcher DMPResearcherDMPReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMPResearcher"
ADD CONSTRAINT "DMPResearcherDMPReference" FOREIGN KEY ("Researcher") REFERENCES public."Researcher"("ID");
--
-- TOC entry 3906 (class 2606 OID 190226)
-- Name: DMPResearcher DMPResearcherResearcherReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMPResearcher"
ADD CONSTRAINT "DMPResearcherResearcherReference" FOREIGN KEY ("DMP") REFERENCES public."DMP"("ID");
--
-- TOC entry 3900 (class 2606 OID 190231)
-- Name: DMP DMP_Creator_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DMP"
ADD CONSTRAINT "DMP_Creator_fkey" FOREIGN KEY ("Creator") REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3907 (class 2606 OID 190236)
-- Name: Dataset DatasetDMPReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Dataset"
ADD CONSTRAINT "DatasetDMPReference" FOREIGN KEY ("DMP") REFERENCES public."DMP"("ID");
--
-- TOC entry 3910 (class 2606 OID 190241)
-- Name: DatasetDataRepository DatasetDataRepositoryDataRepositoryReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DatasetDataRepository"
ADD CONSTRAINT "DatasetDataRepositoryDataRepositoryReference" FOREIGN KEY ("DataRepository") REFERENCES public."DataRepository"("ID");
--
-- TOC entry 3911 (class 2606 OID 190246)
-- Name: DatasetDataRepository DatasetDataRepositoryDatasetReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DatasetDataRepository"
ADD CONSTRAINT "DatasetDataRepositoryDatasetReference" FOREIGN KEY ("Dataset") REFERENCES public."Dataset"("ID");
--
-- TOC entry 3908 (class 2606 OID 190251)
-- Name: Dataset DatasetDatasetProfileReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Dataset"
ADD CONSTRAINT "DatasetDatasetProfileReference" FOREIGN KEY ("Profile") REFERENCES public."DescriptionTemplate"(id);
--
-- TOC entry 3914 (class 2606 OID 190256)
-- Name: DatasetRegistry DatasetRegistryDatasetReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DatasetRegistry"
ADD CONSTRAINT "DatasetRegistryDatasetReference" FOREIGN KEY ("Dataset") REFERENCES public."Dataset"("ID");
--
-- TOC entry 3915 (class 2606 OID 190261)
-- Name: DatasetRegistry DatasetRegistryRegistryReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DatasetRegistry"
ADD CONSTRAINT "DatasetRegistryRegistryReference" FOREIGN KEY ("Registry") REFERENCES public."Registry"("ID");
--
-- TOC entry 3916 (class 2606 OID 190266)
-- Name: DatasetService DatasetServiceDatasetReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DatasetService"
ADD CONSTRAINT "DatasetServiceDatasetReference" FOREIGN KEY ("Dataset") REFERENCES public."Dataset"("ID");
--
-- TOC entry 3917 (class 2606 OID 190271)
-- Name: DatasetService DatasetServiceServiceReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DatasetService"
ADD CONSTRAINT "DatasetServiceServiceReference" FOREIGN KEY ("Service") REFERENCES public."Service"("ID");
--
-- TOC entry 3909 (class 2606 OID 190276)
-- Name: Dataset Dataset_Creator_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Dataset"
ADD CONSTRAINT "Dataset_Creator_fkey" FOREIGN KEY ("Creator") REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3923 (class 2606 OID 190281)
-- Name: DescriptionReference DescriptionReference_description_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionReference"
ADD CONSTRAINT "DescriptionReference_description_fkey" FOREIGN KEY (description_id) REFERENCES public."Description"(id);
--
-- TOC entry 3924 (class 2606 OID 190286)
-- Name: DescriptionReference DescriptionReference_reference_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionReference"
ADD CONSTRAINT "DescriptionReference_reference_fkey" FOREIGN KEY (reference_id) REFERENCES public."Reference"(id);
--
-- TOC entry 3925 (class 2606 OID 190291)
-- Name: DescriptionReference DescriptionReference_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionReference"
ADD CONSTRAINT "DescriptionReference_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3926 (class 2606 OID 190296)
-- Name: DescriptionStatus DescriptionStatus_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionStatus"
ADD CONSTRAINT "DescriptionStatus_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id);
--
-- TOC entry 3927 (class 2606 OID 190301)
-- Name: DescriptionTag DescriptionTag_description_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionTag"
ADD CONSTRAINT "DescriptionTag_description_fkey" FOREIGN KEY (description) REFERENCES public."Description"(id);
--
-- TOC entry 3928 (class 2606 OID 190306)
-- Name: DescriptionTag DescriptionTag_tag_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionTag"
ADD CONSTRAINT "DescriptionTag_tag_fkey" FOREIGN KEY (tag) REFERENCES public."Tag"(id);
--
-- TOC entry 3929 (class 2606 OID 190311)
-- Name: DescriptionTag DescriptionTag_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionTag"
ADD CONSTRAINT "DescriptionTag_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3932 (class 2606 OID 190316)
-- Name: DescriptionTemplateType DescriptionTemplateType_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionTemplateType"
ADD CONSTRAINT "DescriptionTemplateType_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3930 (class 2606 OID 190321)
-- Name: DescriptionTemplate DescriptionTemplate_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionTemplate"
ADD CONSTRAINT "DescriptionTemplate_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3931 (class 2606 OID 190326)
-- Name: DescriptionTemplate DescriptionTemplate_type_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionTemplate"
ADD CONSTRAINT "DescriptionTemplate_type_fkey" FOREIGN KEY (type) REFERENCES public."DescriptionTemplateType"(id);
--
-- TOC entry 3933 (class 2606 OID 190331)
-- Name: DescriptionWorkflow DescriptionWorkflow_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DescriptionWorkflow"
ADD CONSTRAINT "DescriptionWorkflow_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id);
--
-- TOC entry 3918 (class 2606 OID 190336)
-- Name: Description Description_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Description"
ADD CONSTRAINT "Description_created_by_fkey" FOREIGN KEY (created_by) REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3919 (class 2606 OID 190341)
-- Name: Description Description_description_template_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Description"
ADD CONSTRAINT "Description_description_template_fkey" FOREIGN KEY (description_template) REFERENCES public."DescriptionTemplate"(id) NOT VALID;
--
-- TOC entry 3920 (class 2606 OID 190346)
-- Name: Description Description_plan_description_template_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Description"
ADD CONSTRAINT "Description_plan_description_template_fkey" FOREIGN KEY (plan_description_template) REFERENCES public."PlanDescriptionTemplate"(id) NOT VALID;
--
-- TOC entry 3921 (class 2606 OID 190351)
-- Name: Description Description_plan_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Description"
ADD CONSTRAINT "Description_plan_fkey" FOREIGN KEY (plan) REFERENCES public."Plan"(id);
--
-- TOC entry 3922 (class 2606 OID 190356)
-- Name: Description Description_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Description"
ADD CONSTRAINT "Description_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3934 (class 2606 OID 190361)
-- Name: EntityDoi EntityDoi_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."EntityDoi"
ADD CONSTRAINT "EntityDoi_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3935 (class 2606 OID 190366)
-- Name: FileUpload FileUpload_Creator_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."FileUpload"
ADD CONSTRAINT "FileUpload_Creator_fkey" FOREIGN KEY ("Creator") REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3936 (class 2606 OID 190371)
-- Name: Grant Grant_CreationUser_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Grant"
ADD CONSTRAINT "Grant_CreationUser_fkey" FOREIGN KEY ("CreationUser") REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3938 (class 2606 OID 190376)
-- Name: Invitation Invitation_CreationUser_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Invitation"
ADD CONSTRAINT "Invitation_CreationUser_fkey" FOREIGN KEY ("CreationUser") REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3940 (class 2606 OID 190381)
-- Name: Language Language_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Language"
ADD CONSTRAINT "Language_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3941 (class 2606 OID 190386)
-- Name: Lock Lock_lockedby_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Lock"
ADD CONSTRAINT "Lock_lockedby_fkey" FOREIGN KEY (locked_by) REFERENCES public."User"(id);
--
-- TOC entry 3942 (class 2606 OID 190391)
-- Name: Lock Lock_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Lock"
ADD CONSTRAINT "Lock_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id);
--
-- TOC entry 3943 (class 2606 OID 190396)
-- Name: NotificationLegacy NotificationLegacy_UserId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."NotificationLegacy"
ADD CONSTRAINT "NotificationLegacy_UserId_fkey" FOREIGN KEY ("UserId") REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 4007 (class 2606 OID 190401)
-- Name: ntf_NotificationTemplate NotificationTemplate_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_NotificationTemplate"
ADD CONSTRAINT "NotificationTemplate_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id);
--
-- TOC entry 3947 (class 2606 OID 190406)
-- Name: PlanBlueprint PlanBlueprint_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanBlueprint"
ADD CONSTRAINT "PlanBlueprint_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3948 (class 2606 OID 190411)
-- Name: PlanDescriptionTemplate PlanDescriptionTemplate_plan_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanDescriptionTemplate"
ADD CONSTRAINT "PlanDescriptionTemplate_plan_fkey" FOREIGN KEY (plan) REFERENCES public."Plan"(id);
--
-- TOC entry 3949 (class 2606 OID 190416)
-- Name: PlanDescriptionTemplate PlanDescriptionTemplate_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanDescriptionTemplate"
ADD CONSTRAINT "PlanDescriptionTemplate_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3950 (class 2606 OID 190421)
-- Name: PlanReference PlanReference_plan_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanReference"
ADD CONSTRAINT "PlanReference_plan_id_fkey" FOREIGN KEY (plan_id) REFERENCES public."Plan"(id);
--
-- TOC entry 3951 (class 2606 OID 190426)
-- Name: PlanReference PlanReference_reference_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanReference"
ADD CONSTRAINT "PlanReference_reference_id_fkey" FOREIGN KEY (reference_id) REFERENCES public."Reference"(id);
--
-- TOC entry 3952 (class 2606 OID 190431)
-- Name: PlanReference PlanReference_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanReference"
ADD CONSTRAINT "PlanReference_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3953 (class 2606 OID 190436)
-- Name: PlanStatus PlanStatus_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanStatus"
ADD CONSTRAINT "PlanStatus_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id);
--
-- TOC entry 3954 (class 2606 OID 190441)
-- Name: PlanUser PlanUser_plan_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanUser"
ADD CONSTRAINT "PlanUser_plan_fkey" FOREIGN KEY (plan) REFERENCES public."Plan"(id);
--
-- TOC entry 3955 (class 2606 OID 190446)
-- Name: PlanUser PlanUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanUser"
ADD CONSTRAINT "PlanUser_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3956 (class 2606 OID 190451)
-- Name: PlanUser PlanUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanUser"
ADD CONSTRAINT "PlanUser_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3957 (class 2606 OID 190456)
-- Name: PlanWorkflow PlanWorkflow_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PlanWorkflow"
ADD CONSTRAINT "PlanWorkflow_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id);
--
-- TOC entry 3944 (class 2606 OID 190461)
-- Name: Plan Plan_blueprint_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Plan"
ADD CONSTRAINT "Plan_blueprint_fkey" FOREIGN KEY (blueprint) REFERENCES public."PlanBlueprint"(id);
--
-- TOC entry 3945 (class 2606 OID 190466)
-- Name: Plan Plan_creator_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Plan"
ADD CONSTRAINT "Plan_creator_fkey" FOREIGN KEY (creator) REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3946 (class 2606 OID 190471)
-- Name: Plan Plan_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Plan"
ADD CONSTRAINT "Plan_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3958 (class 2606 OID 190476)
-- Name: PrefillingSource PrefillingSource_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."PrefillingSource"
ADD CONSTRAINT "PrefillingSource_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id);
--
-- TOC entry 3959 (class 2606 OID 190481)
-- Name: Project Project_CreationUser_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Project"
ADD CONSTRAINT "Project_CreationUser_fkey" FOREIGN KEY ("CreationUser") REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3961 (class 2606 OID 190486)
-- Name: QueueInbox QueryInbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."QueueInbox"
ADD CONSTRAINT "QueryInbox_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id);
--
-- TOC entry 3962 (class 2606 OID 190491)
-- Name: QueueOutbox QueueOutbox_tennat_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."QueueOutbox"
ADD CONSTRAINT "QueueOutbox_tennat_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id);
--
-- TOC entry 3966 (class 2606 OID 190496)
-- Name: ReferenceType ReferenceType_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ReferenceType"
ADD CONSTRAINT "ReferenceType_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3963 (class 2606 OID 190501)
-- Name: Reference Reference_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Reference"
ADD CONSTRAINT "Reference_created_by_fkey" FOREIGN KEY (created_by) REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3964 (class 2606 OID 190506)
-- Name: Reference Reference_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Reference"
ADD CONSTRAINT "Reference_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3965 (class 2606 OID 190511)
-- Name: Reference Reference_type_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Reference"
ADD CONSTRAINT "Reference_type_fkey" FOREIGN KEY (type) REFERENCES public."ReferenceType"(id);
--
-- TOC entry 3967 (class 2606 OID 190516)
-- Name: StorageFile StorageFile_owner_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."StorageFile"
ADD CONSTRAINT "StorageFile_owner_fkey" FOREIGN KEY (owner) REFERENCES public."User"(id);
--
-- TOC entry 3968 (class 2606 OID 190521)
-- Name: StorageFile StorageFile_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."StorageFile"
ADD CONSTRAINT "StorageFile_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3969 (class 2606 OID 190526)
-- Name: SupportiveMaterial SupportiveMaterial_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."SupportiveMaterial"
ADD CONSTRAINT "SupportiveMaterial_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3970 (class 2606 OID 190531)
-- Name: Tag Tag_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Tag"
ADD CONSTRAINT "Tag_created_by_fkey" FOREIGN KEY (created_by) REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3971 (class 2606 OID 190536)
-- Name: Tag Tag_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Tag"
ADD CONSTRAINT "Tag_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3972 (class 2606 OID 190541)
-- Name: TenantConfiguration TenantConfiguration_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."TenantConfiguration"
ADD CONSTRAINT "TenantConfiguration_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id);
--
-- TOC entry 3973 (class 2606 OID 190546)
-- Name: TenantUser TenantUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."TenantUser"
ADD CONSTRAINT "TenantUser_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id);
--
-- TOC entry 3974 (class 2606 OID 190551)
-- Name: TenantUser TenantUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."TenantUser"
ADD CONSTRAINT "TenantUser_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id);
--
-- TOC entry 3975 (class 2606 OID 190556)
-- Name: UsageLimit UsageLimit_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UsageLimit"
ADD CONSTRAINT "UsageLimit_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id);
--
-- TOC entry 3978 (class 2606 OID 190561)
-- Name: UserContactInfo UserContactInfo_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserContactInfo"
ADD CONSTRAINT "UserContactInfo_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id);
--
-- TOC entry 3979 (class 2606 OID 190566)
-- Name: UserCredential UserCredential_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserCredential"
ADD CONSTRAINT "UserCredential_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id);
--
-- TOC entry 3980 (class 2606 OID 190571)
-- Name: UserDMP UserDMP_dmp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserDMP"
ADD CONSTRAINT "UserDMP_dmp_fkey" FOREIGN KEY (dmp) REFERENCES public."DMP"("ID");
--
-- TOC entry 3981 (class 2606 OID 190576)
-- Name: UserDMP UserDMP_usr_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserDMP"
ADD CONSTRAINT "UserDMP_usr_fkey" FOREIGN KEY (usr) REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3982 (class 2606 OID 190581)
-- Name: UserDescriptionTemplate UserDatasetProfile_datasetProfile_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserDescriptionTemplate"
ADD CONSTRAINT "UserDatasetProfile_datasetProfile_fkey" FOREIGN KEY (description_template) REFERENCES public."DescriptionTemplate"(id);
--
-- TOC entry 3983 (class 2606 OID 190586)
-- Name: UserDescriptionTemplate UserDescriptionTemplate_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserDescriptionTemplate"
ADD CONSTRAINT "UserDescriptionTemplate_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3984 (class 2606 OID 190591)
-- Name: UserDescriptionTemplate UserDescriptionTemplate_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserDescriptionTemplate"
ADD CONSTRAINT "UserDescriptionTemplate_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3985 (class 2606 OID 190596)
-- Name: UserRole UserRole_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserRole"
ADD CONSTRAINT "UserRole_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3986 (class 2606 OID 190601)
-- Name: UserRole UserRole_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserRole"
ADD CONSTRAINT "UserRole_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3987 (class 2606 OID 190606)
-- Name: UserSettings UserSettings_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserSettings"
ADD CONSTRAINT "UserSettings_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
--
-- TOC entry 3988 (class 2606 OID 190611)
-- Name: UserToken UserToken_UserId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserToken"
ADD CONSTRAINT "UserToken_UserId_fkey" FOREIGN KEY ("UserId") REFERENCES public."User"(id) NOT VALID;
--
-- TOC entry 3992 (class 2606 OID 190616)
-- Name: ant_AnnotationStatus ant_AnnotationStatus_annotation_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_AnnotationStatus"
ADD CONSTRAINT "ant_AnnotationStatus_annotation_fkey" FOREIGN KEY (annotation_id) REFERENCES public."ant_Annotation"(id);
--
-- TOC entry 3993 (class 2606 OID 190621)
-- Name: ant_AnnotationStatus ant_AnnotationStatus_status_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_AnnotationStatus"
ADD CONSTRAINT "ant_AnnotationStatus_status_fkey" FOREIGN KEY (status_id) REFERENCES public."ant_Status"(id);
--
-- TOC entry 3994 (class 2606 OID 190626)
-- Name: ant_AnnotationStatus ant_AnnotationStatus_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_AnnotationStatus"
ADD CONSTRAINT "ant_AnnotationStatus_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ant_Tenant"(id);
--
-- TOC entry 3989 (class 2606 OID 190631)
-- Name: ant_Annotation ant_Annotation_parent_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_Annotation"
ADD CONSTRAINT "ant_Annotation_parent_fkey" FOREIGN KEY (parent_id) REFERENCES public."ant_Annotation"(id);
--
-- TOC entry 3990 (class 2606 OID 190636)
-- Name: ant_Annotation ant_Annotation_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_Annotation"
ADD CONSTRAINT "ant_Annotation_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ant_Tenant"(id);
--
-- TOC entry 3991 (class 2606 OID 190641)
-- Name: ant_Annotation ant_Annotation_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_Annotation"
ADD CONSTRAINT "ant_Annotation_user_fkey" FOREIGN KEY (subject_id) REFERENCES public."ant_User"(id);
--
-- TOC entry 3995 (class 2606 OID 190646)
-- Name: ant_EntityUser ant_EntityUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_EntityUser"
ADD CONSTRAINT "ant_EntityUser_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ant_Tenant"(id);
--
-- TOC entry 3996 (class 2606 OID 190651)
-- Name: ant_EntityUser ant_EntityUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_EntityUser"
ADD CONSTRAINT "ant_EntityUser_user_fkey" FOREIGN KEY (user_id) REFERENCES public."ant_User"(id);
--
-- TOC entry 3997 (class 2606 OID 190656)
-- Name: ant_QueueInbox ant_QueryInbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_QueueInbox"
ADD CONSTRAINT "ant_QueryInbox_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ant_Tenant"(id);
--
-- TOC entry 3998 (class 2606 OID 190661)
-- Name: ant_QueueOutbox ant_QueueOutbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_QueueOutbox"
ADD CONSTRAINT "ant_QueueOutbox_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ant_Tenant"(id);
--
-- TOC entry 3999 (class 2606 OID 190666)
-- Name: ant_Status ant_Status_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_Status"
ADD CONSTRAINT "ant_Status_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ant_Tenant"(id);
--
-- TOC entry 4000 (class 2606 OID 190671)
-- Name: ant_TenantUser ant_TenantUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_TenantUser"
ADD CONSTRAINT "ant_TenantUser_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ant_Tenant"(id);
--
-- TOC entry 4001 (class 2606 OID 190676)
-- Name: ant_TenantUser ant_TenantUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_TenantUser"
ADD CONSTRAINT "ant_TenantUser_user_fkey" FOREIGN KEY ("user") REFERENCES public."ant_User"(id);
--
-- TOC entry 4002 (class 2606 OID 190681)
-- Name: ant_UserCredential ant_UserCredential_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ant_UserCredential"
ADD CONSTRAINT "ant_UserCredential_user_fkey" FOREIGN KEY ("user") REFERENCES public."ant_User"(id);
--
-- TOC entry 3937 (class 2606 OID 190686)
-- Name: Grant fk_grant_content; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Grant"
ADD CONSTRAINT fk_grant_content FOREIGN KEY ("Content") REFERENCES public."Content"("Id");
--
-- TOC entry 3939 (class 2606 OID 190691)
-- Name: Invitation fk_invitation_dmp; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Invitation"
ADD CONSTRAINT fk_invitation_dmp FOREIGN KEY ("Dmp") REFERENCES public."DMP"("ID");
--
-- TOC entry 3960 (class 2606 OID 190696)
-- Name: Project fk_project_content; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."Project"
ADD CONSTRAINT fk_project_content FOREIGN KEY ("Content") REFERENCES public."Content"("Id");
--
-- TOC entry 3976 (class 2606 OID 190701)
-- Name: UserAssociation fk_userinfo_user_association_1; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserAssociation"
ADD CONSTRAINT fk_userinfo_user_association_1 FOREIGN KEY ("firstUser") REFERENCES public."UserInfo"(id);
--
-- TOC entry 3977 (class 2606 OID 190706)
-- Name: UserAssociation fk_userinfo_user_association_2; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."UserAssociation"
ADD CONSTRAINT fk_userinfo_user_association_2 FOREIGN KEY ("secondUser") REFERENCES public."UserInfo"(id);
--
-- TOC entry 3912 (class 2606 OID 190711)
-- Name: DatasetExternalDataset fkey_datasetexternaldataset_dataset; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DatasetExternalDataset"
ADD CONSTRAINT fkey_datasetexternaldataset_dataset FOREIGN KEY ("Dataset") REFERENCES public."Dataset"("ID");
--
-- TOC entry 3913 (class 2606 OID 190716)
-- Name: DatasetExternalDataset fkey_datasetexternaldataset_externaldataset; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."DatasetExternalDataset"
ADD CONSTRAINT fkey_datasetexternaldataset_externaldataset FOREIGN KEY ("ExternalDataset") REFERENCES public."ExternalDataset"("Id");
--
-- TOC entry 4003 (class 2606 OID 190721)
-- Name: ntf_InAppNotification ntf_InAppNotification_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_InAppNotification"
ADD CONSTRAINT "ntf_InAppNotification_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id);
--
-- TOC entry 4004 (class 2606 OID 190726)
-- Name: ntf_InAppNotification ntf_InAppNotification_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_InAppNotification"
ADD CONSTRAINT "ntf_InAppNotification_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id);
--
-- TOC entry 4005 (class 2606 OID 190731)
-- Name: ntf_Notification ntf_Notification_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_Notification"
ADD CONSTRAINT "ntf_Notification_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id);
--
-- TOC entry 4006 (class 2606 OID 190736)
-- Name: ntf_Notification ntf_Notification_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_Notification"
ADD CONSTRAINT "ntf_Notification_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id);
--
-- TOC entry 4008 (class 2606 OID 190741)
-- Name: ntf_QueueInbox ntf_QueryInbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_QueueInbox"
ADD CONSTRAINT "ntf_QueryInbox_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id);
--
-- TOC entry 4009 (class 2606 OID 190746)
-- Name: ntf_QueueOutbox ntf_QueueOutbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_QueueOutbox"
ADD CONSTRAINT "ntf_QueueOutbox_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id);
--
-- TOC entry 4010 (class 2606 OID 190751)
-- Name: ntf_TenantConfiguration ntf_TenantConfiguration_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_TenantConfiguration"
ADD CONSTRAINT "ntf_TenantConfiguration_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id);
--
-- TOC entry 4011 (class 2606 OID 190756)
-- Name: ntf_TenantUser ntf_TenantUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_TenantUser"
ADD CONSTRAINT "ntf_TenantUser_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id);
--
-- TOC entry 4012 (class 2606 OID 190761)
-- Name: ntf_TenantUser ntf_TenantUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_TenantUser"
ADD CONSTRAINT "ntf_TenantUser_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id);
--
-- TOC entry 4013 (class 2606 OID 190766)
-- Name: ntf_UserContactInfo ntf_UserContactInfo_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_UserContactInfo"
ADD CONSTRAINT "ntf_UserContactInfo_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id);
--
-- TOC entry 4014 (class 2606 OID 190771)
-- Name: ntf_UserCredential ntf_UserCredential_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_UserCredential"
ADD CONSTRAINT "ntf_UserCredential_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id);
--
-- TOC entry 4015 (class 2606 OID 190776)
-- Name: ntf_UserNotificationPreference ntf_UserNotificationPreference_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_UserNotificationPreference"
ADD CONSTRAINT "ntf_UserNotificationPreference_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."ntf_Tenant"(id);
--
-- TOC entry 4016 (class 2606 OID 190781)
-- Name: ntf_UserNotificationPreference ntf_UserNotificationPreference_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public."ntf_UserNotificationPreference"
ADD CONSTRAINT "ntf_UserNotificationPreference_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id);
-- Completed on 2024-09-19 14:01:23
--
-- PostgreSQL database dump complete
--