CREATE TABLE service.masstransit_threads_comparison_task (
    id bigint PRIMARY KEY REFERENCES service.task (id),
    url text NOT NULL,
    ids text,
    tolerance float NOT NULL
);

CREATE TABLE service.masstransit_threads_comparison_geom_result(
   task_id bigint NOT NULL,
   thread_id bigint NOT NULL,
   the_geom public.geometry NOT NULL
);

CREATE TABLE service.masstransit_threads_comparison_id_result(
   task_id bigint NOT NULL,
   thread_id bigint NOT NULL,
   element_id bigint NOT NULL
);

