Created affiliateAppointments schema and tests