CREATE TABLE IF NOT EXISTS service.reject_feedback_task (
    id bigint PRIMARY KEY REFERENCES service.task (id),
    aoi geometry(POLYGON, 3395) NOT NULL,
    workflows social.feedback_workflow[],
    sources text[],
    types social.feedback_type[],
    reject_reason social.feedback_reject_reason
);

CREATE TABLE IF NOT EXISTS service.reject_feedback_result (
    task_id bigint REFERENCES service.reject_feedback_task (id),
    rejected_feedback_id bigint,
    PRIMARY KEY (task_id , rejected_feedback_id)
);
