Modified assigning appointment types to company and user