From 23995486bed5461e5d098d448c134d3fe24dafb6 Mon Sep 17 00:00:00 2001 From: "michele.artini" Date: Fri, 27 Oct 2023 10:58:12 +0200 Subject: [PATCH] new branch for the implementation of the event feedbacks --- .../src/main/resources/config/schema.sql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/dnet-broker-apps-common/src/main/resources/config/schema.sql b/libs/dnet-broker-apps-common/src/main/resources/config/schema.sql index a356c351..2ec96b34 100644 --- a/libs/dnet-broker-apps-common/src/main/resources/config/schema.sql +++ b/libs/dnet-broker-apps-common/src/main/resources/config/schema.sql @@ -18,6 +18,13 @@ CREATE TABLE topic_types ( regex text UNIQUE NOT NULL ); +CREATE TABLE feedbacks ( + eventid text PRIMARY KEY, + status text NOT NULL, + creation_date timestamp without time zone DEFAULT now(), + modification_date timestamp without time zone DEFAULT now() +); + -- curl "http://localhost:8080/api/topic-types/add" -d "name=ENRICH&expression=ENRICH%2F%3Ccond%3E%2F%3Cfield%3E&producerId=OpenAIRE&mapKeys=targetDatasourceName" INSERT INTO public.topic_types (id, name, expression, map_keys, producer_id, regex) VALUES ('tt-a739fa2b-fde0-4eb2-bcee-6e7f277347db', 'ENRICH', 'ENRICH//', 'targetDatasourceName', 'OpenAIRE', '^ENRICH\/[a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+$');