add friendly_id, history and diff