UNION
A customer can be a company or an individual. This union type wraps these two possible kind of entities.
union RegistrationEntity = Company | Trainee