reverted credit record trades join table