Add type with primary