SELECT create_distributed_table('sensors_colocated', 'measureid', colocate_with:='sensors'); -- END: Create table to split -- BEGIN : Switch to worker and create split shards already so workflow fails ...
helpful_count INTEGER NOT NULL DEFAULT 0, created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(), CONSTRAINT rating_range CHECK (rating >= 1 AND rating <= 5), ...