broker_feedbacks #16

Merged
michele.artini merged 3 commits from broker_feedbacks into master 2023-11-06 11:15:09 +01:00
1 changed files with 7 additions and 0 deletions
Showing only changes of commit 23995486be - Show all commits

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._-]+$');