Add reference on log_parts(log_id) column