The OpenCDMP service was developed to provide a more flexible, collaborative environment with machine actionable solutions in writing, sharing and publishing Data Management Plans (DMPs). It is a product of cooperation between OpenAIRE AMKE and EUDAT CDI and is offered both as a software “OpenCDMP '' and as an online service under the name “ARGOS”.
+
The OpenDMP service was developed to provide a more flexible, collaborative environment with machine actionable solutions in writing, sharing and publishing Data Management Plans (DMPs). It is a product of cooperation between OpenAIRE AMKE and EUDAT CDI and is offered both as a software “OpenDMP '' and as an online service under the name “ARGOS”.
-
OpenCDMP software is offered under the Free Open Source Software license Apache 2.0, for further development and use by institutions and interested parties.
+
OpenDMP software is offered under the Free Open Source Software license Apache 2.0, for further development and use by institutions and interested parties.
ARGOS service is offered byOpenAIRE as part of its mission to support Open Science in the European Research Area, focusing on information linking and contextualisation that enriches its Research Graph. Use of ARGOS denotes agreement with the following terms:
ARGOS is a software interface and a database with no storage capacity to store or preserve research data. The DMPs created are hosted in the OpenAIRE production environment for the sole purpose of exposing the DMP records once finalised (“published”). If assigned a DOI, the DMP records are linked to and preserved in Zenodo, the OpenAIRE’s repository service. The ARGOS service is made available for use free-of-charge for research, educational and informational purposes.
Modelo de Dados – é composto por um conjunto de questões que descrevem o que os Datasets contêm e como são tratados. Estes modelos estão ligados a PGDs, de modo a que os utilizadores tenham acesso a formatos específicos consoante a instituição a que reportam. Os modelos só podem ser modificados por administradores. Um grant e/ou um projeto definem o contexto em que um ou mais PGDs podem ser criados.
-
Importar ficheiro - Suporta a função de importar ficheiros em formato .json, que são produzidos de acordo com as especificações da Research Data Alliance (RDA) para PGDs acionáveis por máquina.
+
Importar ficheiro - Suporta a função de importar ficheiros em formato .json, que são produzidos de acordo com as especificações da Research Data Alliance (RDA) para PGDs acionáveis por máquina.
-
O botão “Criar novo PGD” permite de forma simples iniciar o seu plano. Esta opçãofornece um editor que percorre os elementos essenciais de um PGD, guiando o processo de criação do documento passo a passo.
A partir do "Início"
+
O botão “Criar novo PGD” permite de forma simples iniciar o seu plano. Esta opçãofornece um editor que percorre os elementos essenciais de um PGD, guiando o processo de criação do documento passo a passo.
A partir do "Início"
-
A partir de “Adicione um Dataset”
Adicionar um Dataset é uma forma simples de adicionar novos modelos de dados a PGDs pré-existentes.
A partir do “Início”
-
A partir de “Os meus Datasets”
A partir de “Os meus PGDs”
-
A partir do “Editor de Dataset”
+
A partir de “Adicione um Dataset”
Adicionar um Dataset é uma forma simples de adicionar novos modelos de dados a PGDs pré-existentes.
Sobre – Informa sobre o âmbito e principais funções da ferramenta (como funciona, Roadmap, FAQs, quais os contribuidores).
@@ -2013,13 +2013,13 @@
2.2 Login
Estão disponíveis diferentes opções de login, desde meios de comunicação social a canais de investigação e comunicação académica.
-
Atenção! Não é necessária uma conta de utilizador.
+
Atenção! Não é necessária uma conta de utilizador.
2.3 Menu do Utilizador
Espaço dedicado e que poderá ser customizado de acordo com o perfil pessoal do utilizador.
-
+
Definições do Meu Perfil - Exibe a página de perfil que contém detalhes tais como: nome, e-mail, dados da conta Zenodo, etc.
PGDs associados - Coleção dos PGDs do utilizador.
@@ -2046,12 +2046,12 @@
-
+
-
+
@@ -2132,11 +2132,11 @@
2.5 Início
O “Início” é a informação que aparece depois de entrar no Argos a partir da página inicial.
Inclui informação condensada baseada na função Argos e na sua utilização.
-
Início – Antes de iniciar a sessão
+
Início – Antes de iniciar a sessão
-
+
Última Atividade - Exibe os PGDs e Datasets publicamente disponíveis, de acordo com a data da sua publicação no Argos e a sua etiqueta (PGDs ou Datasets).
@@ -2147,7 +2147,7 @@
-
+
Uso Público - Mostra o número de PGDs, Datasets, Grants e Organizações publicamente disponíveis e incluídas no Argos.
@@ -2157,11 +2157,11 @@
-
Início - Após Iniciar a Sessão
+
Início - Após Iniciar a Sessão
-
+
Última Atividade - Exibe os PGDs e Datasets do utilizador, de acordo com a data da sua última modificação, estado do documento (rascunho, finalizado, publicado) e a sua etiqueta (PGDs ou Datasets).
@@ -2172,7 +2172,7 @@
-
+
Uso Pessoal - Mostra a atividade do utilizador nos PGDs, Datasets, Grants e Organizações.
@@ -2184,7 +2184,7 @@
Contém todos os PGDs e Datasets de que o utilizador é proprietário ou colaborador. Tanto os PGDs, como os Datasets, são classificados pela data da sua última modificação, o estado do documento (rascunho, finalizado, publicado) e a sua etiqueta (PGDs ou Datasets).
Os Meus PGDs
-
Quando a etiqueta é verde trata-se de um PGD, mostrando o papel da pessoa que vê o PGD, o estado do processo de escrita, a versão atual do PGD, o grant associado ao PGD, o número e nome dos Datasets que o PGD tem.
+
Quando a etiqueta é verde trata-se de um PGD, mostrando o papel da pessoa que vê o PGD, o estado do processo de escrita, a versão atual do PGD, o grant associado ao PGD, o número e nome dos Datasets que o PGD tem.
Exportar - Suporta o download dos outputs do PGD nos seguintes formatos: PDF, Document, XML, RDA JSON (pode ser importado para outras ferramentas de PGD compatíveis com a RDA).
@@ -2206,7 +2206,7 @@
-
+
Nova Versão - Inicia uma nova versão do PGD.
Ver todas as Versões do PGD - Mostra o histórico das diferentes versões do PGD.
@@ -2217,7 +2217,7 @@
Os Meus Datasets
-
Quando a etiqueta é amarelo trata-se de um Dataset e mostra o papel da pessoa que visualiza o Dataset, o estado do processo de escrita, o grant associado ao PGD e o título do PGD do qual o Dataset faz parte.
+
Quando a etiqueta é amarelo trata-se de um Dataset e mostra o papel da pessoa que visualiza o Dataset, o estado do processo de escrita, o grant associado ao PGD e o título do PGD do qual o Dataset faz parte.
Exportar - Suporta o download dos outputs do Dataset nos seguintes formatos: PDF, Document, XML, RDA JSON (pode ser importado para outras ferramentas de PGD compatíveis com a RDA).
@@ -2238,7 +2238,7 @@
Tanto os PGDs como os Datasets são organizados e apresentados pela data da sua última modificação e pela sua etiqueta (PGDs ou Datasets). Os utilizadores também podem procurar o PGD ou Dataset a partir da barra de pesquisa.
PGDs Públicos
Quando a etiqueta é verde trata-se de um PGD e exibe o título do PGD, o seu estado, a sua versão, o grant associado, o número e o nome dos Datasets que o PGD contém.
-
+
Exportar - Suporta o download dos outputs do PGD nos seguintes formatos: PDF, Document, XML, RDA JSON (pode ser importado para outras ferramentas de PGD compatíveis com a RDA).
@@ -2250,7 +2250,7 @@
Datasets Públicos
-
Quando a etiqueta é amarelo trata-se de um Dataset Público e mostra o título do Dataset, o seu estado, o grant associado ao PGD e o papel da pessoa que visualiza o Dataset, o estado do processo de escrita, o grantassociado ao PGD e o título do PGD do qual o Dataset faz parte.
+
Quando a etiqueta é amarelo trata-se de um Dataset Público e mostra o título do Dataset, o seu estado, o grant associado ao PGD e o papel da pessoa que visualiza o Dataset, o estado do processo de escrita, o grantassociado ao PGD e o título do PGD do qual o Dataset faz parte.
Exportar - Suporta o download dos outputs do Dataset nos seguintes formatos: PDF, Document, XML, RDA JSON (pode ser importado para outras ferramentas de PGD compatíveis com a RDA).
@@ -2259,7 +2259,7 @@
-
+
Copiar o Dataset - Cria uma cópia do Dataset.
@@ -2269,14 +2269,14 @@
2.8 Criar novo PGD
Existem várias formas de criar um novo PGD no Argos.
-
+
Existem 4 etapas envolvidas na criação de um PGD:
- Informação Geral;
- Informação sobre o Financiamento;
- Informação sobre a Licença;
- Informação sobre os Datasets.
Informação Geral
-
+
Título do PGD - Título do documento.
@@ -2301,7 +2301,7 @@
Informação sobre o Financiamento
-
+
Organizações de Financiamento - Integra uma lista onde os utilizadores podem selecionar a organização através da qual a investigação é financiada. Caso o nome de uma organização financiadora não possa ser encontrado no Argos, os utilizadores podem criar um novo registo com o nome e detalhes da organização financiadora ("Inserir manualmente").
@@ -2314,7 +2314,7 @@
Informação sobre a Licença
-
+
Licença - Inclui uma lista de licenças a escolher e a atribuir aos PGDs.
@@ -2322,7 +2322,7 @@
Informação sobre os Datasets
-
+
Informação sobre os Datasets – Permite selecionar o modelo para descrever os seus datasets. Poderá selecionar mais do que um modelo de dados.
@@ -2342,7 +2342,7 @@
- Adicionar Datasets aos PGDs existentes.
No Argos, os Datasets estão ligados e associados a pelo menos um PGD. Um Dataset não pode existir como registo único.
Primeiro Dataset
-
+
Uma vez criado o PGD, o utilizador poderá preencher a descrição dos seus dados no “Editor de Dataset”.
@@ -2368,18 +2368,18 @@
Selecione um PGD para o seu Dataset
-
+
Selecione um PGD já existente na lista.
Selecione um Modelo
-
+
Selecionar o modelo de dados para descrever o seu Dataset, de acordo com a organização que financia o seu grant.
Edite o Dataset
O “Editor de Dataset” apoia na descrição de informação de acordo com o modelo selecionado.
-
+
Guardar Datasets - Existem várias formas de guardar Datasets no Argos. Todas têm a mesma finalidade, diferindo da ação de acompanhamento.
@@ -2394,7 +2394,7 @@
Concluir – Salva todas as alterações realizadas, encerrando a janela do editor e redirecionando para o “Início”.
-
+
@@ -2402,26 +2402,26 @@
Regista os PGDs e Datasets no Argos, após a sua edição e conclusão.
Os utilizadores podem visualizar os PGDs e Datasets que criaram. Ao abrir um registo que tenham criado, são-lhes fornecidas funcionalidades adicionais que estão ligadas à conclusão do processo de escrita dos PGDs.
São aplicáveis funcionalidades diferentes consoante o estado do PGD, ou seja, antes ou depois da conclusão do PGD.
-
Antes de concluir o PGD
+
Antes de concluir o PGD
Antes de concluir o PGD, este pode ainda ser editado, eliminado ou duplicado. Os utilizadores podem rever a informação que acrescentaram relativamente a grants, investigadores, descrição do PGD e Datasets e/ou modelos de dados utilizados.
Podem ser adicionados novos Datasets em qualquer altura, a partir desta página.
Os utilizadores podem exportar o PGD, começar a trabalhar numa nova versão e/ou convidar colegas a colaborar na conclusão do seu plano.
Convidar
-
-
Após concluir o PGD
+
+
Após concluir o PGD
Após a conclusão do PGD, este poderá ser tornado publicamente visível no Argos e depositado no Zenodo.
Os utilizadores podem exportar o PGD finalizado, começar a trabalhar numa nova versão e/ou convidar colegas a colaborar na conclusão do plano.
É possível reverter a conclusão do PGD.
Antes de concluir os Datasets
-
+
Antes de concluir o Dataset, este pode ainda ser editado, eliminado ou duplicado.
Os utilizadores podem aceder a todo o PGD do qual o Dataset faz parte, a partir dessa página, e rever a informação que acrescentaram relativamente ao grant, investigadores e descrição do Dataset.
Os utilizadores podem exportar a descrição do Dataset e convidar os colegas a colaborar na sua conclusão.
Após concluir os Datasets
-
+
Após a conclusão do Dataset, este poderá ser exportado e partilhado com colegas para revisão.
diff --git a/deployment/opencdmp/frontend/WebAppNginx.conf b/deployment/opencdmp/frontend/WebAppNginx.conf
index 4613e7026..b5c3bba8f 100644
--- a/deployment/opencdmp/frontend/WebAppNginx.conf
+++ b/deployment/opencdmp/frontend/WebAppNginx.conf
@@ -20,20 +20,9 @@ server {
root /usr/share/nginx/html;
- location = / {
- return 301 https://$host/splash/;
- }
-
- location /splash/ {
- add_header Cache-Control "no-store, no-cache, must-revalidate";
- alias /usr/share/nginx/html/assets/splash/;
-
- }
-
-
location / {
try_files $uri $uri/ /index.html =404;
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
-}
+}
\ No newline at end of file
diff --git a/deployment/opencdmp/frontend/config.json b/deployment/opencdmp/frontend/config.json
index 3cdd73814..c35b15660 100644
--- a/deployment/opencdmp/frontend/config.json
+++ b/deployment/opencdmp/frontend/config.json
@@ -6,7 +6,7 @@
"Enabled": false,
"Url": "localhost:5000/"
},
- "defaultCulture": "en-US",
+ "defaultCulture": "en",
"defaultLanguage": "en",
"defaultBlueprintId": "86635178-36a6-484f-9057-a934e4eeecd5",
"keycloak": {
@@ -25,7 +25,18 @@
"enabled": true
},
"annotation_service": {
- "enabled": true
+ "enabled": true,
+ "statusIcons": [
+ {
+ "internalStatus": "0",
+ "icon": "check"
+ },
+ {
+ "id": "948fdf9c-6b84-467c-884b-5323c5ea15d7",
+ "icon": "done_all"
+ }
+ ],
+ "defaultStatusIcon": "animation"
},
"zenodoConfiguration": {
"clientId": "dmp_plugins",
@@ -41,10 +52,21 @@
"url": "https://beta.analytics.openaire.eu/",
"siteId": 361
},
+ "analytics": {
+ "providers": [
+ {
+ "enabled": true,
+ "type": "matomo",
+ "options": {
+ "url": "https://beta.analytics.openaire.eu/",
+ "siteId": 361
+ }
+ }
+ ]
+ },
"lockInterval": 60000,
"guideAssets": "assets/images/guide",
"allowOrganizationCreator": true,
- "useSplash": false,
"orcidPath": "https://orcid.org/",
"maxFileSizeInMB": 10,
"authProviders": {
@@ -69,5 +91,65 @@
"researcherId": "5a2112e7-ea99-4cfe-98a1-68665e26726e",
"grantId": "5b9c284f-f041-4995-96cc-fad7ad13289c",
"organizationId": "7eeffb98-58fb-4921-82ec-e27f32f8e738"
- }
+ },
+ "deposit":{
+ "recordUrlIdPlaceholder": "{doi_id}"
+ },
+ "sidebar": {
+ "infoItems": [
+ {
+ "title": "SIDE-BAR.CO-BRANDING",
+ "icon": "toll",
+ "externalUrl": "/splash/resources/co-branding.html",
+ "accessLevel": "public"
+ },
+ {
+ "title": "SIDE-BAR.SUPPORT",
+ "icon": "help",
+ "routerPath": "/contact-support",
+ "accessLevel": "authenticated"
+ },
+ {
+ "title": "SIDE-BAR.SUPPORT",
+ "icon": "help",
+ "externalUrl": "/splash/contact.html",
+ "accessLevel": "unauthenticated"
+ },
+ {
+ "title": "SIDE-BAR.FEEDBACK",
+ "icon": "feedback",
+ "externalUrl": "https://docs.google.com/forms/d/12RSCrUjdSDp2LZLpjDKOi44cN1fLDD2q1-F66SqZIis/viewform?edit_requested=true",
+ "accessLevel": "public"
+ }
+ ],
+ "footerItems": [
+ {
+ "routerPath": "/about",
+ "title": "FOOTER.ABOUT",
+ "icon": "feedback",
+ "accessLevel": "public"
+ },
+ {
+ "routerPath": "/terms-and-conditions",
+ "title": "FOOTER.TERMS-OF-SERVICE",
+ "accessLevel": "public"
+ },
+ {
+ "routerPath": "/glossary",
+ "title": "FOOTER.GLOSSARY",
+ "accessLevel": "public"
+ },
+ {
+ "routerPath": "/user-guide",
+ "title": "FOOTER.GUIDE",
+ "accessLevel": "public"
+ },
+ {
+ "routerPath": "/contact-support",
+ "title": "FOOTER.CONTACT-SUPPORT",
+ "accessLevel": "authenticated"
+ }
+ ]
+ },
+ "mergeAccountDelayInSeconds": 30
}
diff --git a/deployment/postgres/opencdmp_init.sql b/deployment/postgres/opencdmp_init.sql
index 61204edcd..8015407a5 100644
--- a/deployment/postgres/opencdmp_init.sql
+++ b/deployment/postgres/opencdmp_init.sql
@@ -5,7 +5,7 @@
-- Dumped from database version 16.2
-- Dumped by pg_dump version 16.2
--- Started on 2024-05-09 15:11:12
+-- Started on 2024-09-19 14:01:18
CREATE DATABASE keycloak WITH OWNER "postgres";
SET statement_timeout = 0;
SET lock_timeout = 0;
@@ -19,7 +19,7 @@ SET client_min_messages = warning;
SET row_security = off;
--
--- TOC entry 4125 (class 1262 OID 63739)
+-- TOC entry 4165 (class 1262 OID 177869)
-- Name: opencdmp; Type: DATABASE; Schema: -; Owner: -
--
@@ -40,7 +40,7 @@ SET client_min_messages = warning;
SET row_security = off;
--
--- TOC entry 2 (class 3079 OID 63740)
+-- TOC entry 2 (class 3079 OID 177872)
-- Name: uuid-ossp; Type: EXTENSION; Schema: -; Owner: -
--
@@ -48,7 +48,7 @@ CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public;
--
--- TOC entry 4126 (class 0 OID 0)
+-- TOC entry 4166 (class 0 OID 0)
-- Dependencies: 2
-- Name: EXTENSION "uuid-ossp"; Type: COMMENT; Schema: -; Owner: -
--
@@ -57,7 +57,7 @@ COMMENT ON EXTENSION "uuid-ossp" IS 'generate universally unique identifiers (UU
--
--- TOC entry 932 (class 1247 OID 63752)
+-- TOC entry 938 (class 1247 OID 177884)
-- Name: doientitytype; Type: TYPE; Schema: public; Owner: -
--
@@ -67,7 +67,7 @@ CREATE TYPE public.doientitytype AS ENUM (
--
--- TOC entry 935 (class 1247 OID 63756)
+-- TOC entry 941 (class 1247 OID 177888)
-- Name: entitytype; Type: TYPE; Schema: public; Owner: -
--
@@ -80,7 +80,7 @@ CREATE TYPE public.entitytype AS ENUM (
SET default_table_access_method = heap;
--
--- TOC entry 216 (class 1259 OID 63761)
+-- TOC entry 216 (class 1259 OID 177893)
-- Name: ActionConfirmation; Type: TABLE; Schema: public; Owner: -
--
@@ -100,7 +100,7 @@ CREATE TABLE public."ActionConfirmation" (
--
--- TOC entry 217 (class 1259 OID 63766)
+-- TOC entry 217 (class 1259 OID 177898)
-- Name: Content; Type: TABLE; Schema: public; Owner: -
--
@@ -115,7 +115,7 @@ CREATE TABLE public."Content" (
--
--- TOC entry 218 (class 1259 OID 63771)
+-- TOC entry 218 (class 1259 OID 177903)
-- Name: Credential; Type: TABLE; Schema: public; Owner: -
--
@@ -134,7 +134,7 @@ CREATE TABLE public."Credential" (
--
--- TOC entry 219 (class 1259 OID 63776)
+-- TOC entry 219 (class 1259 OID 177908)
-- Name: DBVersion; Type: TABLE; Schema: public; Owner: -
--
@@ -164,73 +164,87 @@ INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.00.014', '2023-06-21 10:00:0
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-05-08 13:42:55.229528+00', 'Add Reference, ReferenceType, SupportiveMaterial');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.001', '2023-10-19 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Align Description Template Type.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.002', '2023-10-19 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Align Entity Doi table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.003', '2023-10-19 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add UserSettings table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.004', '2023-10-27 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Align dmp blueprint table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.005', '2023-10-27 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add Dmp table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.006', '2023-10-27 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add DescriptionReference table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.007', '2023-10-27 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add Description table (former Dataset).');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.008', '2023-10-27 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add DescriptionReference table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.009', '2023-10-27 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Drop old dataset related tables.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.010', '2023-11-02 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Aling DescriptionTemplate table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.011', '2023-11-02 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Aling UserDescriptionTemplate table (former UserDatasetProfile).');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.012', '2023-11-02 10:00:00+00', '2024-05-08 13:42:55.229528+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-05-08 13:42:55.229528+00', 'Add Dmp User table (former UserDMP).');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.014', '2023-11-20 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Sync table Description.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.015', '2023-11-20 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table tag.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.016', '2023-11-20 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table DescriptionTag.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.017', '2023-11-20 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table User.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.018', '2023-11-20 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table UserCredential.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.019', '2023-11-20 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table UserContactInfo.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.020', '2023-11-20 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Sync table UserRole.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.021', '2023-11-20 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Sync user tables data.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.022', '2023-11-20 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Update user tables fks.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.023', '2023-11-20 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table Tenant.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.024', '2023-11-27 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table Language.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.025', '2023-11-20 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table StorageFile.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.026', '2023-11-29 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'ALter table Language.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.027', '2023-12-05 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Rename table Notification to NotificationLegacy.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.028', '2023-12-05 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table QueueOutbox.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.029', '2023-12-05 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table QueueInbox.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.030', '2023-12-05 10:00:00+00', '2024-05-08 13:42:55.229528+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-05-08 13:42:55.229528+00', 'Add table ntf_User.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.032', '2023-12-05 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ntf_Notification.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.033', '2024-01-24 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ntf_UserContactInfo.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.034', '2024-01-24 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ntf_UserCredential.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.035', '2024-01-25 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ntf_TenantUser.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.036', '2023-12-15 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add ntf_NotificationTemplate table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.037', '2023-12-05 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ntf_QueueInbox.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.038', '2023-12-05 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ntf_QueueOutbox.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.039', '2023-12-05 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ntf_InAppNotification.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.040', '2023-12-05 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ntf_UserNotificationPreference.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.041', '2023-12-06 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table TenantUser.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.042', '2023-12-06 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Rename usersettings Table to UserSettings.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.043', '2023-12-06 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add Tenant Id to tables.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.044', '2023-12-08 10:00:00+00', '2024-05-08 13:42:55.229528+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-05-08 13:42:55.229528+00', 'Add ActionConfirmation table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.046', '2023-12-27 10:00:00+00', '2024-05-08 13:42:55.229528+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-05-08 13:42:55.229528+00', 'Add versioning on dmp blueprint table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.048', '2024-02-13 10:00:00+00', '2024-05-08 13:42:55.229528+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-05-08 13:42:55.229528+00', 'Add table ant_QueueInbox.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.050', '2024-02-13 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ant_QueueOutbox.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.051', '2024-02-13 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ant_User.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.052', '2024-02-13 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ant_UserCredential.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.053', '2024-02-13 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ant_TenantUser.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.054', '2024-02-21 10:00:00+00', '2024-05-08 13:42:55.229528+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-05-08 13:42:55.229528+00', 'Add table ant_Annotation.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.056', '2024-02-20 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ant_EntityUser.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.057', '2024-02-22 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add PrefillingSource table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.058', '2024-02-28 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add table ant_UserContactInfo.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.059', '2024-03-07 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add columns on ant_Annotaion table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.060', '2024-03-26 10:00:00+00', '2024-05-08 13:42:55.229528+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-05-08 13:42:55.229528+00', 'Remove DMP fkey from EntityDoi Table.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.062', '2024-04-08 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add currency reference type value.');
-INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.063', '2024-04-19 10:00:00+00', '2024-05-08 13:42:55.229528+00', 'Add TenantConfiguration Table.');
+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 63781)
+-- TOC entry 220 (class 1259 OID 177913)
-- Name: DMP; Type: TABLE; Schema: public; Owner: -
--
@@ -258,7 +272,7 @@ CREATE TABLE public."DMP" (
--
--- TOC entry 4127 (class 0 OID 0)
+-- TOC entry 4167 (class 0 OID 0)
-- Dependencies: 220
-- Name: COLUMN "DMP"."AssociatedDmps"; Type: COMMENT; Schema: public; Owner: -
--
@@ -267,7 +281,7 @@ COMMENT ON COLUMN public."DMP"."AssociatedDmps" IS 'More data about the DMP as d
--
--- TOC entry 221 (class 1259 OID 63791)
+-- TOC entry 221 (class 1259 OID 177923)
-- Name: DMPDatasetProfile; Type: TABLE; Schema: public; Owner: -
--
@@ -280,7 +294,7 @@ CREATE TABLE public."DMPDatasetProfile" (
--
--- TOC entry 222 (class 1259 OID 63797)
+-- TOC entry 222 (class 1259 OID 177929)
-- Name: DMPOrganisation; Type: TABLE; Schema: public; Owner: -
--
@@ -293,7 +307,7 @@ CREATE TABLE public."DMPOrganisation" (
--
--- TOC entry 4128 (class 0 OID 0)
+-- TOC entry 4168 (class 0 OID 0)
-- Dependencies: 222
-- Name: TABLE "DMPOrganisation"; Type: COMMENT; Schema: public; Owner: -
--
@@ -302,7 +316,7 @@ COMMENT ON TABLE public."DMPOrganisation" IS 'Linking of DMPs to Organisations';
--
--- TOC entry 4129 (class 0 OID 0)
+-- TOC entry 4169 (class 0 OID 0)
-- Dependencies: 222
-- Name: COLUMN "DMPOrganisation"."Role"; Type: COMMENT; Schema: public; Owner: -
--
@@ -311,7 +325,7 @@ COMMENT ON COLUMN public."DMPOrganisation"."Role" IS 'Enumerator of roles';
--
--- TOC entry 223 (class 1259 OID 63801)
+-- TOC entry 223 (class 1259 OID 177933)
-- Name: DMPResearcher; Type: TABLE; Schema: public; Owner: -
--
@@ -324,7 +338,7 @@ CREATE TABLE public."DMPResearcher" (
--
--- TOC entry 4130 (class 0 OID 0)
+-- TOC entry 4170 (class 0 OID 0)
-- Dependencies: 223
-- Name: TABLE "DMPResearcher"; Type: COMMENT; Schema: public; Owner: -
--
@@ -333,7 +347,7 @@ COMMENT ON TABLE public."DMPResearcher" IS 'Linking of DMPs to researchers';
--
--- TOC entry 4131 (class 0 OID 0)
+-- TOC entry 4171 (class 0 OID 0)
-- Dependencies: 223
-- Name: COLUMN "DMPResearcher"."Role"; Type: COMMENT; Schema: public; Owner: -
--
@@ -342,7 +356,7 @@ COMMENT ON COLUMN public."DMPResearcher"."Role" IS 'Enumerator of roles';
--
--- TOC entry 224 (class 1259 OID 63805)
+-- TOC entry 224 (class 1259 OID 177937)
-- Name: DataRepository; Type: TABLE; Schema: public; Owner: -
--
@@ -361,7 +375,7 @@ CREATE TABLE public."DataRepository" (
--
--- TOC entry 225 (class 1259 OID 63814)
+-- TOC entry 225 (class 1259 OID 177946)
-- Name: Dataset; Type: TABLE; Schema: public; Owner: -
--
@@ -384,7 +398,7 @@ CREATE TABLE public."Dataset" (
--
--- TOC entry 4132 (class 0 OID 0)
+-- TOC entry 4172 (class 0 OID 0)
-- Dependencies: 225
-- Name: COLUMN "Dataset"."Uri"; Type: COMMENT; Schema: public; Owner: -
--
@@ -393,7 +407,7 @@ COMMENT ON COLUMN public."Dataset"."Uri" IS 'URI of item';
--
--- TOC entry 4133 (class 0 OID 0)
+-- TOC entry 4173 (class 0 OID 0)
-- Dependencies: 225
-- Name: COLUMN "Dataset"."Properties"; Type: COMMENT; Schema: public; Owner: -
--
@@ -402,7 +416,7 @@ COMMENT ON COLUMN public."Dataset"."Properties" IS 'More data about the dataset
--
--- TOC entry 226 (class 1259 OID 63823)
+-- TOC entry 226 (class 1259 OID 177955)
-- Name: DatasetDataRepository; Type: TABLE; Schema: public; Owner: -
--
@@ -416,7 +430,7 @@ CREATE TABLE public."DatasetDataRepository" (
--
--- TOC entry 4134 (class 0 OID 0)
+-- TOC entry 4174 (class 0 OID 0)
-- Dependencies: 226
-- Name: TABLE "DatasetDataRepository"; Type: COMMENT; Schema: public; Owner: -
--
@@ -425,7 +439,7 @@ COMMENT ON TABLE public."DatasetDataRepository" IS 'Linking Dataset to DataRepos
--
--- TOC entry 227 (class 1259 OID 63829)
+-- TOC entry 227 (class 1259 OID 177961)
-- Name: DatasetExternalDataset; Type: TABLE; Schema: public; Owner: -
--
@@ -439,7 +453,7 @@ CREATE TABLE public."DatasetExternalDataset" (
--
--- TOC entry 228 (class 1259 OID 63835)
+-- TOC entry 228 (class 1259 OID 177967)
-- Name: DatasetRegistry; Type: TABLE; Schema: public; Owner: -
--
@@ -453,7 +467,7 @@ CREATE TABLE public."DatasetRegistry" (
--
--- TOC entry 4135 (class 0 OID 0)
+-- TOC entry 4175 (class 0 OID 0)
-- Dependencies: 228
-- Name: TABLE "DatasetRegistry"; Type: COMMENT; Schema: public; Owner: -
--
@@ -462,7 +476,7 @@ COMMENT ON TABLE public."DatasetRegistry" IS 'Linking Dataset to Registry';
--
--- TOC entry 229 (class 1259 OID 63841)
+-- TOC entry 229 (class 1259 OID 177973)
-- Name: DatasetService; Type: TABLE; Schema: public; Owner: -
--
@@ -476,7 +490,7 @@ CREATE TABLE public."DatasetService" (
--
--- TOC entry 4136 (class 0 OID 0)
+-- TOC entry 4176 (class 0 OID 0)
-- Dependencies: 229
-- Name: TABLE "DatasetService"; Type: COMMENT; Schema: public; Owner: -
--
@@ -485,14 +499,14 @@ COMMENT ON TABLE public."DatasetService" IS 'Linking Dataset to Service';
--
--- TOC entry 230 (class 1259 OID 63847)
+-- 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,
- dmp uuid NOT NULL,
+ plan uuid NOT NULL,
properties text,
status smallint DEFAULT 0 NOT NULL,
description text,
@@ -502,13 +516,13 @@ CREATE TABLE public."Description" (
finalized_at timestamp without time zone,
description_template uuid NOT NULL,
created_by uuid NOT NULL,
- dmp_description_template uuid NOT NULL,
+ plan_description_template uuid NOT NULL,
tenant uuid
);
--
--- TOC entry 231 (class 1259 OID 63856)
+-- TOC entry 231 (class 1259 OID 177988)
-- Name: DescriptionReference; Type: TABLE; Schema: public; Owner: -
--
@@ -525,7 +539,25 @@ CREATE TABLE public."DescriptionReference" (
--
--- TOC entry 232 (class 1259 OID 63864)
+-- 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: -
--
@@ -541,7 +573,7 @@ CREATE TABLE public."DescriptionTag" (
--
--- TOC entry 233 (class 1259 OID 63867)
+-- TOC entry 234 (class 1259 OID 178004)
-- Name: DescriptionTemplate; Type: TABLE; Schema: public; Owner: -
--
@@ -559,13 +591,14 @@ CREATE TABLE public."DescriptionTemplate" (
type uuid NOT NULL,
is_active smallint NOT NULL,
version_status smallint NOT NULL,
- tenant uuid
+ tenant uuid,
+ code character varying(200) NOT NULL
);
--
--- TOC entry 4137 (class 0 OID 0)
--- Dependencies: 233
+-- TOC entry 4177 (class 0 OID 0)
+-- Dependencies: 234
-- Name: TABLE "DescriptionTemplate"; Type: COMMENT; Schema: public; Owner: -
--
@@ -573,7 +606,7 @@ COMMENT ON TABLE public."DescriptionTemplate" IS 'Profiles for dmp datasets';
--
--- TOC entry 234 (class 1259 OID 63876)
+-- TOC entry 235 (class 1259 OID 178013)
-- Name: DescriptionTemplateType; Type: TABLE; Schema: public; Owner: -
--
@@ -584,115 +617,32 @@ CREATE TABLE public."DescriptionTemplateType" (
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
- tenant uuid
+ tenant uuid,
+ code character varying(200) NOT NULL
);
-INSERT INTO public."DescriptionTemplateType" VALUES ('3e55320b-67c9-4758-bb0b-27d9cfb172c0', 'Admin', 0, '2024-05-13 07:55:05.859681', '2024-05-13 07:55:16.153843', 0, 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 235 (class 1259 OID 63880)
--- Name: Dmp; Type: TABLE; Schema: public; Owner: -
+-- TOC entry 236 (class 1259 OID 178017)
+-- Name: DescriptionWorkflow; Type: TABLE; Schema: public; Owner: -
--
-CREATE TABLE public."Dmp" (
+CREATE TABLE public."DescriptionWorkflow" (
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,
+ name character varying(250) 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 236 (class 1259 OID 63890)
--- Name: DmpBlueprint; Type: TABLE; Schema: public; Owner: -
---
-
-CREATE TABLE public."DmpBlueprint" (
- 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,
+ created_at timestamp without time zone NOT NULL,
+ updated_at timestamp without time zone NOT NULL,
is_active smallint NOT NULL,
- tenant uuid,
- group_id uuid NOT NULL,
- version integer NOT NULL,
- version_status smallint NOT NULL
-);
-
-INSERT INTO public."DmpBlueprint" VALUES ('86635178-36a6-484f-9057-a934e4eeecd5', 'Dmp Default Blueprint', '', 1, '2024-02-15 10:26:49.804431', '2024-02-15 10:26:49.804431', 1, NULL, 'c905f3f1-9f55-45e7-953b-c370c465c02b', 1, 0);
-
-
---
--- TOC entry 237 (class 1259 OID 63899)
--- Name: DmpDescriptionTemplate; Type: TABLE; Schema: public; Owner: -
---
-
-CREATE TABLE public."DmpDescriptionTemplate" (
- id uuid NOT NULL,
- dmp 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,
+ definition xml,
tenant uuid
);
--
--- TOC entry 238 (class 1259 OID 63905)
--- Name: DmpReference; Type: TABLE; Schema: public; Owner: -
---
-
-CREATE TABLE public."DmpReference" (
- id uuid NOT NULL,
- dmp_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 239 (class 1259 OID 63913)
--- Name: DmpUser; Type: TABLE; Schema: public; Owner: -
---
-
-CREATE TABLE public."DmpUser" (
- id uuid NOT NULL,
- dmp 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 240 (class 1259 OID 63920)
+-- TOC entry 237 (class 1259 OID 178022)
-- Name: DoiFunder; Type: TABLE; Schema: public; Owner: -
--
@@ -704,7 +654,7 @@ CREATE TABLE public."DoiFunder" (
--
--- TOC entry 241 (class 1259 OID 63926)
+-- TOC entry 238 (class 1259 OID 178028)
-- Name: EmailConfirmation; Type: TABLE; Schema: public; Owner: -
--
@@ -720,7 +670,7 @@ CREATE TABLE public."EmailConfirmation" (
--
--- TOC entry 242 (class 1259 OID 63931)
+-- TOC entry 239 (class 1259 OID 178033)
-- Name: EntityDoi; Type: TABLE; Schema: public; Owner: -
--
@@ -738,7 +688,7 @@ CREATE TABLE public."EntityDoi" (
--
--- TOC entry 243 (class 1259 OID 63937)
+-- TOC entry 240 (class 1259 OID 178039)
-- Name: ExternalDataset; Type: TABLE; Schema: public; Owner: -
--
@@ -754,7 +704,7 @@ CREATE TABLE public."ExternalDataset" (
--
--- TOC entry 244 (class 1259 OID 63943)
+-- TOC entry 241 (class 1259 OID 178045)
-- Name: FileUpload; Type: TABLE; Schema: public; Owner: -
--
@@ -771,7 +721,7 @@ CREATE TABLE public."FileUpload" (
--
--- TOC entry 245 (class 1259 OID 63948)
+-- TOC entry 242 (class 1259 OID 178050)
-- Name: Funder; Type: TABLE; Schema: public; Owner: -
--
@@ -789,7 +739,7 @@ CREATE TABLE public."Funder" (
--
--- TOC entry 246 (class 1259 OID 63958)
+-- TOC entry 243 (class 1259 OID 178060)
-- Name: Grant; Type: TABLE; Schema: public; Owner: -
--
@@ -814,8 +764,8 @@ CREATE TABLE public."Grant" (
--
--- TOC entry 4138 (class 0 OID 0)
--- Dependencies: 246
+-- TOC entry 4178 (class 0 OID 0)
+-- Dependencies: 243
-- Name: TABLE "Grant"; Type: COMMENT; Schema: public; Owner: -
--
@@ -823,8 +773,8 @@ COMMENT ON TABLE public."Grant" IS 'Table of project managed in the system';
--
--- TOC entry 4139 (class 0 OID 0)
--- Dependencies: 246
+-- TOC entry 4179 (class 0 OID 0)
+-- Dependencies: 243
-- Name: COLUMN "Grant"."ID"; Type: COMMENT; Schema: public; Owner: -
--
@@ -832,8 +782,8 @@ COMMENT ON COLUMN public."Grant"."ID" IS 'Unique identifier and primary key of i
--
--- TOC entry 4140 (class 0 OID 0)
--- Dependencies: 246
+-- TOC entry 4180 (class 0 OID 0)
+-- Dependencies: 243
-- Name: COLUMN "Grant"."Label"; Type: COMMENT; Schema: public; Owner: -
--
@@ -841,8 +791,8 @@ COMMENT ON COLUMN public."Grant"."Label" IS 'A human readable long label of the
--
--- TOC entry 4141 (class 0 OID 0)
--- Dependencies: 246
+-- TOC entry 4181 (class 0 OID 0)
+-- Dependencies: 243
-- Name: COLUMN "Grant"."Abbreviation"; Type: COMMENT; Schema: public; Owner: -
--
@@ -850,8 +800,8 @@ COMMENT ON COLUMN public."Grant"."Abbreviation" IS 'A human readable abbreviatio
--
--- TOC entry 4142 (class 0 OID 0)
--- Dependencies: 246
+-- TOC entry 4182 (class 0 OID 0)
+-- Dependencies: 243
-- Name: COLUMN "Grant"."Reference"; Type: COMMENT; Schema: public; Owner: -
--
@@ -859,8 +809,8 @@ COMMENT ON COLUMN public."Grant"."Reference" IS 'Additional reference data for t
--
--- TOC entry 4143 (class 0 OID 0)
--- Dependencies: 246
+-- TOC entry 4183 (class 0 OID 0)
+-- Dependencies: 243
-- Name: COLUMN "Grant"."Uri"; Type: COMMENT; Schema: public; Owner: -
--
@@ -868,8 +818,8 @@ COMMENT ON COLUMN public."Grant"."Uri" IS 'URI of item';
--
--- TOC entry 4144 (class 0 OID 0)
--- Dependencies: 246
+-- TOC entry 4184 (class 0 OID 0)
+-- Dependencies: 243
-- Name: COLUMN "Grant"."Definition"; Type: COMMENT; Schema: public; Owner: -
--
@@ -877,7 +827,7 @@ COMMENT ON COLUMN public."Grant"."Definition" IS 'More data about the project su
--
--- TOC entry 247 (class 1259 OID 63969)
+-- TOC entry 244 (class 1259 OID 178071)
-- Name: Invitation; Type: TABLE; Schema: public; Owner: -
--
@@ -893,7 +843,7 @@ CREATE TABLE public."Invitation" (
--
--- TOC entry 248 (class 1259 OID 63974)
+-- TOC entry 245 (class 1259 OID 178076)
-- Name: Language; Type: TABLE; Schema: public; Owner: -
--
@@ -913,7 +863,7 @@ INSERT INTO public."Language" VALUES ('defd282e-48d0-4f69-9b99-4137d5ce05af', 'g
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 ('c9d8850c-c459-47b1-98d1-9c21b614ae7b', 'hr', NULL, '2024-02-29 16:35:18.114652', '2024-02-29 16:35:18.114652', 1, 5, 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);
@@ -922,7 +872,7 @@ INSERT INTO public."Language" VALUES ('3b865f61-a863-43de-98cd-da86fc3f5940', 'p
--
--- TOC entry 249 (class 1259 OID 63979)
+-- TOC entry 246 (class 1259 OID 178081)
-- Name: Lock; Type: TABLE; Schema: public; Owner: -
--
@@ -938,7 +888,7 @@ CREATE TABLE public."Lock" (
--
--- TOC entry 250 (class 1259 OID 63982)
+-- TOC entry 247 (class 1259 OID 178084)
-- Name: NotificationLegacy; Type: TABLE; Schema: public; Owner: -
--
@@ -959,7 +909,7 @@ CREATE TABLE public."NotificationLegacy" (
--
--- TOC entry 251 (class 1259 OID 63987)
+-- TOC entry 248 (class 1259 OID 178089)
-- Name: Organisation; Type: TABLE; Schema: public; Owner: -
--
@@ -977,8 +927,8 @@ CREATE TABLE public."Organisation" (
--
--- TOC entry 4145 (class 0 OID 0)
--- Dependencies: 251
+-- TOC entry 4185 (class 0 OID 0)
+-- Dependencies: 248
-- Name: TABLE "Organisation"; Type: COMMENT; Schema: public; Owner: -
--
@@ -986,8 +936,8 @@ COMMENT ON TABLE public."Organisation" IS 'Table of organizations utilized in th
--
--- TOC entry 4146 (class 0 OID 0)
--- Dependencies: 251
+-- TOC entry 4186 (class 0 OID 0)
+-- Dependencies: 248
-- Name: COLUMN "Organisation"."ID"; Type: COMMENT; Schema: public; Owner: -
--
@@ -995,8 +945,8 @@ COMMENT ON COLUMN public."Organisation"."ID" IS 'Unique identifier and primary k
--
--- TOC entry 4147 (class 0 OID 0)
--- Dependencies: 251
+-- TOC entry 4187 (class 0 OID 0)
+-- Dependencies: 248
-- Name: COLUMN "Organisation"."Label"; Type: COMMENT; Schema: public; Owner: -
--
@@ -1004,8 +954,8 @@ COMMENT ON COLUMN public."Organisation"."Label" IS 'A human readable long label
--
--- TOC entry 4148 (class 0 OID 0)
--- Dependencies: 251
+-- TOC entry 4188 (class 0 OID 0)
+-- Dependencies: 248
-- Name: COLUMN "Organisation"."Abbreviation"; Type: COMMENT; Schema: public; Owner: -
--
@@ -1013,8 +963,8 @@ COMMENT ON COLUMN public."Organisation"."Abbreviation" IS 'A human readable abbr
--
--- TOC entry 4149 (class 0 OID 0)
--- Dependencies: 251
+-- TOC entry 4189 (class 0 OID 0)
+-- Dependencies: 248
-- Name: COLUMN "Organisation"."Reference"; Type: COMMENT; Schema: public; Owner: -
--
@@ -1022,8 +972,8 @@ COMMENT ON COLUMN public."Organisation"."Reference" IS 'Reference to the URI of
--
--- TOC entry 4150 (class 0 OID 0)
--- Dependencies: 251
+-- TOC entry 4190 (class 0 OID 0)
+-- Dependencies: 248
-- Name: COLUMN "Organisation"."Uri"; Type: COMMENT; Schema: public; Owner: -
--
@@ -1031,8 +981,8 @@ COMMENT ON COLUMN public."Organisation"."Uri" IS 'URI of item';
--
--- TOC entry 4151 (class 0 OID 0)
--- Dependencies: 251
+-- TOC entry 4191 (class 0 OID 0)
+-- Dependencies: 248
-- Name: COLUMN "Organisation"."Definition"; Type: COMMENT; Schema: public; Owner: -
--
@@ -1040,13 +990,150 @@ COMMENT ON COLUMN public."Organisation"."Definition" IS 'More data about the Org
--
--- TOC entry 252 (class 1259 OID 63996)
+-- 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', '', 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,
@@ -1055,9 +1142,8 @@ CREATE TABLE public."PrefillingSource" (
);
-
--
--- TOC entry 253 (class 1259 OID 64001)
+-- TOC entry 257 (class 1259 OID 178153)
-- Name: Project; Type: TABLE; Schema: public; Owner: -
--
@@ -1081,7 +1167,7 @@ CREATE TABLE public."Project" (
--
--- TOC entry 254 (class 1259 OID 64011)
+-- TOC entry 258 (class 1259 OID 178163)
-- Name: QueueInbox; Type: TABLE; Schema: public; Owner: -
--
@@ -1103,7 +1189,7 @@ CREATE TABLE public."QueueInbox" (
--
--- TOC entry 255 (class 1259 OID 64016)
+-- TOC entry 259 (class 1259 OID 178168)
-- Name: QueueOutbox; Type: TABLE; Schema: public; Owner: -
--
@@ -1125,7 +1211,7 @@ CREATE TABLE public."QueueOutbox" (
--
--- TOC entry 256 (class 1259 OID 64021)
+-- TOC entry 260 (class 1259 OID 178173)
-- Name: Reference; Type: TABLE; Schema: public; Owner: -
--
@@ -1148,7 +1234,7 @@ CREATE TABLE public."Reference" (
--
--- TOC entry 257 (class 1259 OID 64026)
+-- TOC entry 261 (class 1259 OID 178178)
-- Name: ReferenceType; Type: TABLE; Schema: public; Owner: -
--
@@ -1162,24 +1248,27 @@ CREATE TABLE public."ReferenceType" (
updated_at timestamp without time zone NOT NULL,
tenant uuid
);
+
INSERT INTO public."ReferenceType" VALUES ('2baab1e8-561f-4c15-84c3-571b811c52f6', 'Licenses', 'licenses', 'opendefinition100falseapplication/vnd.api+json; charset=utf-8local10$[*]reference_ididlabeltitledescriptionmaintaineruriurl$[*]https://licenses.opendefinition.org/licenses/groups/all.json', 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', 'rda-metadata-schemes100falseapplication/json; charset=utf-8remote10$[''meta''][''pagination''][''page'',''pages'',''count'']{like}likereference_idmscidlabeltitledescriptiondescriptionurluri$[''data''][''items''][*]https://rdamsc.bath.ac.uk/api2/m?q={like}&start=1&pageSize={pageSize}', 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', 'project11', 1, '2023-11-17 08:55:05.190807', '2023-11-17 08:56:23.012619', NULL);
-INSERT INTO public."ReferenceType" VALUES ('51225b6a-86a6-48ac-9192-f15096dbcb8a', 'Publications', 'publications', 'openaire100falseapplication/json;charset=UTF-8remote00$[''meta''][''pagination''][''page'',''pages'',''count'']{like}*likereference_idoriginalId.first()labeltitle..content.first()descriptiontitle..content.first()pid[''pid''][''content'']pidTypeField[''pid''][''classid'']$[''results''][*][''result''][''metadata''][''oaf:entity''][''oaf:result'']https://services.openaire.eu/search/v2/api/resources?query=oaftype exact result and {like}&page={page}&size={pageSize}&format=json', 1, '2023-11-16 13:07:20.591433', '2024-05-01 11:47:04.982439', NULL);
INSERT INTO public."ReferenceType" VALUES ('538928bb-c7c6-452e-b66d-08e539f5f082', 'Funders', 'funders', 'openaire101falseapplication/json; charset=utf-8local00$[*]reference_ididlabelnamedescriptionname$[''refineResults''][''relfunder''][*]https://services.openaire.eu/search/v2/api/results?&refine=true&fields=relfunder&page={page}&size=0&format=json&sf=relfunder', 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', 'orcid100falseapplication/json; charset=UTF-8remote00$[''num-found'']^[A-Za-z0-9]+ [A-Za-z0-9]+$((given-names:{like1}+AND+family-name:{like2})+OR+(given-names:{like2}+AND+family-name:{like1}))\d{4}-\d{4}-\d{4}-\d{4}orcid:{like}.+given-names:{like}+OR+family-name:{like}*likereference_idorcid-idlabel@{{given-names}} @{{family-names}} (@{{orcid-id}})descriptioninstitution-namefistNamegiven-nameslastNamefamily-names$[''expanded-result''][*]https://pub.orcid.org/v3.0/expanded-search/?q={like}&start={page}&rows={pageSize}', 1, '2023-11-16 18:21:43.272982', '2024-04-17 09:44:53.656849', NULL);
-INSERT INTO public."ReferenceType" VALUES ('5b9c284f-f041-4995-96cc-fad7ad13289c', 'Grants', 'grants', 'openaire1538928bb-c7c6-452e-b66d-08e539f5f08200falseapplication/json; charset=utf-8remote00$[''meta''][''pagination''][''page'',''pages'',''count'']{like}*like538928bb-c7c6-452e-b66d-08e539f5f082openaire&fq=(funder exact "{reference}")funderQueryreference_idoriginalIdlabel@{{title}} (@{{originalId}})descriptiontitle$[''results''][*][''result''][''metadata''][''oaf:entity''][''oaf:project'']https://services.openaire.eu/search/v2/api/resources?query=((oaftype exact project) and ((projectcode_nt exact "{like}")or({like}))){funderQuery}&page={page}&size={pageSize}&format=json', 1, '2023-11-16 16:41:53.106646', '2024-04-29 09:00:22.237691', NULL);
-INSERT INTO public."ReferenceType" VALUES ('7eeffb98-58fb-4921-82ec-e27f32f8e738', 'Organisations', 'organisations', 'openaire100falseapplication/json; charset=utf-8remote00$[''meta''][''pagination''][''page'',''pages'',''count'']{like}likereference_idoriginalIdlabellegalnamedescriptionlegalnamepid[''pid''][''content'']pidTypeField[''pid''][''classid'']$[''results''][*][''result''][''metadata''][''oaf:entity''][''oaf:organization'']https://services.openaire.eu/search/v2/api/organizations/?q={like}&page={page}&size={pageSize}&format=json', 1, '2023-11-17 10:13:15.873808', '2024-02-16 15:35:47.874131', NULL);
+INSERT INTO public."ReferenceType" VALUES ('ab7cdd93-bea2-440d-880d-3846dad80b21', 'Taxonomies', 'taxonomies', 'taxonomy11', 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', 'openaire100falseapplication/jsonremote01$[''meta''][''pagination''][''page'',''pages'',''count'']{like}like{"officialname": "{like}", "typology":"journal"}reference_ididlabelofficialnamedescriptionofficialname$[''datasourceInfo''][*]https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&order=ASCENDING', 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', 'eosc100falseapplication/json; charset=utf-8remote00$[''from'',''to'',''total'']{like}likereference_ididlabelnamedescriptiondescriptionuriwebpage$[''results''][*]https://providers.eosc-portal.eu/api/service/all?query={like}&from={page}&quantity={pageSize}', 1, '2023-11-16 17:57:22.081053', '2024-02-16 09:07:13.944104', NULL);
-INSERT INTO public."ReferenceType" VALUES ('a3ce0fb2-d72c-48bb-b322-7401940cb802', 'Datasets', 'datasets', 'openaire100falseapplication/json; charset=utf-8remote00$[''meta''][''pagination''][''page'',''pages'',''count'']{like}likereference_idoriginalIdlabeltitle..content.first()descriptiontitle..content.first()pid[''pid''][''content'']pidTypeField[''pid''][''classid'']$[''results''][*][''result''][''metadata''][''oaf:entity''][''oaf:result'']https://services.openaire.eu/search/v2/api/datasets/?q={like}&page={page}&size={pageSize}&format=json', 1, '2023-11-17 10:26:55.332111', '2024-05-01 10:34:07.029327', NULL);
-INSERT INTO public."ReferenceType" VALUES ('ab7cdd93-bea2-440d-880d-3846dad80b21', 'Taxonomies', 'taxonomies', 'taxonomy11', 1, '2023-11-16 17:48:09.769599', '2024-04-25 12:36:57.923984', NULL);
+INSERT INTO public."ReferenceType" VALUES ('7eeffb98-58fb-4921-82ec-e27f32f8e738', 'Organisations', 'organisations', 'openaire100falseapplication/json; charset=utf-8remote00$[''meta''][''pagination''][''page'',''pages'',''count'']{like}likereference_idoriginalId.first()labellegalnamedescriptionlegalnamepid[''pid''][''content'']pidTypeField[''pid''][''classid'']$[''results''][*][''result''][''metadata''][''oaf:entity''][''oaf:organization'']https://services.openaire.eu/search/v2/api/organizations/?q={like}&page={page}&size={pageSize}&format=json', 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', 'openaire100falseapplication/jsonremote01$[''meta''][''pagination''][''page'',''pages'',''count'']{like}like{"officialname": "{like}", "typology":"data"}reference_ididlabelofficialnamedescriptionofficialname$[''datasourceInfo''][*]https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&order=ASCENDING', 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', 'openaire100falseapplication/jsonremote01$[''meta''][''pagination''][''page'',''pages'',''count'']{like}like{"officialname": "{like}", "typology":"pubsrepository::institutional"}reference_ididlabelofficialnamedescriptionofficialname$[''datasourceInfo''][*]https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&order=ASCENDINGopenaire200falseapplication/jsonremote01$[''meta''][''pagination''][''page'',''pages'',''count'']{like}like{"officialname": "{like}", "typology":"pubsrepository::thematic"}reference_ididlabelofficialnamedescriptionofficialname$[''datasourceInfo''][*]https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&order=ASCENDINGopenaire300falseapplication/jsonremote01$[''meta''][''pagination''][''page'',''pages'',''count'']{like}like{"officialname": "{like}", "typology":"pubsrepository::unknown"}reference_ididlabelofficialnamedescriptionofficialname$[''datasourceInfo''][*]https://services.openaire.eu/openaire/ds/searchdetails/{page}/{pageSize}?requestSortBy=id&order=ASCENDING', 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', 'openaire100falseapplication/json; charset=utf-8remote00$[''meta''][''pagination''][''page'',''pages'',''count'']{like}likereference_idoriginalId.first()labeltitle.content.first()descriptiontitle.content.first()pid[''pid''][''content'']pidTypeField[''pid''][''classid'']$[''results''][*][''result''][''metadata''][''oaf:entity''][''oaf:result'']https://services.openaire.eu/search/v2/api/datasets/?q={like}&page={page}&size={pageSize}&format=json', 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', 'openaire1538928bb-c7c6-452e-b66d-08e539f5f08200falseapplication/json; charset=utf-8remote00$[''meta''][''pagination''][''page'',''pages'',''count'']{like}*like538928bb-c7c6-452e-b66d-08e539f5f082openaire&fq=(funder exact "{reference}")funderQueryreference_idoriginalId.first()label@{{title}} (@{{originalId}})descriptiontitle$[''results''][*][''result''][''metadata''][''oaf:entity''][''oaf:project'']https://services.openaire.eu/search/v2/api/resources?query=((oaftype exact project) and ((projectcode_nt exact "{like}")or({like}))){funderQuery}&page={page}&size={pageSize}&format=json', 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', 'openaire100falseapplication/json;charset=UTF-8remote00$[''meta''][''pagination''][''page'',''pages'',''count'']{like}*likereference_idoriginalId.first()labeltitle.content.first()descriptiontitle.content.first()pid[''pid''][''content'']pidTypeField[''pid''][''classid'']$[''results''][*][''result''][''metadata''][''oaf:entity''][''oaf:result'']https://services.openaire.eu/search/v2/api/resources?query=oaftype exact result and {like}&page={page}&size={pageSize}&format=json', 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', 'currencies11' , 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)', 'eestore.paas2.uninett.no00application/json10{like}likelabelnamereference_idpid$[''data''][*][''attributes'']https://eestore.paas2.uninett.no/api/fileformat/', 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', 'eestore.paas2.uninett.no00application/json10{like}likelabelnamereference_idpid$[''data''][*][''attributes'']https://eestore.paas2.uninett.no/api/datasetmdrepo/', 1, '2024-09-06 14:45:13.059917', '2024-09-06 14:45:13.074916', NULL);
--
--- TOC entry 258 (class 1259 OID 64031)
+-- TOC entry 262 (class 1259 OID 178183)
-- Name: Registry; Type: TABLE; Schema: public; Owner: -
--
@@ -1198,7 +1287,7 @@ CREATE TABLE public."Registry" (
--
--- TOC entry 259 (class 1259 OID 64040)
+-- TOC entry 263 (class 1259 OID 178192)
-- Name: Researcher; Type: TABLE; Schema: public; Owner: -
--
@@ -1217,8 +1306,8 @@ CREATE TABLE public."Researcher" (
--
--- TOC entry 4152 (class 0 OID 0)
--- Dependencies: 259
+-- TOC entry 4192 (class 0 OID 0)
+-- Dependencies: 263
-- Name: TABLE "Researcher"; Type: COMMENT; Schema: public; Owner: -
--
@@ -1226,8 +1315,8 @@ COMMENT ON TABLE public."Researcher" IS 'Table of Researcher managed in the syst
--
--- TOC entry 4153 (class 0 OID 0)
--- Dependencies: 259
+-- TOC entry 4193 (class 0 OID 0)
+-- Dependencies: 263
-- Name: COLUMN "Researcher"."ID"; Type: COMMENT; Schema: public; Owner: -
--
@@ -1235,8 +1324,8 @@ COMMENT ON COLUMN public."Researcher"."ID" IS 'Unique identifier and primary key
--
--- TOC entry 4154 (class 0 OID 0)
--- Dependencies: 259
+-- TOC entry 4194 (class 0 OID 0)
+-- Dependencies: 263
-- Name: COLUMN "Researcher"."Label"; Type: COMMENT; Schema: public; Owner: -
--
@@ -1244,8 +1333,8 @@ COMMENT ON COLUMN public."Researcher"."Label" IS 'Full name of the researcher (a
--
--- TOC entry 4155 (class 0 OID 0)
--- Dependencies: 259
+-- TOC entry 4195 (class 0 OID 0)
+-- Dependencies: 263
-- Name: COLUMN "Researcher"."Uri"; Type: COMMENT; Schema: public; Owner: -
--
@@ -1253,8 +1342,8 @@ COMMENT ON COLUMN public."Researcher"."Uri" IS 'URI of item';
--
--- TOC entry 4156 (class 0 OID 0)
--- Dependencies: 259
+-- TOC entry 4196 (class 0 OID 0)
+-- Dependencies: 263
-- Name: COLUMN "Researcher"."Definition"; Type: COMMENT; Schema: public; Owner: -
--
@@ -1262,8 +1351,8 @@ COMMENT ON COLUMN public."Researcher"."Definition" IS 'More data about the resea
--
--- TOC entry 4157 (class 0 OID 0)
--- Dependencies: 259
+-- TOC entry 4197 (class 0 OID 0)
+-- Dependencies: 263
-- Name: COLUMN "Researcher"."Reference"; Type: COMMENT; Schema: public; Owner: -
--
@@ -1271,7 +1360,7 @@ COMMENT ON COLUMN public."Researcher"."Reference" IS 'Additional reference data
--
--- TOC entry 260 (class 1259 OID 64049)
+-- TOC entry 264 (class 1259 OID 178201)
-- Name: Service; Type: TABLE; Schema: public; Owner: -
--
@@ -1290,7 +1379,7 @@ CREATE TABLE public."Service" (
--
--- TOC entry 261 (class 1259 OID 64058)
+-- TOC entry 265 (class 1259 OID 178210)
-- Name: StorageFile; Type: TABLE; Schema: public; Owner: -
--
@@ -1310,7 +1399,7 @@ CREATE TABLE public."StorageFile" (
--
--- TOC entry 262 (class 1259 OID 64063)
+-- TOC entry 266 (class 1259 OID 178215)
-- Name: SupportiveMaterial; Type: TABLE; Schema: public; Owner: -
--
@@ -1327,7 +1416,7 @@ CREATE TABLE public."SupportiveMaterial" (
--
--- TOC entry 263 (class 1259 OID 64068)
+-- TOC entry 267 (class 1259 OID 178220)
-- Name: Tag; Type: TABLE; Schema: public; Owner: -
--
@@ -1343,7 +1432,7 @@ CREATE TABLE public."Tag" (
--
--- TOC entry 264 (class 1259 OID 64073)
+-- TOC entry 268 (class 1259 OID 178225)
-- Name: Tenant; Type: TABLE; Schema: public; Owner: -
--
@@ -1360,7 +1449,7 @@ CREATE TABLE public."Tenant" (
--
--- TOC entry 265 (class 1259 OID 64078)
+-- TOC entry 269 (class 1259 OID 178230)
-- Name: TenantConfiguration; Type: TABLE; Schema: public; Owner: -
--
@@ -1376,7 +1465,7 @@ CREATE TABLE public."TenantConfiguration" (
--
--- TOC entry 266 (class 1259 OID 64083)
+-- TOC entry 270 (class 1259 OID 178235)
-- Name: TenantUser; Type: TABLE; Schema: public; Owner: -
--
@@ -1391,7 +1480,25 @@ CREATE TABLE public."TenantUser" (
--
--- TOC entry 267 (class 1259 OID 64086)
+-- 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: -
--
@@ -1406,7 +1513,7 @@ CREATE TABLE public."User" (
--
--- TOC entry 268 (class 1259 OID 64091)
+-- TOC entry 273 (class 1259 OID 178248)
-- Name: UserAssociation; Type: TABLE; Schema: public; Owner: -
--
@@ -1418,7 +1525,7 @@ CREATE TABLE public."UserAssociation" (
--
--- TOC entry 269 (class 1259 OID 64094)
+-- TOC entry 274 (class 1259 OID 178251)
-- Name: UserContactInfo; Type: TABLE; Schema: public; Owner: -
--
@@ -1433,7 +1540,7 @@ CREATE TABLE public."UserContactInfo" (
--
--- TOC entry 270 (class 1259 OID 64100)
+-- TOC entry 275 (class 1259 OID 178257)
-- Name: UserCredential; Type: TABLE; Schema: public; Owner: -
--
@@ -1447,7 +1554,7 @@ CREATE TABLE public."UserCredential" (
--
--- TOC entry 271 (class 1259 OID 64105)
+-- TOC entry 276 (class 1259 OID 178262)
-- Name: UserDMP; Type: TABLE; Schema: public; Owner: -
--
@@ -1460,7 +1567,7 @@ CREATE TABLE public."UserDMP" (
--
--- TOC entry 272 (class 1259 OID 64109)
+-- TOC entry 277 (class 1259 OID 178266)
-- Name: UserDescriptionTemplate; Type: TABLE; Schema: public; Owner: -
--
@@ -1477,7 +1584,7 @@ CREATE TABLE public."UserDescriptionTemplate" (
--
--- TOC entry 273 (class 1259 OID 64112)
+-- TOC entry 278 (class 1259 OID 178269)
-- Name: UserInfo; Type: TABLE; Schema: public; Owner: -
--
@@ -1496,8 +1603,8 @@ CREATE TABLE public."UserInfo" (
--
--- TOC entry 4158 (class 0 OID 0)
--- Dependencies: 273
+-- TOC entry 4198 (class 0 OID 0)
+-- Dependencies: 278
-- Name: COLUMN "UserInfo".authorization_level; Type: COMMENT; Schema: public; Owner: -
--
@@ -1505,8 +1612,8 @@ COMMENT ON COLUMN public."UserInfo".authorization_level IS 'This stores the auth
--
--- TOC entry 4159 (class 0 OID 0)
--- Dependencies: 273
+-- TOC entry 4199 (class 0 OID 0)
+-- Dependencies: 278
-- Name: COLUMN "UserInfo".usertype; Type: COMMENT; Schema: public; Owner: -
--
@@ -1514,7 +1621,7 @@ COMMENT ON COLUMN public."UserInfo".usertype IS 'This stores the type of user: 0
--
--- TOC entry 274 (class 1259 OID 64118)
+-- TOC entry 279 (class 1259 OID 178275)
-- Name: UserRole; Type: TABLE; Schema: public; Owner: -
--
@@ -1528,7 +1635,7 @@ CREATE TABLE public."UserRole" (
--
--- TOC entry 275 (class 1259 OID 64124)
+-- TOC entry 280 (class 1259 OID 178281)
-- Name: UserSettings; Type: TABLE; Schema: public; Owner: -
--
@@ -1546,7 +1653,7 @@ CREATE TABLE public."UserSettings" (
--
--- TOC entry 276 (class 1259 OID 64129)
+-- TOC entry 281 (class 1259 OID 178286)
-- Name: UserToken; Type: TABLE; Schema: public; Owner: -
--
@@ -1559,7 +1666,7 @@ CREATE TABLE public."UserToken" (
--
--- TOC entry 277 (class 1259 OID 64132)
+-- TOC entry 282 (class 1259 OID 178289)
-- Name: ant_Annotation; Type: TABLE; Schema: public; Owner: -
--
@@ -1582,7 +1689,23 @@ CREATE TABLE public."ant_Annotation" (
--
--- TOC entry 278 (class 1259 OID 64137)
+-- 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: -
--
@@ -1598,7 +1721,7 @@ CREATE TABLE public."ant_EntityUser" (
--
--- TOC entry 279 (class 1259 OID 64140)
+-- TOC entry 285 (class 1259 OID 178300)
-- Name: ant_QueueInbox; Type: TABLE; Schema: public; Owner: -
--
@@ -1620,7 +1743,7 @@ CREATE TABLE public."ant_QueueInbox" (
--
--- TOC entry 280 (class 1259 OID 64145)
+-- TOC entry 286 (class 1259 OID 178305)
-- Name: ant_QueueOutbox; Type: TABLE; Schema: public; Owner: -
--
@@ -1642,7 +1765,23 @@ CREATE TABLE public."ant_QueueOutbox" (
--
--- TOC entry 281 (class 1259 OID 64150)
+-- 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: -
--
@@ -1656,7 +1795,7 @@ CREATE TABLE public."ant_Tenant" (
--
--- TOC entry 282 (class 1259 OID 64156)
+-- TOC entry 289 (class 1259 OID 178319)
-- Name: ant_TenantUser; Type: TABLE; Schema: public; Owner: -
--
@@ -1671,7 +1810,7 @@ CREATE TABLE public."ant_TenantUser" (
--
--- TOC entry 283 (class 1259 OID 64159)
+-- TOC entry 290 (class 1259 OID 178322)
-- Name: ant_User; Type: TABLE; Schema: public; Owner: -
--
@@ -1686,24 +1825,7 @@ CREATE TABLE public."ant_User" (
--
--- TOC entry 284 (class 1259 OID 64167)
--- Name: ant_UserContactInfo; Type: TABLE; Schema: public; Owner: -
---
-
-CREATE TABLE public."ant_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 285 (class 1259 OID 64174)
+-- TOC entry 291 (class 1259 OID 178330)
-- Name: ant_UserCredential; Type: TABLE; Schema: public; Owner: -
--
@@ -1713,13 +1835,12 @@ CREATE TABLE public."ant_UserCredential" (
external_id 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,
data character varying
);
--
--- TOC entry 286 (class 1259 OID 64180)
+-- TOC entry 292 (class 1259 OID 178335)
-- Name: ntf_InAppNotification; Type: TABLE; Schema: public; Owner: -
--
@@ -1741,7 +1862,7 @@ CREATE TABLE public."ntf_InAppNotification" (
--
--- TOC entry 287 (class 1259 OID 64185)
+-- TOC entry 293 (class 1259 OID 178340)
-- Name: ntf_Notification; Type: TABLE; Schema: public; Owner: -
--
@@ -1768,7 +1889,7 @@ CREATE TABLE public."ntf_Notification" (
--
--- TOC entry 288 (class 1259 OID 64190)
+-- TOC entry 294 (class 1259 OID 178345)
-- Name: ntf_NotificationTemplate; Type: TABLE; Schema: public; Owner: -
--
@@ -1787,7 +1908,7 @@ CREATE TABLE public."ntf_NotificationTemplate" (
--
--- TOC entry 289 (class 1259 OID 64195)
+-- TOC entry 295 (class 1259 OID 178350)
-- Name: ntf_QueueInbox; Type: TABLE; Schema: public; Owner: -
--
@@ -1809,7 +1930,7 @@ CREATE TABLE public."ntf_QueueInbox" (
--
--- TOC entry 290 (class 1259 OID 64200)
+-- TOC entry 296 (class 1259 OID 178355)
-- Name: ntf_QueueOutbox; Type: TABLE; Schema: public; Owner: -
--
@@ -1831,7 +1952,7 @@ CREATE TABLE public."ntf_QueueOutbox" (
--
--- TOC entry 291 (class 1259 OID 64205)
+-- TOC entry 297 (class 1259 OID 178360)
-- Name: ntf_Tenant; Type: TABLE; Schema: public; Owner: -
--
@@ -1845,7 +1966,7 @@ CREATE TABLE public."ntf_Tenant" (
--
--- TOC entry 292 (class 1259 OID 64211)
+-- TOC entry 298 (class 1259 OID 178366)
-- Name: ntf_TenantConfiguration; Type: TABLE; Schema: public; Owner: -
--
@@ -1861,7 +1982,7 @@ CREATE TABLE public."ntf_TenantConfiguration" (
--
--- TOC entry 293 (class 1259 OID 64216)
+-- TOC entry 299 (class 1259 OID 178371)
-- Name: ntf_TenantUser; Type: TABLE; Schema: public; Owner: -
--
@@ -1876,7 +1997,7 @@ CREATE TABLE public."ntf_TenantUser" (
--
--- TOC entry 294 (class 1259 OID 64219)
+-- TOC entry 300 (class 1259 OID 178374)
-- Name: ntf_User; Type: TABLE; Schema: public; Owner: -
--
@@ -1891,7 +2012,7 @@ CREATE TABLE public."ntf_User" (
--
--- TOC entry 295 (class 1259 OID 64227)
+-- TOC entry 301 (class 1259 OID 178382)
-- Name: ntf_UserContactInfo; Type: TABLE; Schema: public; Owner: -
--
@@ -1908,7 +2029,7 @@ CREATE TABLE public."ntf_UserContactInfo" (
--
--- TOC entry 296 (class 1259 OID 64234)
+-- TOC entry 302 (class 1259 OID 178389)
-- Name: ntf_UserCredential; Type: TABLE; Schema: public; Owner: -
--
@@ -1918,13 +2039,12 @@ CREATE TABLE public."ntf_UserCredential" (
external_id 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,
data character varying
);
--
--- TOC entry 297 (class 1259 OID 64240)
+-- TOC entry 303 (class 1259 OID 178394)
-- Name: ntf_UserNotificationPreference; Type: TABLE; Schema: public; Owner: -
--
@@ -1942,7 +2062,7 @@ CREATE TABLE public."ntf_UserNotificationPreference" (
--
--- TOC entry 3700 (class 2606 OID 73494)
+-- TOC entry 3720 (class 2606 OID 190001)
-- Name: ActionConfirmation ActionConfirmation_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -1951,7 +2071,7 @@ ALTER TABLE ONLY public."ActionConfirmation"
--
--- TOC entry 3702 (class 2606 OID 73496)
+-- TOC entry 3722 (class 2606 OID 190003)
-- Name: Content Content_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -1960,7 +2080,7 @@ ALTER TABLE ONLY public."Content"
--
--- TOC entry 3704 (class 2606 OID 73498)
+-- TOC entry 3724 (class 2606 OID 190005)
-- Name: Credential Credential_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -1969,7 +2089,7 @@ ALTER TABLE ONLY public."Credential"
--
--- TOC entry 3709 (class 2606 OID 73500)
+-- TOC entry 3729 (class 2606 OID 190007)
-- Name: DMPDatasetProfile DMPDatasetProfile_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -1978,16 +2098,7 @@ ALTER TABLE ONLY public."DMPDatasetProfile"
--
--- TOC entry 3740 (class 2606 OID 73502)
--- Name: DmpBlueprint DMPPRofile_pkey; Type: CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpBlueprint"
- ADD CONSTRAINT "DMPPRofile_pkey" PRIMARY KEY (id);
-
-
---
--- TOC entry 3706 (class 2606 OID 73504)
+-- TOC entry 3726 (class 2606 OID 190009)
-- Name: DMP DMP_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -1996,7 +2107,7 @@ ALTER TABLE ONLY public."DMP"
--
--- TOC entry 3720 (class 2606 OID 73506)
+-- TOC entry 3740 (class 2606 OID 190011)
-- Name: DatasetDataRepository DatasetDataRepository_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2005,7 +2116,7 @@ ALTER TABLE ONLY public."DatasetDataRepository"
--
--- TOC entry 3722 (class 2606 OID 73508)
+-- TOC entry 3742 (class 2606 OID 190013)
-- Name: DatasetExternalDataset DatasetExternalDataset_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2014,7 +2125,7 @@ ALTER TABLE ONLY public."DatasetExternalDataset"
--
--- TOC entry 3734 (class 2606 OID 73510)
+-- TOC entry 3756 (class 2606 OID 190015)
-- Name: DescriptionTemplate DatasetProfile_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2023,7 +2134,7 @@ ALTER TABLE ONLY public."DescriptionTemplate"
--
--- TOC entry 3724 (class 2606 OID 73512)
+-- TOC entry 3744 (class 2606 OID 190017)
-- Name: DatasetRegistry DatasetRegistry_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2032,7 +2143,7 @@ ALTER TABLE ONLY public."DatasetRegistry"
--
--- TOC entry 3726 (class 2606 OID 73514)
+-- TOC entry 3746 (class 2606 OID 190019)
-- Name: DatasetService DatasetService_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2041,7 +2152,7 @@ ALTER TABLE ONLY public."DatasetService"
--
--- TOC entry 3717 (class 2606 OID 73516)
+-- TOC entry 3737 (class 2606 OID 190021)
-- Name: Dataset Dataset_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2050,7 +2161,7 @@ ALTER TABLE ONLY public."Dataset"
--
--- TOC entry 3730 (class 2606 OID 73518)
+-- TOC entry 3750 (class 2606 OID 190023)
-- Name: DescriptionReference DescriptionReference_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2059,7 +2170,16 @@ ALTER TABLE ONLY public."DescriptionReference"
--
--- TOC entry 3732 (class 2606 OID 73520)
+-- 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: -
--
@@ -2068,7 +2188,7 @@ ALTER TABLE ONLY public."DescriptionTag"
--
--- TOC entry 3736 (class 2606 OID 73522)
+-- TOC entry 3758 (class 2606 OID 190029)
-- Name: DescriptionTemplateType DescriptionTemplateType_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2077,7 +2197,16 @@ ALTER TABLE ONLY public."DescriptionTemplateType"
--
--- TOC entry 3728 (class 2606 OID 73524)
+-- 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: -
--
@@ -2086,43 +2215,7 @@ ALTER TABLE ONLY public."Description"
--
--- TOC entry 3742 (class 2606 OID 73526)
--- Name: DmpDescriptionTemplate DmpDescriptionTemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpDescriptionTemplate"
- ADD CONSTRAINT "DmpDescriptionTemplate_pkey" PRIMARY KEY (id);
-
-
---
--- TOC entry 3744 (class 2606 OID 73528)
--- Name: DmpReference DmpReference_pkey; Type: CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpReference"
- ADD CONSTRAINT "DmpReference_pkey" PRIMARY KEY (id);
-
-
---
--- TOC entry 3746 (class 2606 OID 73530)
--- Name: DmpUser DmpUser_pkey; Type: CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpUser"
- ADD CONSTRAINT "DmpUser_pkey" PRIMARY KEY (id);
-
-
---
--- TOC entry 3738 (class 2606 OID 73532)
--- Name: Dmp Dmp_pkey; Type: CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."Dmp"
- ADD CONSTRAINT "Dmp_pkey" PRIMARY KEY (id);
-
-
---
--- TOC entry 3748 (class 2606 OID 73534)
+-- TOC entry 3762 (class 2606 OID 190035)
-- Name: DoiFunder DoiFunder_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2131,7 +2224,7 @@ ALTER TABLE ONLY public."DoiFunder"
--
--- TOC entry 3752 (class 2606 OID 73536)
+-- TOC entry 3766 (class 2606 OID 190037)
-- Name: EntityDoi Doi_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2140,7 +2233,7 @@ ALTER TABLE ONLY public."EntityDoi"
--
--- TOC entry 3754 (class 2606 OID 73538)
+-- TOC entry 3768 (class 2606 OID 190039)
-- Name: ExternalDataset ExternalDataset_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2149,7 +2242,7 @@ ALTER TABLE ONLY public."ExternalDataset"
--
--- TOC entry 3756 (class 2606 OID 73540)
+-- TOC entry 3770 (class 2606 OID 190041)
-- Name: FileUpload File_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2158,7 +2251,7 @@ ALTER TABLE ONLY public."FileUpload"
--
--- TOC entry 3758 (class 2606 OID 73542)
+-- TOC entry 3772 (class 2606 OID 190043)
-- Name: Funder Funder_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2167,7 +2260,7 @@ ALTER TABLE ONLY public."Funder"
--
--- TOC entry 3760 (class 2606 OID 73544)
+-- TOC entry 3774 (class 2606 OID 190045)
-- Name: Grant Grant_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2176,7 +2269,7 @@ ALTER TABLE ONLY public."Grant"
--
--- TOC entry 3762 (class 2606 OID 73546)
+-- TOC entry 3776 (class 2606 OID 190047)
-- Name: Invitation Invitation_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2185,7 +2278,7 @@ ALTER TABLE ONLY public."Invitation"
--
--- TOC entry 3764 (class 2606 OID 73548)
+-- TOC entry 3778 (class 2606 OID 190049)
-- Name: Language Language_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2194,7 +2287,7 @@ ALTER TABLE ONLY public."Language"
--
--- TOC entry 3766 (class 2606 OID 73550)
+-- TOC entry 3780 (class 2606 OID 190051)
-- Name: Lock Lock_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2203,7 +2296,7 @@ ALTER TABLE ONLY public."Lock"
--
--- TOC entry 3750 (class 2606 OID 73552)
+-- TOC entry 3764 (class 2606 OID 190053)
-- Name: EmailConfirmation LoginConfirmationEmail_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2212,7 +2305,7 @@ ALTER TABLE ONLY public."EmailConfirmation"
--
--- TOC entry 3768 (class 2606 OID 73554)
+-- TOC entry 3782 (class 2606 OID 190055)
-- Name: NotificationLegacy NotificationLegacy_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2221,7 +2314,7 @@ ALTER TABLE ONLY public."NotificationLegacy"
--
--- TOC entry 3844 (class 2606 OID 73556)
+-- TOC entry 3876 (class 2606 OID 190057)
-- Name: ntf_NotificationTemplate NotificationTemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2230,7 +2323,7 @@ ALTER TABLE ONLY public."ntf_NotificationTemplate"
--
--- TOC entry 3856 (class 2606 OID 73558)
+-- TOC entry 3888 (class 2606 OID 190059)
-- Name: ntf_User Ntf_User_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2239,7 +2332,7 @@ ALTER TABLE ONLY public."ntf_User"
--
--- TOC entry 3770 (class 2606 OID 73560)
+-- TOC entry 3784 (class 2606 OID 190061)
-- Name: Organisation Organisation_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2248,7 +2341,7 @@ ALTER TABLE ONLY public."Organisation"
--
--- TOC entry 3711 (class 2606 OID 73562)
+-- TOC entry 3731 (class 2606 OID 190063)
-- Name: DMPOrganisation PKey_DMPOrganisation; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2257,7 +2350,7 @@ ALTER TABLE ONLY public."DMPOrganisation"
--
--- TOC entry 3713 (class 2606 OID 73564)
+-- TOC entry 3733 (class 2606 OID 190065)
-- Name: DMPResearcher PKey_DMPResearcher; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2266,7 +2359,7 @@ ALTER TABLE ONLY public."DMPResearcher"
--
--- TOC entry 3715 (class 2606 OID 73566)
+-- TOC entry 3735 (class 2606 OID 190067)
-- Name: DataRepository PKey_DataRepository; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2275,7 +2368,7 @@ ALTER TABLE ONLY public."DataRepository"
--
--- TOC entry 3784 (class 2606 OID 73568)
+-- TOC entry 3812 (class 2606 OID 190069)
-- Name: Registry PKey_Registry; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2284,7 +2377,7 @@ ALTER TABLE ONLY public."Registry"
--
--- TOC entry 3788 (class 2606 OID 73570)
+-- TOC entry 3816 (class 2606 OID 190071)
-- Name: Service PKey_Service; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2293,7 +2386,70 @@ ALTER TABLE ONLY public."Service"
--
--- TOC entry 3772 (class 2606 OID 73572)
+-- 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: -
--
@@ -2302,7 +2458,7 @@ ALTER TABLE ONLY public."PrefillingSource"
--
--- TOC entry 3774 (class 2606 OID 73574)
+-- TOC entry 3802 (class 2606 OID 190089)
-- Name: Project Project_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2311,7 +2467,7 @@ ALTER TABLE ONLY public."Project"
--
--- TOC entry 3776 (class 2606 OID 73576)
+-- TOC entry 3804 (class 2606 OID 190091)
-- Name: QueueInbox QueryInbox_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2320,7 +2476,7 @@ ALTER TABLE ONLY public."QueueInbox"
--
--- TOC entry 3778 (class 2606 OID 73578)
+-- TOC entry 3806 (class 2606 OID 190093)
-- Name: QueueOutbox QueueOutbox_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2329,7 +2485,7 @@ ALTER TABLE ONLY public."QueueOutbox"
--
--- TOC entry 3782 (class 2606 OID 73580)
+-- TOC entry 3810 (class 2606 OID 190095)
-- Name: ReferenceType ReferenceType_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2338,7 +2494,7 @@ ALTER TABLE ONLY public."ReferenceType"
--
--- TOC entry 3780 (class 2606 OID 73582)
+-- TOC entry 3808 (class 2606 OID 190097)
-- Name: Reference Reference_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2347,7 +2503,7 @@ ALTER TABLE ONLY public."Reference"
--
--- TOC entry 3786 (class 2606 OID 73584)
+-- TOC entry 3814 (class 2606 OID 190099)
-- Name: Researcher Researcher_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2356,7 +2512,7 @@ ALTER TABLE ONLY public."Researcher"
--
--- TOC entry 3790 (class 2606 OID 73586)
+-- TOC entry 3818 (class 2606 OID 190101)
-- Name: StorageFile StorageFile_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2365,7 +2521,7 @@ ALTER TABLE ONLY public."StorageFile"
--
--- TOC entry 3792 (class 2606 OID 73588)
+-- TOC entry 3820 (class 2606 OID 190103)
-- Name: SupportiveMaterial SupportiveMaterial_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2374,7 +2530,7 @@ ALTER TABLE ONLY public."SupportiveMaterial"
--
--- TOC entry 3794 (class 2606 OID 73590)
+-- TOC entry 3822 (class 2606 OID 190105)
-- Name: Tag Tag_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2383,7 +2539,7 @@ ALTER TABLE ONLY public."Tag"
--
--- TOC entry 3798 (class 2606 OID 73592)
+-- TOC entry 3826 (class 2606 OID 190107)
-- Name: TenantConfiguration TenantConfiguration_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2392,7 +2548,7 @@ ALTER TABLE ONLY public."TenantConfiguration"
--
--- TOC entry 3800 (class 2606 OID 73594)
+-- TOC entry 3828 (class 2606 OID 190109)
-- Name: TenantUser TenantUser_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2401,7 +2557,7 @@ ALTER TABLE ONLY public."TenantUser"
--
--- TOC entry 3796 (class 2606 OID 73596)
+-- TOC entry 3824 (class 2606 OID 190111)
-- Name: Tenant Tenant_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2410,7 +2566,16 @@ ALTER TABLE ONLY public."Tenant"
--
--- TOC entry 3806 (class 2606 OID 73598)
+-- 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: -
--
@@ -2419,7 +2584,7 @@ ALTER TABLE ONLY public."UserContactInfo"
--
--- TOC entry 3808 (class 2606 OID 73600)
+-- TOC entry 3838 (class 2606 OID 190117)
-- Name: UserCredential UserCredential_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2428,7 +2593,7 @@ ALTER TABLE ONLY public."UserCredential"
--
--- TOC entry 3810 (class 2606 OID 73602)
+-- TOC entry 3840 (class 2606 OID 190119)
-- Name: UserDescriptionTemplate UserDatasetProfile_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2437,7 +2602,7 @@ ALTER TABLE ONLY public."UserDescriptionTemplate"
--
--- TOC entry 3812 (class 2606 OID 73604)
+-- TOC entry 3842 (class 2606 OID 190121)
-- Name: UserInfo UserInfo_email_key; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2446,7 +2611,7 @@ ALTER TABLE ONLY public."UserInfo"
--
--- TOC entry 3814 (class 2606 OID 73606)
+-- TOC entry 3844 (class 2606 OID 190123)
-- Name: UserInfo UserInfo_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2455,7 +2620,7 @@ ALTER TABLE ONLY public."UserInfo"
--
--- TOC entry 3816 (class 2606 OID 73608)
+-- TOC entry 3846 (class 2606 OID 190125)
-- Name: UserRole UserRole_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2464,7 +2629,7 @@ ALTER TABLE ONLY public."UserRole"
--
--- TOC entry 3820 (class 2606 OID 73610)
+-- TOC entry 3850 (class 2606 OID 190127)
-- Name: UserToken UserToken_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2473,7 +2638,7 @@ ALTER TABLE ONLY public."UserToken"
--
--- TOC entry 3802 (class 2606 OID 73612)
+-- TOC entry 3832 (class 2606 OID 190129)
-- Name: User User_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2482,7 +2647,16 @@ ALTER TABLE ONLY public."User"
--
--- TOC entry 3822 (class 2606 OID 73614)
+-- 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: -
--
@@ -2491,7 +2665,7 @@ ALTER TABLE ONLY public."ant_Annotation"
--
--- TOC entry 3824 (class 2606 OID 73616)
+-- TOC entry 3856 (class 2606 OID 190135)
-- Name: ant_EntityUser ant_EntityUser_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2500,7 +2674,7 @@ ALTER TABLE ONLY public."ant_EntityUser"
--
--- TOC entry 3826 (class 2606 OID 73618)
+-- TOC entry 3858 (class 2606 OID 190137)
-- Name: ant_QueueInbox ant_QueryInbox_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2509,7 +2683,7 @@ ALTER TABLE ONLY public."ant_QueueInbox"
--
--- TOC entry 3828 (class 2606 OID 73620)
+-- TOC entry 3860 (class 2606 OID 190139)
-- Name: ant_QueueOutbox ant_QueueOutbox_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2518,7 +2692,16 @@ ALTER TABLE ONLY public."ant_QueueOutbox"
--
--- TOC entry 3832 (class 2606 OID 73622)
+-- 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: -
--
@@ -2527,7 +2710,7 @@ ALTER TABLE ONLY public."ant_TenantUser"
--
--- TOC entry 3830 (class 2606 OID 73624)
+-- TOC entry 3864 (class 2606 OID 190145)
-- Name: ant_Tenant ant_Tenant_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2536,16 +2719,7 @@ ALTER TABLE ONLY public."ant_Tenant"
--
--- TOC entry 3836 (class 2606 OID 73626)
--- Name: ant_UserContactInfo ant_UserContactInfo_pkey; Type: CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."ant_UserContactInfo"
- ADD CONSTRAINT "ant_UserContactInfo_pkey" PRIMARY KEY (id);
-
-
---
--- TOC entry 3838 (class 2606 OID 73628)
+-- TOC entry 3870 (class 2606 OID 190147)
-- Name: ant_UserCredential ant_UserCredential_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2554,7 +2728,7 @@ ALTER TABLE ONLY public."ant_UserCredential"
--
--- TOC entry 3834 (class 2606 OID 73630)
+-- TOC entry 3868 (class 2606 OID 190149)
-- Name: ant_User ant_User_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2563,7 +2737,7 @@ ALTER TABLE ONLY public."ant_User"
--
--- TOC entry 3840 (class 2606 OID 73632)
+-- TOC entry 3872 (class 2606 OID 190151)
-- Name: ntf_InAppNotification ntf_InAppNotification_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2572,7 +2746,7 @@ ALTER TABLE ONLY public."ntf_InAppNotification"
--
--- TOC entry 3842 (class 2606 OID 73634)
+-- TOC entry 3874 (class 2606 OID 190153)
-- Name: ntf_Notification ntf_Notification_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2581,7 +2755,7 @@ ALTER TABLE ONLY public."ntf_Notification"
--
--- TOC entry 3846 (class 2606 OID 73636)
+-- TOC entry 3878 (class 2606 OID 190155)
-- Name: ntf_QueueInbox ntf_QueryInbox_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2590,7 +2764,7 @@ ALTER TABLE ONLY public."ntf_QueueInbox"
--
--- TOC entry 3848 (class 2606 OID 73638)
+-- TOC entry 3880 (class 2606 OID 190157)
-- Name: ntf_QueueOutbox ntf_QueueOutbox_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2599,7 +2773,7 @@ ALTER TABLE ONLY public."ntf_QueueOutbox"
--
--- TOC entry 3852 (class 2606 OID 73640)
+-- TOC entry 3884 (class 2606 OID 190159)
-- Name: ntf_TenantConfiguration ntf_TenantConfguration_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2608,7 +2782,7 @@ ALTER TABLE ONLY public."ntf_TenantConfiguration"
--
--- TOC entry 3854 (class 2606 OID 73642)
+-- TOC entry 3886 (class 2606 OID 190161)
-- Name: ntf_TenantUser ntf_TenantUser_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2617,7 +2791,7 @@ ALTER TABLE ONLY public."ntf_TenantUser"
--
--- TOC entry 3850 (class 2606 OID 73644)
+-- TOC entry 3882 (class 2606 OID 190163)
-- Name: ntf_Tenant ntf_Tenant_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2626,7 +2800,7 @@ ALTER TABLE ONLY public."ntf_Tenant"
--
--- TOC entry 3858 (class 2606 OID 73646)
+-- TOC entry 3890 (class 2606 OID 190165)
-- Name: ntf_UserContactInfo ntf_UserContactInfo_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2635,7 +2809,7 @@ ALTER TABLE ONLY public."ntf_UserContactInfo"
--
--- TOC entry 3860 (class 2606 OID 73648)
+-- TOC entry 3892 (class 2606 OID 190167)
-- Name: ntf_UserCredential ntf_UserCredential_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2644,7 +2818,7 @@ ALTER TABLE ONLY public."ntf_UserCredential"
--
--- TOC entry 3862 (class 2606 OID 73650)
+-- TOC entry 3894 (class 2606 OID 190169)
-- Name: ntf_UserNotificationPreference ntf_UserNotificationPreference_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2653,7 +2827,7 @@ ALTER TABLE ONLY public."ntf_UserNotificationPreference"
--
--- TOC entry 3804 (class 2606 OID 73652)
+-- TOC entry 3834 (class 2606 OID 190171)
-- Name: UserAssociation pk_user_association; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2662,7 +2836,7 @@ ALTER TABLE ONLY public."UserAssociation"
--
--- TOC entry 3818 (class 2606 OID 73654)
+-- TOC entry 3848 (class 2606 OID 190173)
-- Name: UserSettings user_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
@@ -2671,7 +2845,7 @@ ALTER TABLE ONLY public."UserSettings"
--
--- TOC entry 3707 (class 1259 OID 73655)
+-- TOC entry 3727 (class 1259 OID 190174)
-- Name: fki_DMPDMPProfileReference; Type: INDEX; Schema: public; Owner: -
--
@@ -2679,7 +2853,7 @@ CREATE INDEX "fki_DMPDMPProfileReference" ON public."DMP" USING btree ("Profile"
--
--- TOC entry 3718 (class 1259 OID 73656)
+-- TOC entry 3738 (class 1259 OID 190175)
-- Name: fki_DatasetDatasetProfileReference; Type: INDEX; Schema: public; Owner: -
--
@@ -2687,7 +2861,7 @@ CREATE INDEX "fki_DatasetDatasetProfileReference" ON public."Dataset" USING btre
--
--- TOC entry 3863 (class 2606 OID 73657)
+-- TOC entry 3895 (class 2606 OID 190176)
-- Name: ActionConfirmation ActionConfirmation_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2696,7 +2870,7 @@ ALTER TABLE ONLY public."ActionConfirmation"
--
--- TOC entry 3864 (class 2606 OID 73662)
+-- TOC entry 3896 (class 2606 OID 190181)
-- Name: ActionConfirmation ActionConfirmation_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2705,7 +2879,7 @@ ALTER TABLE ONLY public."ActionConfirmation"
--
--- TOC entry 3865 (class 2606 OID 73667)
+-- TOC entry 3897 (class 2606 OID 190186)
-- Name: Credential Credential_UserId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2714,16 +2888,16 @@ ALTER TABLE ONLY public."Credential"
--
--- TOC entry 3866 (class 2606 OID 73672)
+-- 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."DmpBlueprint"(id);
+ ADD CONSTRAINT "DMPDMPProfileReference" FOREIGN KEY ("Profile") REFERENCES public."PlanBlueprint"(id);
--
--- TOC entry 3869 (class 2606 OID 73677)
+-- TOC entry 3901 (class 2606 OID 190196)
-- Name: DMPDatasetProfile DMPDatasetProfile_datasetprofile_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2732,7 +2906,7 @@ ALTER TABLE ONLY public."DMPDatasetProfile"
--
--- TOC entry 3870 (class 2606 OID 73682)
+-- TOC entry 3902 (class 2606 OID 190201)
-- Name: DMPDatasetProfile DMPDatasetProfile_dmp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2741,7 +2915,7 @@ ALTER TABLE ONLY public."DMPDatasetProfile"
--
--- TOC entry 3871 (class 2606 OID 73687)
+-- TOC entry 3903 (class 2606 OID 190206)
-- Name: DMPOrganisation DMPOrganisationDMPReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2750,7 +2924,7 @@ ALTER TABLE ONLY public."DMPOrganisation"
--
--- TOC entry 3872 (class 2606 OID 73692)
+-- TOC entry 3904 (class 2606 OID 190211)
-- Name: DMPOrganisation DMPOrganisationOrganisationReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2759,7 +2933,7 @@ ALTER TABLE ONLY public."DMPOrganisation"
--
--- TOC entry 3867 (class 2606 OID 73697)
+-- TOC entry 3899 (class 2606 OID 190216)
-- Name: DMP DMPProjectReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2768,7 +2942,7 @@ ALTER TABLE ONLY public."DMP"
--
--- TOC entry 3873 (class 2606 OID 73702)
+-- TOC entry 3905 (class 2606 OID 190221)
-- Name: DMPResearcher DMPResearcherDMPReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2777,7 +2951,7 @@ ALTER TABLE ONLY public."DMPResearcher"
--
--- TOC entry 3874 (class 2606 OID 73707)
+-- TOC entry 3906 (class 2606 OID 190226)
-- Name: DMPResearcher DMPResearcherResearcherReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2786,7 +2960,7 @@ ALTER TABLE ONLY public."DMPResearcher"
--
--- TOC entry 3868 (class 2606 OID 73712)
+-- TOC entry 3900 (class 2606 OID 190231)
-- Name: DMP DMP_Creator_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2795,7 +2969,7 @@ ALTER TABLE ONLY public."DMP"
--
--- TOC entry 3875 (class 2606 OID 73717)
+-- TOC entry 3907 (class 2606 OID 190236)
-- Name: Dataset DatasetDMPReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2804,7 +2978,7 @@ ALTER TABLE ONLY public."Dataset"
--
--- TOC entry 3878 (class 2606 OID 73722)
+-- TOC entry 3910 (class 2606 OID 190241)
-- Name: DatasetDataRepository DatasetDataRepositoryDataRepositoryReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2813,7 +2987,7 @@ ALTER TABLE ONLY public."DatasetDataRepository"
--
--- TOC entry 3879 (class 2606 OID 73727)
+-- TOC entry 3911 (class 2606 OID 190246)
-- Name: DatasetDataRepository DatasetDataRepositoryDatasetReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2822,7 +2996,7 @@ ALTER TABLE ONLY public."DatasetDataRepository"
--
--- TOC entry 3876 (class 2606 OID 73732)
+-- TOC entry 3908 (class 2606 OID 190251)
-- Name: Dataset DatasetDatasetProfileReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2831,7 +3005,7 @@ ALTER TABLE ONLY public."Dataset"
--
--- TOC entry 3882 (class 2606 OID 73737)
+-- TOC entry 3914 (class 2606 OID 190256)
-- Name: DatasetRegistry DatasetRegistryDatasetReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2840,7 +3014,7 @@ ALTER TABLE ONLY public."DatasetRegistry"
--
--- TOC entry 3883 (class 2606 OID 73742)
+-- TOC entry 3915 (class 2606 OID 190261)
-- Name: DatasetRegistry DatasetRegistryRegistryReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2849,7 +3023,7 @@ ALTER TABLE ONLY public."DatasetRegistry"
--
--- TOC entry 3884 (class 2606 OID 73747)
+-- TOC entry 3916 (class 2606 OID 190266)
-- Name: DatasetService DatasetServiceDatasetReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2858,7 +3032,7 @@ ALTER TABLE ONLY public."DatasetService"
--
--- TOC entry 3885 (class 2606 OID 73752)
+-- TOC entry 3917 (class 2606 OID 190271)
-- Name: DatasetService DatasetServiceServiceReference; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2867,7 +3041,7 @@ ALTER TABLE ONLY public."DatasetService"
--
--- TOC entry 3877 (class 2606 OID 73757)
+-- TOC entry 3909 (class 2606 OID 190276)
-- Name: Dataset Dataset_Creator_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2876,7 +3050,7 @@ ALTER TABLE ONLY public."Dataset"
--
--- TOC entry 3891 (class 2606 OID 73762)
+-- TOC entry 3923 (class 2606 OID 190281)
-- Name: DescriptionReference DescriptionReference_description_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2885,7 +3059,7 @@ ALTER TABLE ONLY public."DescriptionReference"
--
--- TOC entry 3892 (class 2606 OID 73767)
+-- TOC entry 3924 (class 2606 OID 190286)
-- Name: DescriptionReference DescriptionReference_reference_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2894,7 +3068,7 @@ ALTER TABLE ONLY public."DescriptionReference"
--
--- TOC entry 3893 (class 2606 OID 73772)
+-- TOC entry 3925 (class 2606 OID 190291)
-- Name: DescriptionReference DescriptionReference_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2903,7 +3077,16 @@ ALTER TABLE ONLY public."DescriptionReference"
--
--- TOC entry 3894 (class 2606 OID 73777)
+-- 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: -
--
@@ -2912,7 +3095,7 @@ ALTER TABLE ONLY public."DescriptionTag"
--
--- TOC entry 3895 (class 2606 OID 73782)
+-- TOC entry 3928 (class 2606 OID 190306)
-- Name: DescriptionTag DescriptionTag_tag_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2921,7 +3104,7 @@ ALTER TABLE ONLY public."DescriptionTag"
--
--- TOC entry 3896 (class 2606 OID 73787)
+-- TOC entry 3929 (class 2606 OID 190311)
-- Name: DescriptionTag DescriptionTag_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2930,7 +3113,7 @@ ALTER TABLE ONLY public."DescriptionTag"
--
--- TOC entry 3899 (class 2606 OID 73792)
+-- TOC entry 3932 (class 2606 OID 190316)
-- Name: DescriptionTemplateType DescriptionTemplateType_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2939,7 +3122,7 @@ ALTER TABLE ONLY public."DescriptionTemplateType"
--
--- TOC entry 3897 (class 2606 OID 73797)
+-- TOC entry 3930 (class 2606 OID 190321)
-- Name: DescriptionTemplate DescriptionTemplate_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2948,7 +3131,7 @@ ALTER TABLE ONLY public."DescriptionTemplate"
--
--- TOC entry 3898 (class 2606 OID 73802)
+-- TOC entry 3931 (class 2606 OID 190326)
-- Name: DescriptionTemplate DescriptionTemplate_type_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2957,7 +3140,16 @@ ALTER TABLE ONLY public."DescriptionTemplate"
--
--- TOC entry 3886 (class 2606 OID 73807)
+-- 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: -
--
@@ -2966,7 +3158,7 @@ ALTER TABLE ONLY public."Description"
--
--- TOC entry 3887 (class 2606 OID 73812)
+-- TOC entry 3919 (class 2606 OID 190341)
-- Name: Description Description_description_template_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -2975,25 +3167,25 @@ ALTER TABLE ONLY public."Description"
--
--- TOC entry 3888 (class 2606 OID 73817)
--- Name: Description Description_dmp_description_template_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
+-- 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_dmp_description_template_fkey" FOREIGN KEY (dmp_description_template) REFERENCES public."DmpDescriptionTemplate"(id) NOT VALID;
+ ADD CONSTRAINT "Description_plan_description_template_fkey" FOREIGN KEY (plan_description_template) REFERENCES public."PlanDescriptionTemplate"(id) NOT VALID;
--
--- TOC entry 3889 (class 2606 OID 73822)
--- Name: Description Description_dmp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
+-- 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_dmp_fkey" FOREIGN KEY (dmp) REFERENCES public."Dmp"(id);
+ ADD CONSTRAINT "Description_plan_fkey" FOREIGN KEY (plan) REFERENCES public."Plan"(id);
--
--- TOC entry 3890 (class 2606 OID 73827)
+-- TOC entry 3922 (class 2606 OID 190356)
-- Name: Description Description_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3002,115 +3194,7 @@ ALTER TABLE ONLY public."Description"
--
--- TOC entry 3903 (class 2606 OID 73832)
--- Name: DmpBlueprint DmpBlueprint_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpBlueprint"
- ADD CONSTRAINT "DmpBlueprint_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
-
-
---
--- TOC entry 3904 (class 2606 OID 73837)
--- Name: DmpDescriptionTemplate DmpDescriptionTemplate_dmp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpDescriptionTemplate"
- ADD CONSTRAINT "DmpDescriptionTemplate_dmp_fkey" FOREIGN KEY (dmp) REFERENCES public."Dmp"(id);
-
-
---
--- TOC entry 3905 (class 2606 OID 73842)
--- Name: DmpDescriptionTemplate DmpDescriptionTemplate_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpDescriptionTemplate"
- ADD CONSTRAINT "DmpDescriptionTemplate_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
-
-
---
--- TOC entry 3906 (class 2606 OID 73847)
--- Name: DmpReference DmpReference_dmp_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpReference"
- ADD CONSTRAINT "DmpReference_dmp_id_fkey" FOREIGN KEY (dmp_id) REFERENCES public."Dmp"(id);
-
-
---
--- TOC entry 3907 (class 2606 OID 73852)
--- Name: DmpReference DmpReference_reference_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpReference"
- ADD CONSTRAINT "DmpReference_reference_id_fkey" FOREIGN KEY (reference_id) REFERENCES public."Reference"(id);
-
-
---
--- TOC entry 3908 (class 2606 OID 73857)
--- Name: DmpReference DmpReference_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpReference"
- ADD CONSTRAINT "DmpReference_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
-
-
---
--- TOC entry 3909 (class 2606 OID 73862)
--- Name: DmpUser DmpUser_dmp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpUser"
- ADD CONSTRAINT "DmpUser_dmp_fkey" FOREIGN KEY (dmp) REFERENCES public."Dmp"(id);
-
-
---
--- TOC entry 3910 (class 2606 OID 73867)
--- Name: DmpUser DmpUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpUser"
- ADD CONSTRAINT "DmpUser_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
-
-
---
--- TOC entry 3911 (class 2606 OID 73872)
--- Name: DmpUser DmpUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."DmpUser"
- ADD CONSTRAINT "DmpUser_user_fkey" FOREIGN KEY ("user") REFERENCES public."User"(id) NOT VALID;
-
-
---
--- TOC entry 3900 (class 2606 OID 73877)
--- Name: Dmp Dmp_blueprint_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."Dmp"
- ADD CONSTRAINT "Dmp_blueprint_fkey" FOREIGN KEY (blueprint) REFERENCES public."DmpBlueprint"(id);
-
-
---
--- TOC entry 3901 (class 2606 OID 73882)
--- 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 3902 (class 2606 OID 73887)
--- Name: Dmp Dmp_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."Dmp"
- ADD CONSTRAINT "Dmp_tenant_fkey" FOREIGN KEY (tenant) REFERENCES public."Tenant"(id) NOT VALID;
-
-
---
--- TOC entry 3912 (class 2606 OID 73892)
+-- TOC entry 3934 (class 2606 OID 190361)
-- Name: EntityDoi EntityDoi_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3119,7 +3203,7 @@ ALTER TABLE ONLY public."EntityDoi"
--
--- TOC entry 3913 (class 2606 OID 73897)
+-- TOC entry 3935 (class 2606 OID 190366)
-- Name: FileUpload FileUpload_Creator_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3128,7 +3212,7 @@ ALTER TABLE ONLY public."FileUpload"
--
--- TOC entry 3914 (class 2606 OID 73902)
+-- TOC entry 3936 (class 2606 OID 190371)
-- Name: Grant Grant_CreationUser_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3137,7 +3221,7 @@ ALTER TABLE ONLY public."Grant"
--
--- TOC entry 3916 (class 2606 OID 73907)
+-- TOC entry 3938 (class 2606 OID 190376)
-- Name: Invitation Invitation_CreationUser_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3146,7 +3230,7 @@ ALTER TABLE ONLY public."Invitation"
--
--- TOC entry 3918 (class 2606 OID 73912)
+-- TOC entry 3940 (class 2606 OID 190381)
-- Name: Language Language_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3155,7 +3239,7 @@ ALTER TABLE ONLY public."Language"
--
--- TOC entry 3919 (class 2606 OID 73917)
+-- TOC entry 3941 (class 2606 OID 190386)
-- Name: Lock Lock_lockedby_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3164,7 +3248,7 @@ ALTER TABLE ONLY public."Lock"
--
--- TOC entry 3920 (class 2606 OID 73922)
+-- TOC entry 3942 (class 2606 OID 190391)
-- Name: Lock Lock_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3173,7 +3257,7 @@ ALTER TABLE ONLY public."Lock"
--
--- TOC entry 3921 (class 2606 OID 73927)
+-- TOC entry 3943 (class 2606 OID 190396)
-- Name: NotificationLegacy NotificationLegacy_UserId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3182,7 +3266,7 @@ ALTER TABLE ONLY public."NotificationLegacy"
--
--- TOC entry 3967 (class 2606 OID 73932)
+-- TOC entry 4007 (class 2606 OID 190401)
-- Name: ntf_NotificationTemplate NotificationTemplate_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3191,7 +3275,133 @@ ALTER TABLE ONLY public."ntf_NotificationTemplate"
--
--- TOC entry 3922 (class 2606 OID 73937)
+-- 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: -
--
@@ -3200,7 +3410,7 @@ ALTER TABLE ONLY public."PrefillingSource"
--
--- TOC entry 3923 (class 2606 OID 73942)
+-- TOC entry 3959 (class 2606 OID 190481)
-- Name: Project Project_CreationUser_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3209,7 +3419,7 @@ ALTER TABLE ONLY public."Project"
--
--- TOC entry 3925 (class 2606 OID 73947)
+-- TOC entry 3961 (class 2606 OID 190486)
-- Name: QueueInbox QueryInbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3218,7 +3428,7 @@ ALTER TABLE ONLY public."QueueInbox"
--
--- TOC entry 3926 (class 2606 OID 73952)
+-- TOC entry 3962 (class 2606 OID 190491)
-- Name: QueueOutbox QueueOutbox_tennat_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3227,7 +3437,7 @@ ALTER TABLE ONLY public."QueueOutbox"
--
--- TOC entry 3930 (class 2606 OID 73957)
+-- TOC entry 3966 (class 2606 OID 190496)
-- Name: ReferenceType ReferenceType_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3236,7 +3446,7 @@ ALTER TABLE ONLY public."ReferenceType"
--
--- TOC entry 3927 (class 2606 OID 73962)
+-- TOC entry 3963 (class 2606 OID 190501)
-- Name: Reference Reference_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3245,7 +3455,7 @@ ALTER TABLE ONLY public."Reference"
--
--- TOC entry 3928 (class 2606 OID 73967)
+-- TOC entry 3964 (class 2606 OID 190506)
-- Name: Reference Reference_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3254,7 +3464,7 @@ ALTER TABLE ONLY public."Reference"
--
--- TOC entry 3929 (class 2606 OID 73972)
+-- TOC entry 3965 (class 2606 OID 190511)
-- Name: Reference Reference_type_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3263,7 +3473,7 @@ ALTER TABLE ONLY public."Reference"
--
--- TOC entry 3931 (class 2606 OID 73977)
+-- TOC entry 3967 (class 2606 OID 190516)
-- Name: StorageFile StorageFile_owner_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3272,7 +3482,7 @@ ALTER TABLE ONLY public."StorageFile"
--
--- TOC entry 3932 (class 2606 OID 73982)
+-- TOC entry 3968 (class 2606 OID 190521)
-- Name: StorageFile StorageFile_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3281,7 +3491,7 @@ ALTER TABLE ONLY public."StorageFile"
--
--- TOC entry 3933 (class 2606 OID 73987)
+-- TOC entry 3969 (class 2606 OID 190526)
-- Name: SupportiveMaterial SupportiveMaterial_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3290,7 +3500,7 @@ ALTER TABLE ONLY public."SupportiveMaterial"
--
--- TOC entry 3934 (class 2606 OID 73992)
+-- TOC entry 3970 (class 2606 OID 190531)
-- Name: Tag Tag_created_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3299,7 +3509,7 @@ ALTER TABLE ONLY public."Tag"
--
--- TOC entry 3935 (class 2606 OID 73997)
+-- TOC entry 3971 (class 2606 OID 190536)
-- Name: Tag Tag_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3308,7 +3518,7 @@ ALTER TABLE ONLY public."Tag"
--
--- TOC entry 3936 (class 2606 OID 74002)
+-- TOC entry 3972 (class 2606 OID 190541)
-- Name: TenantConfiguration TenantConfiguration_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3317,7 +3527,7 @@ ALTER TABLE ONLY public."TenantConfiguration"
--
--- TOC entry 3937 (class 2606 OID 74007)
+-- TOC entry 3973 (class 2606 OID 190546)
-- Name: TenantUser TenantUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3326,7 +3536,7 @@ ALTER TABLE ONLY public."TenantUser"
--
--- TOC entry 3938 (class 2606 OID 74012)
+-- TOC entry 3974 (class 2606 OID 190551)
-- Name: TenantUser TenantUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3335,7 +3545,16 @@ ALTER TABLE ONLY public."TenantUser"
--
--- TOC entry 3941 (class 2606 OID 74017)
+-- 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: -
--
@@ -3344,7 +3563,7 @@ ALTER TABLE ONLY public."UserContactInfo"
--
--- TOC entry 3942 (class 2606 OID 74022)
+-- TOC entry 3979 (class 2606 OID 190566)
-- Name: UserCredential UserCredential_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3353,7 +3572,7 @@ ALTER TABLE ONLY public."UserCredential"
--
--- TOC entry 3943 (class 2606 OID 74027)
+-- TOC entry 3980 (class 2606 OID 190571)
-- Name: UserDMP UserDMP_dmp_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3362,7 +3581,7 @@ ALTER TABLE ONLY public."UserDMP"
--
--- TOC entry 3944 (class 2606 OID 74032)
+-- TOC entry 3981 (class 2606 OID 190576)
-- Name: UserDMP UserDMP_usr_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3371,7 +3590,7 @@ ALTER TABLE ONLY public."UserDMP"
--
--- TOC entry 3945 (class 2606 OID 74037)
+-- TOC entry 3982 (class 2606 OID 190581)
-- Name: UserDescriptionTemplate UserDatasetProfile_datasetProfile_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3380,7 +3599,7 @@ ALTER TABLE ONLY public."UserDescriptionTemplate"
--
--- TOC entry 3946 (class 2606 OID 74042)
+-- TOC entry 3983 (class 2606 OID 190586)
-- Name: UserDescriptionTemplate UserDescriptionTemplate_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3389,7 +3608,7 @@ ALTER TABLE ONLY public."UserDescriptionTemplate"
--
--- TOC entry 3947 (class 2606 OID 74047)
+-- TOC entry 3984 (class 2606 OID 190591)
-- Name: UserDescriptionTemplate UserDescriptionTemplate_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3398,7 +3617,7 @@ ALTER TABLE ONLY public."UserDescriptionTemplate"
--
--- TOC entry 3948 (class 2606 OID 74052)
+-- TOC entry 3985 (class 2606 OID 190596)
-- Name: UserRole UserRole_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3407,7 +3626,7 @@ ALTER TABLE ONLY public."UserRole"
--
--- TOC entry 3949 (class 2606 OID 74057)
+-- TOC entry 3986 (class 2606 OID 190601)
-- Name: UserRole UserRole_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3416,7 +3635,7 @@ ALTER TABLE ONLY public."UserRole"
--
--- TOC entry 3950 (class 2606 OID 74062)
+-- TOC entry 3987 (class 2606 OID 190606)
-- Name: UserSettings UserSettings_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3425,7 +3644,7 @@ ALTER TABLE ONLY public."UserSettings"
--
--- TOC entry 3951 (class 2606 OID 74067)
+-- TOC entry 3988 (class 2606 OID 190611)
-- Name: UserToken UserToken_UserId_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3434,7 +3653,34 @@ ALTER TABLE ONLY public."UserToken"
--
--- TOC entry 3952 (class 2606 OID 74072)
+-- 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: -
--
@@ -3443,7 +3689,7 @@ ALTER TABLE ONLY public."ant_Annotation"
--
--- TOC entry 3953 (class 2606 OID 74077)
+-- TOC entry 3990 (class 2606 OID 190636)
-- Name: ant_Annotation ant_Annotation_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3452,7 +3698,7 @@ ALTER TABLE ONLY public."ant_Annotation"
--
--- TOC entry 3954 (class 2606 OID 74082)
+-- TOC entry 3991 (class 2606 OID 190641)
-- Name: ant_Annotation ant_Annotation_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3461,7 +3707,7 @@ ALTER TABLE ONLY public."ant_Annotation"
--
--- TOC entry 3955 (class 2606 OID 74087)
+-- TOC entry 3995 (class 2606 OID 190646)
-- Name: ant_EntityUser ant_EntityUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3470,7 +3716,7 @@ ALTER TABLE ONLY public."ant_EntityUser"
--
--- TOC entry 3956 (class 2606 OID 74092)
+-- TOC entry 3996 (class 2606 OID 190651)
-- Name: ant_EntityUser ant_EntityUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3479,7 +3725,7 @@ ALTER TABLE ONLY public."ant_EntityUser"
--
--- TOC entry 3957 (class 2606 OID 74097)
+-- TOC entry 3997 (class 2606 OID 190656)
-- Name: ant_QueueInbox ant_QueryInbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3488,7 +3734,7 @@ ALTER TABLE ONLY public."ant_QueueInbox"
--
--- TOC entry 3958 (class 2606 OID 74102)
+-- TOC entry 3998 (class 2606 OID 190661)
-- Name: ant_QueueOutbox ant_QueueOutbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3497,7 +3743,16 @@ ALTER TABLE ONLY public."ant_QueueOutbox"
--
--- TOC entry 3959 (class 2606 OID 74107)
+-- 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: -
--
@@ -3506,7 +3761,7 @@ ALTER TABLE ONLY public."ant_TenantUser"
--
--- TOC entry 3960 (class 2606 OID 74112)
+-- TOC entry 4001 (class 2606 OID 190676)
-- Name: ant_TenantUser ant_TenantUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3515,16 +3770,7 @@ ALTER TABLE ONLY public."ant_TenantUser"
--
--- TOC entry 3961 (class 2606 OID 74117)
--- Name: ant_UserContactInfo ant_UserContactInfo_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
---
-
-ALTER TABLE ONLY public."ant_UserContactInfo"
- ADD CONSTRAINT "ant_UserContactInfo_user_fkey" FOREIGN KEY ("user") REFERENCES public."ant_User"(id);
-
-
---
--- TOC entry 3962 (class 2606 OID 74122)
+-- TOC entry 4002 (class 2606 OID 190681)
-- Name: ant_UserCredential ant_UserCredential_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3533,7 +3779,7 @@ ALTER TABLE ONLY public."ant_UserCredential"
--
--- TOC entry 3915 (class 2606 OID 74127)
+-- TOC entry 3937 (class 2606 OID 190686)
-- Name: Grant fk_grant_content; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3542,7 +3788,7 @@ ALTER TABLE ONLY public."Grant"
--
--- TOC entry 3917 (class 2606 OID 74132)
+-- TOC entry 3939 (class 2606 OID 190691)
-- Name: Invitation fk_invitation_dmp; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3551,7 +3797,7 @@ ALTER TABLE ONLY public."Invitation"
--
--- TOC entry 3924 (class 2606 OID 74137)
+-- TOC entry 3960 (class 2606 OID 190696)
-- Name: Project fk_project_content; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3560,7 +3806,7 @@ ALTER TABLE ONLY public."Project"
--
--- TOC entry 3939 (class 2606 OID 74142)
+-- TOC entry 3976 (class 2606 OID 190701)
-- Name: UserAssociation fk_userinfo_user_association_1; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3569,7 +3815,7 @@ ALTER TABLE ONLY public."UserAssociation"
--
--- TOC entry 3940 (class 2606 OID 74147)
+-- TOC entry 3977 (class 2606 OID 190706)
-- Name: UserAssociation fk_userinfo_user_association_2; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3578,7 +3824,7 @@ ALTER TABLE ONLY public."UserAssociation"
--
--- TOC entry 3880 (class 2606 OID 74152)
+-- TOC entry 3912 (class 2606 OID 190711)
-- Name: DatasetExternalDataset fkey_datasetexternaldataset_dataset; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3587,7 +3833,7 @@ ALTER TABLE ONLY public."DatasetExternalDataset"
--
--- TOC entry 3881 (class 2606 OID 74157)
+-- TOC entry 3913 (class 2606 OID 190716)
-- Name: DatasetExternalDataset fkey_datasetexternaldataset_externaldataset; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3596,7 +3842,7 @@ ALTER TABLE ONLY public."DatasetExternalDataset"
--
--- TOC entry 3963 (class 2606 OID 74162)
+-- TOC entry 4003 (class 2606 OID 190721)
-- Name: ntf_InAppNotification ntf_InAppNotification_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3605,7 +3851,7 @@ ALTER TABLE ONLY public."ntf_InAppNotification"
--
--- TOC entry 3964 (class 2606 OID 74167)
+-- TOC entry 4004 (class 2606 OID 190726)
-- Name: ntf_InAppNotification ntf_InAppNotification_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3614,7 +3860,7 @@ ALTER TABLE ONLY public."ntf_InAppNotification"
--
--- TOC entry 3965 (class 2606 OID 74172)
+-- TOC entry 4005 (class 2606 OID 190731)
-- Name: ntf_Notification ntf_Notification_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3623,7 +3869,7 @@ ALTER TABLE ONLY public."ntf_Notification"
--
--- TOC entry 3966 (class 2606 OID 74177)
+-- TOC entry 4006 (class 2606 OID 190736)
-- Name: ntf_Notification ntf_Notification_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3632,7 +3878,7 @@ ALTER TABLE ONLY public."ntf_Notification"
--
--- TOC entry 3968 (class 2606 OID 74182)
+-- TOC entry 4008 (class 2606 OID 190741)
-- Name: ntf_QueueInbox ntf_QueryInbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3641,7 +3887,7 @@ ALTER TABLE ONLY public."ntf_QueueInbox"
--
--- TOC entry 3969 (class 2606 OID 74187)
+-- TOC entry 4009 (class 2606 OID 190746)
-- Name: ntf_QueueOutbox ntf_QueueOutbox_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3650,7 +3896,7 @@ ALTER TABLE ONLY public."ntf_QueueOutbox"
--
--- TOC entry 3970 (class 2606 OID 74192)
+-- TOC entry 4010 (class 2606 OID 190751)
-- Name: ntf_TenantConfiguration ntf_TenantConfiguration_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3659,7 +3905,7 @@ ALTER TABLE ONLY public."ntf_TenantConfiguration"
--
--- TOC entry 3971 (class 2606 OID 74197)
+-- TOC entry 4011 (class 2606 OID 190756)
-- Name: ntf_TenantUser ntf_TenantUser_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3668,7 +3914,7 @@ ALTER TABLE ONLY public."ntf_TenantUser"
--
--- TOC entry 3972 (class 2606 OID 74202)
+-- TOC entry 4012 (class 2606 OID 190761)
-- Name: ntf_TenantUser ntf_TenantUser_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3677,7 +3923,7 @@ ALTER TABLE ONLY public."ntf_TenantUser"
--
--- TOC entry 3973 (class 2606 OID 74207)
+-- TOC entry 4013 (class 2606 OID 190766)
-- Name: ntf_UserContactInfo ntf_UserContactInfo_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3686,7 +3932,7 @@ ALTER TABLE ONLY public."ntf_UserContactInfo"
--
--- TOC entry 3974 (class 2606 OID 74212)
+-- TOC entry 4014 (class 2606 OID 190771)
-- Name: ntf_UserCredential ntf_UserCredential_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3695,7 +3941,7 @@ ALTER TABLE ONLY public."ntf_UserCredential"
--
--- TOC entry 3975 (class 2606 OID 74217)
+-- TOC entry 4015 (class 2606 OID 190776)
-- Name: ntf_UserNotificationPreference ntf_UserNotificationPreference_tenant_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3704,7 +3950,7 @@ ALTER TABLE ONLY public."ntf_UserNotificationPreference"
--
--- TOC entry 3976 (class 2606 OID 74222)
+-- TOC entry 4016 (class 2606 OID 190781)
-- Name: ntf_UserNotificationPreference ntf_UserNotificationPreference_user_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@@ -3712,7 +3958,7 @@ ALTER TABLE ONLY public."ntf_UserNotificationPreference"
ADD CONSTRAINT "ntf_UserNotificationPreference_user_fkey" FOREIGN KEY ("user") REFERENCES public."ntf_User"(id);
--- Completed on 2024-05-09 15:11:14
+-- Completed on 2024-09-19 14:01:23
--
-- PostgreSQL database dump complete