Replaced type field in users table with affiliation