new branch for the implementation of the event feedbacks

This commit is contained in:
Michele Artini 2023-10-27 10:58:12 +02:00
parent 9404779389
commit 23995486be
1 changed files with 7 additions and 0 deletions

View File

@ -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/<cond>/<field>', 'targetDatasourceName', 'OpenAIRE', '^ENRICH\/[a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+$');