add relationships for invoice and merchant