CREATE TABLE house.house_number_toloka (
    house_number_id bigint NOT NULL UNIQUE REFERENCES house.house_number (house_number_id) ON DELETE CASCADE,
    workflow_id text NOT NULL,
    workflow_instance_id text NOT NULL,
    block_guid text NOT NULL,
    state text NOT NULL
);

CREATE INDEX house_number_toloka_state_index ON house.house_number_toloka USING btree (state);
CREATE INDEX house_number_toloka_workflow_instance_block_index ON house.house_number_toloka USING btree (workflow_id, workflow_instance_id, block_guid);