Create find_by and find_all_by methods dynamically for customer and merchant