I don't know if filemaker supports it, but what you want is a recursive relationship.
Customer(customerID, referrerID, CustomerName ...)
In this table the referrerID would be the customerID of the referrer of the customer. This creates a hierarchical chain of relationships within the same table.